public static final class Swagger.Builder extends com.google.protobuf.GeneratedMessage.Builder<Swagger.Builder> implements SwaggerOrBuilder
`Swagger` is a representation of OpenAPI v2 specification's Swagger object. See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#swaggerObject Example: option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = { info: { title: "Echo API"; version: "1.0"; description: ""; contact: { name: "gRPC-Gateway project"; url: "https://github.com/grpc-ecosystem/grpc-gateway"; email: "none@example.com"; }; license: { name: "BSD 3-Clause License"; url: "https://github.com/grpc-ecosystem/grpc-gateway/blob/main/LICENSE"; }; }; schemes: HTTPS; consumes: "application/json"; produces: "application/json"; };Protobuf type
grpc.gateway.protoc_gen_openapiv2.options.Swagger
Modifier and Type | Method and Description |
---|---|
Swagger.Builder |
addAllConsumes(java.lang.Iterable<java.lang.String> values)
A list of MIME types the APIs can consume.
|
Swagger.Builder |
addAllProduces(java.lang.Iterable<java.lang.String> values)
A list of MIME types the APIs can produce.
|
Swagger.Builder |
addAllSchemes(java.lang.Iterable<? extends Scheme> values)
The transfer protocol of the API.
|
Swagger.Builder |
addAllSchemesValue(java.lang.Iterable<java.lang.Integer> values)
The transfer protocol of the API.
|
Swagger.Builder |
addAllSecurity(java.lang.Iterable<? extends SecurityRequirement> values)
A declaration of which security schemes are applied for the API as a whole.
|
Swagger.Builder |
addAllTags(java.lang.Iterable<? extends Tag> values)
A list of tags for API documentation control.
|
Swagger.Builder |
addConsumes(java.lang.String value)
A list of MIME types the APIs can consume.
|
Swagger.Builder |
addConsumesBytes(com.google.protobuf.ByteString value)
A list of MIME types the APIs can consume.
|
Swagger.Builder |
addProduces(java.lang.String value)
A list of MIME types the APIs can produce.
|
Swagger.Builder |
addProducesBytes(com.google.protobuf.ByteString value)
A list of MIME types the APIs can produce.
|
Swagger.Builder |
addSchemes(Scheme value)
The transfer protocol of the API.
|
Swagger.Builder |
addSchemesValue(int value)
The transfer protocol of the API.
|
Swagger.Builder |
addSecurity(int index,
SecurityRequirement.Builder builderForValue)
A declaration of which security schemes are applied for the API as a whole.
|
Swagger.Builder |
addSecurity(int index,
SecurityRequirement value)
A declaration of which security schemes are applied for the API as a whole.
|
Swagger.Builder |
addSecurity(SecurityRequirement.Builder builderForValue)
A declaration of which security schemes are applied for the API as a whole.
|
Swagger.Builder |
addSecurity(SecurityRequirement value)
A declaration of which security schemes are applied for the API as a whole.
|
SecurityRequirement.Builder |
addSecurityBuilder()
A declaration of which security schemes are applied for the API as a whole.
|
SecurityRequirement.Builder |
addSecurityBuilder(int index)
A declaration of which security schemes are applied for the API as a whole.
|
Swagger.Builder |
addTags(int index,
Tag.Builder builderForValue)
A list of tags for API documentation control.
|
Swagger.Builder |
addTags(int index,
Tag value)
A list of tags for API documentation control.
|
Swagger.Builder |
addTags(Tag.Builder builderForValue)
A list of tags for API documentation control.
|
Swagger.Builder |
addTags(Tag value)
A list of tags for API documentation control.
|
Tag.Builder |
addTagsBuilder()
A list of tags for API documentation control.
|
Tag.Builder |
addTagsBuilder(int index)
A list of tags for API documentation control.
|
Swagger |
build() |
Swagger |
buildPartial() |
Swagger.Builder |
clear() |
Swagger.Builder |
clearBasePath()
The base path on which the API is served, which is relative to the host.
|
Swagger.Builder |
clearConsumes()
A list of MIME types the APIs can consume.
|
Swagger.Builder |
clearExtensions() |
Swagger.Builder |
clearExternalDocs()
Additional external documentation.
|
Swagger.Builder |
clearHost()
The host (name or ip) serving the API.
|
Swagger.Builder |
clearInfo()
Provides metadata about the API.
|
Swagger.Builder |
clearProduces()
A list of MIME types the APIs can produce.
|
Swagger.Builder |
clearResponses() |
Swagger.Builder |
clearSchemes()
The transfer protocol of the API.
|
Swagger.Builder |
clearSecurity()
A declaration of which security schemes are applied for the API as a whole.
|
Swagger.Builder |
clearSecurityDefinitions()
Security scheme definitions that can be used across the specification.
|
Swagger.Builder |
clearSwagger()
Specifies the OpenAPI Specification version being used.
|
Swagger.Builder |
clearTags()
A list of tags for API documentation control.
|
boolean |
containsExtensions(java.lang.String key)
Custom properties that start with "x-" such as "x-foo" used to describe
extra functionality that is not covered by the standard OpenAPI Specification.
|
boolean |
containsResponses(java.lang.String key)
An object to hold responses that can be used across operations.
|
java.lang.String |
getBasePath()
The base path on which the API is served, which is relative to the host.
|
com.google.protobuf.ByteString |
getBasePathBytes()
The base path on which the API is served, which is relative to the host.
|
java.lang.String |
getConsumes(int index)
A list of MIME types the APIs can consume.
|
com.google.protobuf.ByteString |
getConsumesBytes(int index)
A list of MIME types the APIs can consume.
|
int |
getConsumesCount()
A list of MIME types the APIs can consume.
|
com.google.protobuf.ProtocolStringList |
getConsumesList()
A list of MIME types the APIs can consume.
|
Swagger |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.util.Map<java.lang.String,com.google.protobuf.Value> |
getExtensions()
Deprecated.
|
int |
getExtensionsCount()
Custom properties that start with "x-" such as "x-foo" used to describe
extra functionality that is not covered by the standard OpenAPI Specification.
|
java.util.Map<java.lang.String,com.google.protobuf.Value> |
getExtensionsMap()
Custom properties that start with "x-" such as "x-foo" used to describe
extra functionality that is not covered by the standard OpenAPI Specification.
|
com.google.protobuf.Value |
getExtensionsOrDefault(java.lang.String key,
com.google.protobuf.Value defaultValue)
Custom properties that start with "x-" such as "x-foo" used to describe
extra functionality that is not covered by the standard OpenAPI Specification.
|
com.google.protobuf.Value |
getExtensionsOrThrow(java.lang.String key)
Custom properties that start with "x-" such as "x-foo" used to describe
extra functionality that is not covered by the standard OpenAPI Specification.
|
ExternalDocumentation |
getExternalDocs()
Additional external documentation.
|
ExternalDocumentation.Builder |
getExternalDocsBuilder()
Additional external documentation.
|
ExternalDocumentationOrBuilder |
getExternalDocsOrBuilder()
Additional external documentation.
|
java.lang.String |
getHost()
The host (name or ip) serving the API.
|
com.google.protobuf.ByteString |
getHostBytes()
The host (name or ip) serving the API.
|
Info |
getInfo()
Provides metadata about the API.
|
Info.Builder |
getInfoBuilder()
Provides metadata about the API.
|
InfoOrBuilder |
getInfoOrBuilder()
Provides metadata about the API.
|
java.util.Map<java.lang.String,com.google.protobuf.Value> |
getMutableExtensions()
Deprecated.
|
java.util.Map<java.lang.String,Response> |
getMutableResponses()
Deprecated.
|
java.lang.String |
getProduces(int index)
A list of MIME types the APIs can produce.
|
com.google.protobuf.ByteString |
getProducesBytes(int index)
A list of MIME types the APIs can produce.
|
int |
getProducesCount()
A list of MIME types the APIs can produce.
|
com.google.protobuf.ProtocolStringList |
getProducesList()
A list of MIME types the APIs can produce.
|
java.util.Map<java.lang.String,Response> |
getResponses()
Deprecated.
|
int |
getResponsesCount()
An object to hold responses that can be used across operations.
|
java.util.Map<java.lang.String,Response> |
getResponsesMap()
An object to hold responses that can be used across operations.
|
Response |
getResponsesOrDefault(java.lang.String key,
Response defaultValue)
An object to hold responses that can be used across operations.
|
Response |
getResponsesOrThrow(java.lang.String key)
An object to hold responses that can be used across operations.
|
Scheme |
getSchemes(int index)
The transfer protocol of the API.
|
int |
getSchemesCount()
The transfer protocol of the API.
|
java.util.List<Scheme> |
getSchemesList()
The transfer protocol of the API.
|
int |
getSchemesValue(int index)
The transfer protocol of the API.
|
java.util.List<java.lang.Integer> |
getSchemesValueList()
The transfer protocol of the API.
|
SecurityRequirement |
getSecurity(int index)
A declaration of which security schemes are applied for the API as a whole.
|
SecurityRequirement.Builder |
getSecurityBuilder(int index)
A declaration of which security schemes are applied for the API as a whole.
|
java.util.List<SecurityRequirement.Builder> |
getSecurityBuilderList()
A declaration of which security schemes are applied for the API as a whole.
|
int |
getSecurityCount()
A declaration of which security schemes are applied for the API as a whole.
|
SecurityDefinitions |
getSecurityDefinitions()
Security scheme definitions that can be used across the specification.
|
SecurityDefinitions.Builder |
getSecurityDefinitionsBuilder()
Security scheme definitions that can be used across the specification.
|
SecurityDefinitionsOrBuilder |
getSecurityDefinitionsOrBuilder()
Security scheme definitions that can be used across the specification.
|
java.util.List<SecurityRequirement> |
getSecurityList()
A declaration of which security schemes are applied for the API as a whole.
|
SecurityRequirementOrBuilder |
getSecurityOrBuilder(int index)
A declaration of which security schemes are applied for the API as a whole.
|
java.util.List<? extends SecurityRequirementOrBuilder> |
getSecurityOrBuilderList()
A declaration of which security schemes are applied for the API as a whole.
|
java.lang.String |
getSwagger()
Specifies the OpenAPI Specification version being used.
|
com.google.protobuf.ByteString |
getSwaggerBytes()
Specifies the OpenAPI Specification version being used.
|
Tag |
getTags(int index)
A list of tags for API documentation control.
|
Tag.Builder |
getTagsBuilder(int index)
A list of tags for API documentation control.
|
java.util.List<Tag.Builder> |
getTagsBuilderList()
A list of tags for API documentation control.
|
int |
getTagsCount()
A list of tags for API documentation control.
|
java.util.List<Tag> |
getTagsList()
A list of tags for API documentation control.
|
TagOrBuilder |
getTagsOrBuilder(int index)
A list of tags for API documentation control.
|
java.util.List<? extends TagOrBuilder> |
getTagsOrBuilderList()
A list of tags for API documentation control.
|
boolean |
hasExternalDocs()
Additional external documentation.
|
boolean |
hasInfo()
Provides metadata about the API.
|
boolean |
hasSecurityDefinitions()
Security scheme definitions that can be used across the specification.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMutableMapFieldReflection(int number) |
boolean |
isInitialized() |
Swagger.Builder |
mergeExternalDocs(ExternalDocumentation value)
Additional external documentation.
|
Swagger.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Swagger.Builder |
mergeFrom(com.google.protobuf.Message other) |
Swagger.Builder |
mergeFrom(Swagger other) |
Swagger.Builder |
mergeInfo(Info value)
Provides metadata about the API.
|
Swagger.Builder |
mergeSecurityDefinitions(SecurityDefinitions value)
Security scheme definitions that can be used across the specification.
|
Swagger.Builder |
putAllExtensions(java.util.Map<java.lang.String,com.google.protobuf.Value> values)
Custom properties that start with "x-" such as "x-foo" used to describe
extra functionality that is not covered by the standard OpenAPI Specification.
|
Swagger.Builder |
putAllResponses(java.util.Map<java.lang.String,Response> values)
An object to hold responses that can be used across operations.
|
Swagger.Builder |
putExtensions(java.lang.String key,
com.google.protobuf.Value value)
Custom properties that start with "x-" such as "x-foo" used to describe
extra functionality that is not covered by the standard OpenAPI Specification.
|
com.google.protobuf.Value.Builder |
putExtensionsBuilderIfAbsent(java.lang.String key)
Custom properties that start with "x-" such as "x-foo" used to describe
extra functionality that is not covered by the standard OpenAPI Specification.
|
Swagger.Builder |
putResponses(java.lang.String key,
Response value)
An object to hold responses that can be used across operations.
|
Response.Builder |
putResponsesBuilderIfAbsent(java.lang.String key)
An object to hold responses that can be used across operations.
|
Swagger.Builder |
removeExtensions(java.lang.String key)
Custom properties that start with "x-" such as "x-foo" used to describe
extra functionality that is not covered by the standard OpenAPI Specification.
|
Swagger.Builder |
removeResponses(java.lang.String key)
An object to hold responses that can be used across operations.
|
Swagger.Builder |
removeSecurity(int index)
A declaration of which security schemes are applied for the API as a whole.
|
Swagger.Builder |
removeTags(int index)
A list of tags for API documentation control.
|
Swagger.Builder |
setBasePath(java.lang.String value)
The base path on which the API is served, which is relative to the host.
|
Swagger.Builder |
setBasePathBytes(com.google.protobuf.ByteString value)
The base path on which the API is served, which is relative to the host.
|
Swagger.Builder |
setConsumes(int index,
java.lang.String value)
A list of MIME types the APIs can consume.
|
Swagger.Builder |
setExternalDocs(ExternalDocumentation.Builder builderForValue)
Additional external documentation.
|
Swagger.Builder |
setExternalDocs(ExternalDocumentation value)
Additional external documentation.
|
Swagger.Builder |
setHost(java.lang.String value)
The host (name or ip) serving the API.
|
Swagger.Builder |
setHostBytes(com.google.protobuf.ByteString value)
The host (name or ip) serving the API.
|
Swagger.Builder |
setInfo(Info.Builder builderForValue)
Provides metadata about the API.
|
Swagger.Builder |
setInfo(Info value)
Provides metadata about the API.
|
Swagger.Builder |
setProduces(int index,
java.lang.String value)
A list of MIME types the APIs can produce.
|
Swagger.Builder |
setSchemes(int index,
Scheme value)
The transfer protocol of the API.
|
Swagger.Builder |
setSchemesValue(int index,
int value)
The transfer protocol of the API.
|
Swagger.Builder |
setSecurity(int index,
SecurityRequirement.Builder builderForValue)
A declaration of which security schemes are applied for the API as a whole.
|
Swagger.Builder |
setSecurity(int index,
SecurityRequirement value)
A declaration of which security schemes are applied for the API as a whole.
|
Swagger.Builder |
setSecurityDefinitions(SecurityDefinitions.Builder builderForValue)
Security scheme definitions that can be used across the specification.
|
Swagger.Builder |
setSecurityDefinitions(SecurityDefinitions value)
Security scheme definitions that can be used across the specification.
|
Swagger.Builder |
setSwagger(java.lang.String value)
Specifies the OpenAPI Specification version being used.
|
Swagger.Builder |
setSwaggerBytes(com.google.protobuf.ByteString value)
Specifies the OpenAPI Specification version being used.
|
Swagger.Builder |
setTags(int index,
Tag.Builder builderForValue)
A list of tags for API documentation control.
|
Swagger.Builder |
setTags(int index,
Tag value)
A list of tags for API documentation control.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection
in class com.google.protobuf.GeneratedMessage.Builder<Swagger.Builder>
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
internalGetMutableMapFieldReflection
in class com.google.protobuf.GeneratedMessage.Builder<Swagger.Builder>
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage.Builder<Swagger.Builder>
public Swagger.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessage.Builder<Swagger.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessage.Builder<Swagger.Builder>
public Swagger getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Swagger build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Swagger buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Swagger.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Swagger.Builder>
public Swagger.Builder mergeFrom(Swagger other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage.Builder<Swagger.Builder>
public Swagger.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Swagger.Builder>
java.io.IOException
public java.lang.String getSwagger()
Specifies the OpenAPI Specification version being used. It can be used by the OpenAPI UI and other clients to interpret the API listing. The value MUST be "2.0".
string swagger = 1 [json_name = "swagger"];
getSwagger
in interface SwaggerOrBuilder
public com.google.protobuf.ByteString getSwaggerBytes()
Specifies the OpenAPI Specification version being used. It can be used by the OpenAPI UI and other clients to interpret the API listing. The value MUST be "2.0".
string swagger = 1 [json_name = "swagger"];
getSwaggerBytes
in interface SwaggerOrBuilder
public Swagger.Builder setSwagger(java.lang.String value)
Specifies the OpenAPI Specification version being used. It can be used by the OpenAPI UI and other clients to interpret the API listing. The value MUST be "2.0".
string swagger = 1 [json_name = "swagger"];
value
- The swagger to set.public Swagger.Builder clearSwagger()
Specifies the OpenAPI Specification version being used. It can be used by the OpenAPI UI and other clients to interpret the API listing. The value MUST be "2.0".
string swagger = 1 [json_name = "swagger"];
public Swagger.Builder setSwaggerBytes(com.google.protobuf.ByteString value)
Specifies the OpenAPI Specification version being used. It can be used by the OpenAPI UI and other clients to interpret the API listing. The value MUST be "2.0".
string swagger = 1 [json_name = "swagger"];
value
- The bytes for swagger to set.public boolean hasInfo()
Provides metadata about the API. The metadata can be used by the clients if needed.
.grpc.gateway.protoc_gen_openapiv2.options.Info info = 2 [json_name = "info"];
hasInfo
in interface SwaggerOrBuilder
public Info getInfo()
Provides metadata about the API. The metadata can be used by the clients if needed.
.grpc.gateway.protoc_gen_openapiv2.options.Info info = 2 [json_name = "info"];
getInfo
in interface SwaggerOrBuilder
public Swagger.Builder setInfo(Info value)
Provides metadata about the API. The metadata can be used by the clients if needed.
.grpc.gateway.protoc_gen_openapiv2.options.Info info = 2 [json_name = "info"];
public Swagger.Builder setInfo(Info.Builder builderForValue)
Provides metadata about the API. The metadata can be used by the clients if needed.
.grpc.gateway.protoc_gen_openapiv2.options.Info info = 2 [json_name = "info"];
public Swagger.Builder mergeInfo(Info value)
Provides metadata about the API. The metadata can be used by the clients if needed.
.grpc.gateway.protoc_gen_openapiv2.options.Info info = 2 [json_name = "info"];
public Swagger.Builder clearInfo()
Provides metadata about the API. The metadata can be used by the clients if needed.
.grpc.gateway.protoc_gen_openapiv2.options.Info info = 2 [json_name = "info"];
public Info.Builder getInfoBuilder()
Provides metadata about the API. The metadata can be used by the clients if needed.
.grpc.gateway.protoc_gen_openapiv2.options.Info info = 2 [json_name = "info"];
public InfoOrBuilder getInfoOrBuilder()
Provides metadata about the API. The metadata can be used by the clients if needed.
.grpc.gateway.protoc_gen_openapiv2.options.Info info = 2 [json_name = "info"];
getInfoOrBuilder
in interface SwaggerOrBuilder
public java.lang.String getHost()
The host (name or ip) serving the API. This MUST be the host only and does not include the scheme nor sub-paths. It MAY include a port. If the host is not included, the host serving the documentation is to be used (including the port). The host does not support path templating.
string host = 3 [json_name = "host"];
getHost
in interface SwaggerOrBuilder
public com.google.protobuf.ByteString getHostBytes()
The host (name or ip) serving the API. This MUST be the host only and does not include the scheme nor sub-paths. It MAY include a port. If the host is not included, the host serving the documentation is to be used (including the port). The host does not support path templating.
string host = 3 [json_name = "host"];
getHostBytes
in interface SwaggerOrBuilder
public Swagger.Builder setHost(java.lang.String value)
The host (name or ip) serving the API. This MUST be the host only and does not include the scheme nor sub-paths. It MAY include a port. If the host is not included, the host serving the documentation is to be used (including the port). The host does not support path templating.
string host = 3 [json_name = "host"];
value
- The host to set.public Swagger.Builder clearHost()
The host (name or ip) serving the API. This MUST be the host only and does not include the scheme nor sub-paths. It MAY include a port. If the host is not included, the host serving the documentation is to be used (including the port). The host does not support path templating.
string host = 3 [json_name = "host"];
public Swagger.Builder setHostBytes(com.google.protobuf.ByteString value)
The host (name or ip) serving the API. This MUST be the host only and does not include the scheme nor sub-paths. It MAY include a port. If the host is not included, the host serving the documentation is to be used (including the port). The host does not support path templating.
string host = 3 [json_name = "host"];
value
- The bytes for host to set.public java.lang.String getBasePath()
The base path on which the API is served, which is relative to the host. If it is not included, the API is served directly under the host. The value MUST start with a leading slash (/). The basePath does not support path templating. Note that using `base_path` does not change the endpoint paths that are generated in the resulting OpenAPI file. If you wish to use `base_path` with relatively generated OpenAPI paths, the `base_path` prefix must be manually removed from your `google.api.http` paths and your code changed to serve the API from the `base_path`.
string base_path = 4 [json_name = "basePath"];
getBasePath
in interface SwaggerOrBuilder
public com.google.protobuf.ByteString getBasePathBytes()
The base path on which the API is served, which is relative to the host. If it is not included, the API is served directly under the host. The value MUST start with a leading slash (/). The basePath does not support path templating. Note that using `base_path` does not change the endpoint paths that are generated in the resulting OpenAPI file. If you wish to use `base_path` with relatively generated OpenAPI paths, the `base_path` prefix must be manually removed from your `google.api.http` paths and your code changed to serve the API from the `base_path`.
string base_path = 4 [json_name = "basePath"];
getBasePathBytes
in interface SwaggerOrBuilder
public Swagger.Builder setBasePath(java.lang.String value)
The base path on which the API is served, which is relative to the host. If it is not included, the API is served directly under the host. The value MUST start with a leading slash (/). The basePath does not support path templating. Note that using `base_path` does not change the endpoint paths that are generated in the resulting OpenAPI file. If you wish to use `base_path` with relatively generated OpenAPI paths, the `base_path` prefix must be manually removed from your `google.api.http` paths and your code changed to serve the API from the `base_path`.
string base_path = 4 [json_name = "basePath"];
value
- The basePath to set.public Swagger.Builder clearBasePath()
The base path on which the API is served, which is relative to the host. If it is not included, the API is served directly under the host. The value MUST start with a leading slash (/). The basePath does not support path templating. Note that using `base_path` does not change the endpoint paths that are generated in the resulting OpenAPI file. If you wish to use `base_path` with relatively generated OpenAPI paths, the `base_path` prefix must be manually removed from your `google.api.http` paths and your code changed to serve the API from the `base_path`.
string base_path = 4 [json_name = "basePath"];
public Swagger.Builder setBasePathBytes(com.google.protobuf.ByteString value)
The base path on which the API is served, which is relative to the host. If it is not included, the API is served directly under the host. The value MUST start with a leading slash (/). The basePath does not support path templating. Note that using `base_path` does not change the endpoint paths that are generated in the resulting OpenAPI file. If you wish to use `base_path` with relatively generated OpenAPI paths, the `base_path` prefix must be manually removed from your `google.api.http` paths and your code changed to serve the API from the `base_path`.
string base_path = 4 [json_name = "basePath"];
value
- The bytes for basePath to set.public java.util.List<Scheme> getSchemesList()
The transfer protocol of the API. Values MUST be from the list: "http", "https", "ws", "wss". If the schemes is not included, the default scheme to be used is the one used to access the OpenAPI definition itself.
repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5 [json_name = "schemes"];
getSchemesList
in interface SwaggerOrBuilder
public int getSchemesCount()
The transfer protocol of the API. Values MUST be from the list: "http", "https", "ws", "wss". If the schemes is not included, the default scheme to be used is the one used to access the OpenAPI definition itself.
repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5 [json_name = "schemes"];
getSchemesCount
in interface SwaggerOrBuilder
public Scheme getSchemes(int index)
The transfer protocol of the API. Values MUST be from the list: "http", "https", "ws", "wss". If the schemes is not included, the default scheme to be used is the one used to access the OpenAPI definition itself.
repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5 [json_name = "schemes"];
getSchemes
in interface SwaggerOrBuilder
index
- The index of the element to return.public Swagger.Builder setSchemes(int index, Scheme value)
The transfer protocol of the API. Values MUST be from the list: "http", "https", "ws", "wss". If the schemes is not included, the default scheme to be used is the one used to access the OpenAPI definition itself.
repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5 [json_name = "schemes"];
index
- The index to set the value at.value
- The schemes to set.public Swagger.Builder addSchemes(Scheme value)
The transfer protocol of the API. Values MUST be from the list: "http", "https", "ws", "wss". If the schemes is not included, the default scheme to be used is the one used to access the OpenAPI definition itself.
repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5 [json_name = "schemes"];
value
- The schemes to add.public Swagger.Builder addAllSchemes(java.lang.Iterable<? extends Scheme> values)
The transfer protocol of the API. Values MUST be from the list: "http", "https", "ws", "wss". If the schemes is not included, the default scheme to be used is the one used to access the OpenAPI definition itself.
repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5 [json_name = "schemes"];
values
- The schemes to add.public Swagger.Builder clearSchemes()
The transfer protocol of the API. Values MUST be from the list: "http", "https", "ws", "wss". If the schemes is not included, the default scheme to be used is the one used to access the OpenAPI definition itself.
repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5 [json_name = "schemes"];
public java.util.List<java.lang.Integer> getSchemesValueList()
The transfer protocol of the API. Values MUST be from the list: "http", "https", "ws", "wss". If the schemes is not included, the default scheme to be used is the one used to access the OpenAPI definition itself.
repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5 [json_name = "schemes"];
getSchemesValueList
in interface SwaggerOrBuilder
public int getSchemesValue(int index)
The transfer protocol of the API. Values MUST be from the list: "http", "https", "ws", "wss". If the schemes is not included, the default scheme to be used is the one used to access the OpenAPI definition itself.
repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5 [json_name = "schemes"];
getSchemesValue
in interface SwaggerOrBuilder
index
- The index of the value to return.public Swagger.Builder setSchemesValue(int index, int value)
The transfer protocol of the API. Values MUST be from the list: "http", "https", "ws", "wss". If the schemes is not included, the default scheme to be used is the one used to access the OpenAPI definition itself.
repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5 [json_name = "schemes"];
index
- The index to set the value at.value
- The enum numeric value on the wire for schemes to set.public Swagger.Builder addSchemesValue(int value)
The transfer protocol of the API. Values MUST be from the list: "http", "https", "ws", "wss". If the schemes is not included, the default scheme to be used is the one used to access the OpenAPI definition itself.
repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5 [json_name = "schemes"];
value
- The enum numeric value on the wire for schemes to add.public Swagger.Builder addAllSchemesValue(java.lang.Iterable<java.lang.Integer> values)
The transfer protocol of the API. Values MUST be from the list: "http", "https", "ws", "wss". If the schemes is not included, the default scheme to be used is the one used to access the OpenAPI definition itself.
repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5 [json_name = "schemes"];
values
- The enum numeric values on the wire for schemes to add.public com.google.protobuf.ProtocolStringList getConsumesList()
A list of MIME types the APIs can consume. This is global to all APIs but can be overridden on specific API calls. Value MUST be as described under Mime Types.
repeated string consumes = 6 [json_name = "consumes"];
getConsumesList
in interface SwaggerOrBuilder
public int getConsumesCount()
A list of MIME types the APIs can consume. This is global to all APIs but can be overridden on specific API calls. Value MUST be as described under Mime Types.
repeated string consumes = 6 [json_name = "consumes"];
getConsumesCount
in interface SwaggerOrBuilder
public java.lang.String getConsumes(int index)
A list of MIME types the APIs can consume. This is global to all APIs but can be overridden on specific API calls. Value MUST be as described under Mime Types.
repeated string consumes = 6 [json_name = "consumes"];
getConsumes
in interface SwaggerOrBuilder
index
- The index of the element to return.public com.google.protobuf.ByteString getConsumesBytes(int index)
A list of MIME types the APIs can consume. This is global to all APIs but can be overridden on specific API calls. Value MUST be as described under Mime Types.
repeated string consumes = 6 [json_name = "consumes"];
getConsumesBytes
in interface SwaggerOrBuilder
index
- The index of the value to return.public Swagger.Builder setConsumes(int index, java.lang.String value)
A list of MIME types the APIs can consume. This is global to all APIs but can be overridden on specific API calls. Value MUST be as described under Mime Types.
repeated string consumes = 6 [json_name = "consumes"];
index
- The index to set the value at.value
- The consumes to set.public Swagger.Builder addConsumes(java.lang.String value)
A list of MIME types the APIs can consume. This is global to all APIs but can be overridden on specific API calls. Value MUST be as described under Mime Types.
repeated string consumes = 6 [json_name = "consumes"];
value
- The consumes to add.public Swagger.Builder addAllConsumes(java.lang.Iterable<java.lang.String> values)
A list of MIME types the APIs can consume. This is global to all APIs but can be overridden on specific API calls. Value MUST be as described under Mime Types.
repeated string consumes = 6 [json_name = "consumes"];
values
- The consumes to add.public Swagger.Builder clearConsumes()
A list of MIME types the APIs can consume. This is global to all APIs but can be overridden on specific API calls. Value MUST be as described under Mime Types.
repeated string consumes = 6 [json_name = "consumes"];
public Swagger.Builder addConsumesBytes(com.google.protobuf.ByteString value)
A list of MIME types the APIs can consume. This is global to all APIs but can be overridden on specific API calls. Value MUST be as described under Mime Types.
repeated string consumes = 6 [json_name = "consumes"];
value
- The bytes of the consumes to add.public com.google.protobuf.ProtocolStringList getProducesList()
A list of MIME types the APIs can produce. This is global to all APIs but can be overridden on specific API calls. Value MUST be as described under Mime Types.
repeated string produces = 7 [json_name = "produces"];
getProducesList
in interface SwaggerOrBuilder
public int getProducesCount()
A list of MIME types the APIs can produce. This is global to all APIs but can be overridden on specific API calls. Value MUST be as described under Mime Types.
repeated string produces = 7 [json_name = "produces"];
getProducesCount
in interface SwaggerOrBuilder
public java.lang.String getProduces(int index)
A list of MIME types the APIs can produce. This is global to all APIs but can be overridden on specific API calls. Value MUST be as described under Mime Types.
repeated string produces = 7 [json_name = "produces"];
getProduces
in interface SwaggerOrBuilder
index
- The index of the element to return.public com.google.protobuf.ByteString getProducesBytes(int index)
A list of MIME types the APIs can produce. This is global to all APIs but can be overridden on specific API calls. Value MUST be as described under Mime Types.
repeated string produces = 7 [json_name = "produces"];
getProducesBytes
in interface SwaggerOrBuilder
index
- The index of the value to return.public Swagger.Builder setProduces(int index, java.lang.String value)
A list of MIME types the APIs can produce. This is global to all APIs but can be overridden on specific API calls. Value MUST be as described under Mime Types.
repeated string produces = 7 [json_name = "produces"];
index
- The index to set the value at.value
- The produces to set.public Swagger.Builder addProduces(java.lang.String value)
A list of MIME types the APIs can produce. This is global to all APIs but can be overridden on specific API calls. Value MUST be as described under Mime Types.
repeated string produces = 7 [json_name = "produces"];
value
- The produces to add.public Swagger.Builder addAllProduces(java.lang.Iterable<java.lang.String> values)
A list of MIME types the APIs can produce. This is global to all APIs but can be overridden on specific API calls. Value MUST be as described under Mime Types.
repeated string produces = 7 [json_name = "produces"];
values
- The produces to add.public Swagger.Builder clearProduces()
A list of MIME types the APIs can produce. This is global to all APIs but can be overridden on specific API calls. Value MUST be as described under Mime Types.
repeated string produces = 7 [json_name = "produces"];
public Swagger.Builder addProducesBytes(com.google.protobuf.ByteString value)
A list of MIME types the APIs can produce. This is global to all APIs but can be overridden on specific API calls. Value MUST be as described under Mime Types.
repeated string produces = 7 [json_name = "produces"];
value
- The bytes of the produces to add.public int getResponsesCount()
SwaggerOrBuilder
An object to hold responses that can be used across operations. This property does not define global responses for all operations.
map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 10 [json_name = "responses"];
getResponsesCount
in interface SwaggerOrBuilder
public boolean containsResponses(java.lang.String key)
An object to hold responses that can be used across operations. This property does not define global responses for all operations.
map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 10 [json_name = "responses"];
containsResponses
in interface SwaggerOrBuilder
@Deprecated public java.util.Map<java.lang.String,Response> getResponses()
getResponsesMap()
instead.getResponses
in interface SwaggerOrBuilder
public java.util.Map<java.lang.String,Response> getResponsesMap()
An object to hold responses that can be used across operations. This property does not define global responses for all operations.
map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 10 [json_name = "responses"];
getResponsesMap
in interface SwaggerOrBuilder
public Response getResponsesOrDefault(java.lang.String key, Response defaultValue)
An object to hold responses that can be used across operations. This property does not define global responses for all operations.
map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 10 [json_name = "responses"];
getResponsesOrDefault
in interface SwaggerOrBuilder
public Response getResponsesOrThrow(java.lang.String key)
An object to hold responses that can be used across operations. This property does not define global responses for all operations.
map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 10 [json_name = "responses"];
getResponsesOrThrow
in interface SwaggerOrBuilder
public Swagger.Builder clearResponses()
public Swagger.Builder removeResponses(java.lang.String key)
An object to hold responses that can be used across operations. This property does not define global responses for all operations.
map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 10 [json_name = "responses"];
@Deprecated public java.util.Map<java.lang.String,Response> getMutableResponses()
public Swagger.Builder putResponses(java.lang.String key, Response value)
An object to hold responses that can be used across operations. This property does not define global responses for all operations.
map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 10 [json_name = "responses"];
public Swagger.Builder putAllResponses(java.util.Map<java.lang.String,Response> values)
An object to hold responses that can be used across operations. This property does not define global responses for all operations.
map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 10 [json_name = "responses"];
public Response.Builder putResponsesBuilderIfAbsent(java.lang.String key)
An object to hold responses that can be used across operations. This property does not define global responses for all operations.
map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 10 [json_name = "responses"];
public boolean hasSecurityDefinitions()
Security scheme definitions that can be used across the specification.
.grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11 [json_name = "securityDefinitions"];
hasSecurityDefinitions
in interface SwaggerOrBuilder
public SecurityDefinitions getSecurityDefinitions()
Security scheme definitions that can be used across the specification.
.grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11 [json_name = "securityDefinitions"];
getSecurityDefinitions
in interface SwaggerOrBuilder
public Swagger.Builder setSecurityDefinitions(SecurityDefinitions value)
Security scheme definitions that can be used across the specification.
.grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11 [json_name = "securityDefinitions"];
public Swagger.Builder setSecurityDefinitions(SecurityDefinitions.Builder builderForValue)
Security scheme definitions that can be used across the specification.
.grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11 [json_name = "securityDefinitions"];
public Swagger.Builder mergeSecurityDefinitions(SecurityDefinitions value)
Security scheme definitions that can be used across the specification.
.grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11 [json_name = "securityDefinitions"];
public Swagger.Builder clearSecurityDefinitions()
Security scheme definitions that can be used across the specification.
.grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11 [json_name = "securityDefinitions"];
public SecurityDefinitions.Builder getSecurityDefinitionsBuilder()
Security scheme definitions that can be used across the specification.
.grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11 [json_name = "securityDefinitions"];
public SecurityDefinitionsOrBuilder getSecurityDefinitionsOrBuilder()
Security scheme definitions that can be used across the specification.
.grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11 [json_name = "securityDefinitions"];
getSecurityDefinitionsOrBuilder
in interface SwaggerOrBuilder
public java.util.List<SecurityRequirement> getSecurityList()
A declaration of which security schemes are applied for the API as a whole. The list of values describes alternative security schemes that can be used (that is, there is a logical OR between the security requirements). Individual operations can override this definition.
repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12 [json_name = "security"];
getSecurityList
in interface SwaggerOrBuilder
public int getSecurityCount()
A declaration of which security schemes are applied for the API as a whole. The list of values describes alternative security schemes that can be used (that is, there is a logical OR between the security requirements). Individual operations can override this definition.
repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12 [json_name = "security"];
getSecurityCount
in interface SwaggerOrBuilder
public SecurityRequirement getSecurity(int index)
A declaration of which security schemes are applied for the API as a whole. The list of values describes alternative security schemes that can be used (that is, there is a logical OR between the security requirements). Individual operations can override this definition.
repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12 [json_name = "security"];
getSecurity
in interface SwaggerOrBuilder
public Swagger.Builder setSecurity(int index, SecurityRequirement value)
A declaration of which security schemes are applied for the API as a whole. The list of values describes alternative security schemes that can be used (that is, there is a logical OR between the security requirements). Individual operations can override this definition.
repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12 [json_name = "security"];
public Swagger.Builder setSecurity(int index, SecurityRequirement.Builder builderForValue)
A declaration of which security schemes are applied for the API as a whole. The list of values describes alternative security schemes that can be used (that is, there is a logical OR between the security requirements). Individual operations can override this definition.
repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12 [json_name = "security"];
public Swagger.Builder addSecurity(SecurityRequirement value)
A declaration of which security schemes are applied for the API as a whole. The list of values describes alternative security schemes that can be used (that is, there is a logical OR between the security requirements). Individual operations can override this definition.
repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12 [json_name = "security"];
public Swagger.Builder addSecurity(int index, SecurityRequirement value)
A declaration of which security schemes are applied for the API as a whole. The list of values describes alternative security schemes that can be used (that is, there is a logical OR between the security requirements). Individual operations can override this definition.
repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12 [json_name = "security"];
public Swagger.Builder addSecurity(SecurityRequirement.Builder builderForValue)
A declaration of which security schemes are applied for the API as a whole. The list of values describes alternative security schemes that can be used (that is, there is a logical OR between the security requirements). Individual operations can override this definition.
repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12 [json_name = "security"];
public Swagger.Builder addSecurity(int index, SecurityRequirement.Builder builderForValue)
A declaration of which security schemes are applied for the API as a whole. The list of values describes alternative security schemes that can be used (that is, there is a logical OR between the security requirements). Individual operations can override this definition.
repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12 [json_name = "security"];
public Swagger.Builder addAllSecurity(java.lang.Iterable<? extends SecurityRequirement> values)
A declaration of which security schemes are applied for the API as a whole. The list of values describes alternative security schemes that can be used (that is, there is a logical OR between the security requirements). Individual operations can override this definition.
repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12 [json_name = "security"];
public Swagger.Builder clearSecurity()
A declaration of which security schemes are applied for the API as a whole. The list of values describes alternative security schemes that can be used (that is, there is a logical OR between the security requirements). Individual operations can override this definition.
repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12 [json_name = "security"];
public Swagger.Builder removeSecurity(int index)
A declaration of which security schemes are applied for the API as a whole. The list of values describes alternative security schemes that can be used (that is, there is a logical OR between the security requirements). Individual operations can override this definition.
repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12 [json_name = "security"];
public SecurityRequirement.Builder getSecurityBuilder(int index)
A declaration of which security schemes are applied for the API as a whole. The list of values describes alternative security schemes that can be used (that is, there is a logical OR between the security requirements). Individual operations can override this definition.
repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12 [json_name = "security"];
public SecurityRequirementOrBuilder getSecurityOrBuilder(int index)
A declaration of which security schemes are applied for the API as a whole. The list of values describes alternative security schemes that can be used (that is, there is a logical OR between the security requirements). Individual operations can override this definition.
repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12 [json_name = "security"];
getSecurityOrBuilder
in interface SwaggerOrBuilder
public java.util.List<? extends SecurityRequirementOrBuilder> getSecurityOrBuilderList()
A declaration of which security schemes are applied for the API as a whole. The list of values describes alternative security schemes that can be used (that is, there is a logical OR between the security requirements). Individual operations can override this definition.
repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12 [json_name = "security"];
getSecurityOrBuilderList
in interface SwaggerOrBuilder
public SecurityRequirement.Builder addSecurityBuilder()
A declaration of which security schemes are applied for the API as a whole. The list of values describes alternative security schemes that can be used (that is, there is a logical OR between the security requirements). Individual operations can override this definition.
repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12 [json_name = "security"];
public SecurityRequirement.Builder addSecurityBuilder(int index)
A declaration of which security schemes are applied for the API as a whole. The list of values describes alternative security schemes that can be used (that is, there is a logical OR between the security requirements). Individual operations can override this definition.
repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12 [json_name = "security"];
public java.util.List<SecurityRequirement.Builder> getSecurityBuilderList()
A declaration of which security schemes are applied for the API as a whole. The list of values describes alternative security schemes that can be used (that is, there is a logical OR between the security requirements). Individual operations can override this definition.
repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12 [json_name = "security"];
public java.util.List<Tag> getTagsList()
A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier.
repeated .grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13 [json_name = "tags"];
getTagsList
in interface SwaggerOrBuilder
public int getTagsCount()
A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier.
repeated .grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13 [json_name = "tags"];
getTagsCount
in interface SwaggerOrBuilder
public Tag getTags(int index)
A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier.
repeated .grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13 [json_name = "tags"];
getTags
in interface SwaggerOrBuilder
public Swagger.Builder setTags(int index, Tag value)
A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier.
repeated .grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13 [json_name = "tags"];
public Swagger.Builder setTags(int index, Tag.Builder builderForValue)
A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier.
repeated .grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13 [json_name = "tags"];
public Swagger.Builder addTags(Tag value)
A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier.
repeated .grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13 [json_name = "tags"];
public Swagger.Builder addTags(int index, Tag value)
A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier.
repeated .grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13 [json_name = "tags"];
public Swagger.Builder addTags(Tag.Builder builderForValue)
A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier.
repeated .grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13 [json_name = "tags"];
public Swagger.Builder addTags(int index, Tag.Builder builderForValue)
A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier.
repeated .grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13 [json_name = "tags"];
public Swagger.Builder addAllTags(java.lang.Iterable<? extends Tag> values)
A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier.
repeated .grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13 [json_name = "tags"];
public Swagger.Builder clearTags()
A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier.
repeated .grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13 [json_name = "tags"];
public Swagger.Builder removeTags(int index)
A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier.
repeated .grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13 [json_name = "tags"];
public Tag.Builder getTagsBuilder(int index)
A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier.
repeated .grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13 [json_name = "tags"];
public TagOrBuilder getTagsOrBuilder(int index)
A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier.
repeated .grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13 [json_name = "tags"];
getTagsOrBuilder
in interface SwaggerOrBuilder
public java.util.List<? extends TagOrBuilder> getTagsOrBuilderList()
A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier.
repeated .grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13 [json_name = "tags"];
getTagsOrBuilderList
in interface SwaggerOrBuilder
public Tag.Builder addTagsBuilder()
A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier.
repeated .grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13 [json_name = "tags"];
public Tag.Builder addTagsBuilder(int index)
A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier.
repeated .grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13 [json_name = "tags"];
public java.util.List<Tag.Builder> getTagsBuilderList()
A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier.
repeated .grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13 [json_name = "tags"];
public boolean hasExternalDocs()
Additional external documentation.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14 [json_name = "externalDocs"];
hasExternalDocs
in interface SwaggerOrBuilder
public ExternalDocumentation getExternalDocs()
Additional external documentation.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14 [json_name = "externalDocs"];
getExternalDocs
in interface SwaggerOrBuilder
public Swagger.Builder setExternalDocs(ExternalDocumentation value)
Additional external documentation.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14 [json_name = "externalDocs"];
public Swagger.Builder setExternalDocs(ExternalDocumentation.Builder builderForValue)
Additional external documentation.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14 [json_name = "externalDocs"];
public Swagger.Builder mergeExternalDocs(ExternalDocumentation value)
Additional external documentation.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14 [json_name = "externalDocs"];
public Swagger.Builder clearExternalDocs()
Additional external documentation.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14 [json_name = "externalDocs"];
public ExternalDocumentation.Builder getExternalDocsBuilder()
Additional external documentation.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14 [json_name = "externalDocs"];
public ExternalDocumentationOrBuilder getExternalDocsOrBuilder()
Additional external documentation.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14 [json_name = "externalDocs"];
getExternalDocsOrBuilder
in interface SwaggerOrBuilder
public int getExtensionsCount()
SwaggerOrBuilder
Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification. See: https://swagger.io/docs/specification/2-0/swagger-extensions/
map<string, .google.protobuf.Value> extensions = 15 [json_name = "extensions"];
getExtensionsCount
in interface SwaggerOrBuilder
public boolean containsExtensions(java.lang.String key)
Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification. See: https://swagger.io/docs/specification/2-0/swagger-extensions/
map<string, .google.protobuf.Value> extensions = 15 [json_name = "extensions"];
containsExtensions
in interface SwaggerOrBuilder
@Deprecated public java.util.Map<java.lang.String,com.google.protobuf.Value> getExtensions()
getExtensionsMap()
instead.getExtensions
in interface SwaggerOrBuilder
public java.util.Map<java.lang.String,com.google.protobuf.Value> getExtensionsMap()
Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification. See: https://swagger.io/docs/specification/2-0/swagger-extensions/
map<string, .google.protobuf.Value> extensions = 15 [json_name = "extensions"];
getExtensionsMap
in interface SwaggerOrBuilder
public com.google.protobuf.Value getExtensionsOrDefault(java.lang.String key, com.google.protobuf.Value defaultValue)
Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification. See: https://swagger.io/docs/specification/2-0/swagger-extensions/
map<string, .google.protobuf.Value> extensions = 15 [json_name = "extensions"];
getExtensionsOrDefault
in interface SwaggerOrBuilder
public com.google.protobuf.Value getExtensionsOrThrow(java.lang.String key)
Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification. See: https://swagger.io/docs/specification/2-0/swagger-extensions/
map<string, .google.protobuf.Value> extensions = 15 [json_name = "extensions"];
getExtensionsOrThrow
in interface SwaggerOrBuilder
public Swagger.Builder clearExtensions()
public Swagger.Builder removeExtensions(java.lang.String key)
Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification. See: https://swagger.io/docs/specification/2-0/swagger-extensions/
map<string, .google.protobuf.Value> extensions = 15 [json_name = "extensions"];
@Deprecated public java.util.Map<java.lang.String,com.google.protobuf.Value> getMutableExtensions()
public Swagger.Builder putExtensions(java.lang.String key, com.google.protobuf.Value value)
Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification. See: https://swagger.io/docs/specification/2-0/swagger-extensions/
map<string, .google.protobuf.Value> extensions = 15 [json_name = "extensions"];
public Swagger.Builder putAllExtensions(java.util.Map<java.lang.String,com.google.protobuf.Value> values)
Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification. See: https://swagger.io/docs/specification/2-0/swagger-extensions/
map<string, .google.protobuf.Value> extensions = 15 [json_name = "extensions"];
public com.google.protobuf.Value.Builder putExtensionsBuilderIfAbsent(java.lang.String key)
Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification. See: https://swagger.io/docs/specification/2-0/swagger-extensions/
map<string, .google.protobuf.Value> extensions = 15 [json_name = "extensions"];