public final class Swagger extends com.google.protobuf.GeneratedMessage 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 | Class and Description |
---|---|
static class |
Swagger.Builder
`Swagger` is a representation of OpenAPI v2 specification's Swagger object.
|
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter
Modifier and Type | Field and Description |
---|---|
static int |
BASE_PATH_FIELD_NUMBER |
static int |
CONSUMES_FIELD_NUMBER |
static int |
EXTENSIONS_FIELD_NUMBER |
static int |
EXTERNAL_DOCS_FIELD_NUMBER |
static int |
HOST_FIELD_NUMBER |
static int |
INFO_FIELD_NUMBER |
static int |
PRODUCES_FIELD_NUMBER |
static int |
RESPONSES_FIELD_NUMBER |
static int |
SCHEMES_FIELD_NUMBER |
static int |
SECURITY_DEFINITIONS_FIELD_NUMBER |
static int |
SECURITY_FIELD_NUMBER |
static int |
SWAGGER_FIELD_NUMBER |
static int |
TAGS_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
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.
|
boolean |
equals(java.lang.Object obj) |
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.
|
static Swagger |
getDefaultInstance() |
Swagger |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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.
|
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.
|
InfoOrBuilder |
getInfoOrBuilder()
Provides metadata about the API.
|
com.google.protobuf.Parser<Swagger> |
getParserForType() |
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.
|
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.
|
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.
|
int |
getSerializedSize() |
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.
|
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.
|
int |
hashCode() |
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) |
boolean |
isInitialized() |
static Swagger.Builder |
newBuilder() |
static Swagger.Builder |
newBuilder(Swagger prototype) |
Swagger.Builder |
newBuilderForType() |
protected Swagger.Builder |
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) |
static Swagger |
parseDelimitedFrom(java.io.InputStream input) |
static Swagger |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Swagger |
parseFrom(byte[] data) |
static Swagger |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Swagger |
parseFrom(java.nio.ByteBuffer data) |
static Swagger |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Swagger |
parseFrom(com.google.protobuf.ByteString data) |
static Swagger |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Swagger |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Swagger |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Swagger |
parseFrom(java.io.InputStream input) |
static Swagger |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Swagger> |
parser() |
Swagger.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashFields, toString
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static final int SWAGGER_FIELD_NUMBER
public static final int INFO_FIELD_NUMBER
public static final int HOST_FIELD_NUMBER
public static final int BASE_PATH_FIELD_NUMBER
public static final int SCHEMES_FIELD_NUMBER
public static final int CONSUMES_FIELD_NUMBER
public static final int PRODUCES_FIELD_NUMBER
public static final int RESPONSES_FIELD_NUMBER
public static final int SECURITY_DEFINITIONS_FIELD_NUMBER
public static final int SECURITY_FIELD_NUMBER
public static final int TAGS_FIELD_NUMBER
public static final int EXTERNAL_DOCS_FIELD_NUMBER
public static final int EXTENSIONS_FIELD_NUMBER
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection
in class com.google.protobuf.GeneratedMessage
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage
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 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 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 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 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 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 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 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 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 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 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 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 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 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<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 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 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 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 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 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 final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessage
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessage
public boolean equals(java.lang.Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static Swagger parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Swagger parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Swagger parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Swagger parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Swagger parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Swagger parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Swagger parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Swagger parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Swagger parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Swagger parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Swagger parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Swagger parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public Swagger.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static Swagger.Builder newBuilder()
public static Swagger.Builder newBuilder(Swagger prototype)
public Swagger.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected Swagger.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.AbstractMessage
public static Swagger getDefaultInstance()
public static com.google.protobuf.Parser<Swagger> parser()
public com.google.protobuf.Parser<Swagger> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
public Swagger getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder