public static final class Openapiv2.Swagger extends com.google.protobuf.GeneratedMessageV3 implements Openapiv2.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/master/LICENSE.txt";
};
};
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 |
Openapiv2.Swagger.Builder
`Swagger` is a representation of OpenAPI v2 specification's Swagger object.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.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 |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsExtensions(java.lang.String key)
map<string, .google.protobuf.Value> extensions = 15; |
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 Openapiv2.Swagger |
getDefaultInstance() |
Openapiv2.Swagger |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
java.util.Map<java.lang.String,com.google.protobuf.Value> |
getExtensions()
Deprecated.
|
int |
getExtensionsCount()
map<string, .google.protobuf.Value> extensions = 15; |
java.util.Map<java.lang.String,com.google.protobuf.Value> |
getExtensionsMap()
map<string, .google.protobuf.Value> extensions = 15; |
com.google.protobuf.Value |
getExtensionsOrDefault(java.lang.String key,
com.google.protobuf.Value defaultValue)
map<string, .google.protobuf.Value> extensions = 15; |
com.google.protobuf.Value |
getExtensionsOrThrow(java.lang.String key)
map<string, .google.protobuf.Value> extensions = 15; |
Openapiv2.ExternalDocumentation |
getExternalDocs()
Additional external documentation.
|
Openapiv2.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.
|
Openapiv2.Info |
getInfo()
Provides metadata about the API.
|
Openapiv2.InfoOrBuilder |
getInfoOrBuilder()
Provides metadata about the API.
|
com.google.protobuf.Parser<Openapiv2.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,Openapiv2.Response> |
getResponses()
Deprecated.
|
int |
getResponsesCount()
An object to hold responses that can be used across operations.
|
java.util.Map<java.lang.String,Openapiv2.Response> |
getResponsesMap()
An object to hold responses that can be used across operations.
|
Openapiv2.Response |
getResponsesOrDefault(java.lang.String key,
Openapiv2.Response defaultValue)
An object to hold responses that can be used across operations.
|
Openapiv2.Response |
getResponsesOrThrow(java.lang.String key)
An object to hold responses that can be used across operations.
|
Openapiv2.Scheme |
getSchemes(int index)
The transfer protocol of the API.
|
int |
getSchemesCount()
The transfer protocol of the API.
|
java.util.List<Openapiv2.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.
|
Openapiv2.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.
|
Openapiv2.SecurityDefinitions |
getSecurityDefinitions()
Security scheme definitions that can be used across the specification.
|
Openapiv2.SecurityDefinitionsOrBuilder |
getSecurityDefinitionsOrBuilder()
Security scheme definitions that can be used across the specification.
|
java.util.List<Openapiv2.SecurityRequirement> |
getSecurityList()
A declaration of which security schemes are applied for the API as a whole.
|
Openapiv2.SecurityRequirementOrBuilder |
getSecurityOrBuilder(int index)
A declaration of which security schemes are applied for the API as a whole.
|
java.util.List<? extends Openapiv2.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.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
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.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static Openapiv2.Swagger.Builder |
newBuilder() |
static Openapiv2.Swagger.Builder |
newBuilder(Openapiv2.Swagger prototype) |
Openapiv2.Swagger.Builder |
newBuilderForType() |
protected Openapiv2.Swagger.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected java.lang.Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Openapiv2.Swagger |
parseDelimitedFrom(java.io.InputStream input) |
static Openapiv2.Swagger |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Openapiv2.Swagger |
parseFrom(byte[] data) |
static Openapiv2.Swagger |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Openapiv2.Swagger |
parseFrom(java.nio.ByteBuffer data) |
static Openapiv2.Swagger |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Openapiv2.Swagger |
parseFrom(com.google.protobuf.ByteString data) |
static Openapiv2.Swagger |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Openapiv2.Swagger |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Openapiv2.Swagger |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Openapiv2.Swagger |
parseFrom(java.io.InputStream input) |
static Openapiv2.Swagger |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Openapiv2.Swagger> |
parser() |
Openapiv2.Swagger.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic 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 EXTERNAL_DOCS_FIELD_NUMBER
public static final int EXTENSIONS_FIELD_NUMBER
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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;getSwagger in interface Openapiv2.SwaggerOrBuilderpublic 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;getSwaggerBytes in interface Openapiv2.SwaggerOrBuilderpublic 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;hasInfo in interface Openapiv2.SwaggerOrBuilderpublic Openapiv2.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;getInfo in interface Openapiv2.SwaggerOrBuilderpublic Openapiv2.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;getInfoOrBuilder in interface Openapiv2.SwaggerOrBuilderpublic 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;getHost in interface Openapiv2.SwaggerOrBuilderpublic 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;getHostBytes in interface Openapiv2.SwaggerOrBuilderpublic 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;getBasePath in interface Openapiv2.SwaggerOrBuilderpublic 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;getBasePathBytes in interface Openapiv2.SwaggerOrBuilderpublic java.util.List<Openapiv2.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;getSchemesList in interface Openapiv2.SwaggerOrBuilderpublic 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;getSchemesCount in interface Openapiv2.SwaggerOrBuilderpublic Openapiv2.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;getSchemes in interface Openapiv2.SwaggerOrBuilderindex - 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;getSchemesValueList in interface Openapiv2.SwaggerOrBuilderpublic 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;getSchemesValue in interface Openapiv2.SwaggerOrBuilderindex - 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;getConsumesList in interface Openapiv2.SwaggerOrBuilderpublic 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;getConsumesCount in interface Openapiv2.SwaggerOrBuilderpublic 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;getConsumes in interface Openapiv2.SwaggerOrBuilderindex - 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;getConsumesBytes in interface Openapiv2.SwaggerOrBuilderindex - 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;getProducesList in interface Openapiv2.SwaggerOrBuilderpublic 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;getProducesCount in interface Openapiv2.SwaggerOrBuilderpublic 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;getProduces in interface Openapiv2.SwaggerOrBuilderindex - 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;getProducesBytes in interface Openapiv2.SwaggerOrBuilderindex - The index of the value to return.public int getResponsesCount()
Openapiv2.SwaggerOrBuilderAn 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;getResponsesCount in interface Openapiv2.SwaggerOrBuilderpublic 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;containsResponses in interface Openapiv2.SwaggerOrBuilder@Deprecated public java.util.Map<java.lang.String,Openapiv2.Response> getResponses()
getResponsesMap() instead.getResponses in interface Openapiv2.SwaggerOrBuilderpublic java.util.Map<java.lang.String,Openapiv2.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;getResponsesMap in interface Openapiv2.SwaggerOrBuilderpublic Openapiv2.Response getResponsesOrDefault(java.lang.String key, Openapiv2.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;getResponsesOrDefault in interface Openapiv2.SwaggerOrBuilderpublic Openapiv2.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;getResponsesOrThrow in interface Openapiv2.SwaggerOrBuilderpublic boolean hasSecurityDefinitions()
Security scheme definitions that can be used across the specification.
.grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11;hasSecurityDefinitions in interface Openapiv2.SwaggerOrBuilderpublic Openapiv2.SecurityDefinitions getSecurityDefinitions()
Security scheme definitions that can be used across the specification.
.grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11;getSecurityDefinitions in interface Openapiv2.SwaggerOrBuilderpublic Openapiv2.SecurityDefinitionsOrBuilder getSecurityDefinitionsOrBuilder()
Security scheme definitions that can be used across the specification.
.grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11;getSecurityDefinitionsOrBuilder in interface Openapiv2.SwaggerOrBuilderpublic java.util.List<Openapiv2.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;getSecurityList in interface Openapiv2.SwaggerOrBuilderpublic java.util.List<? extends Openapiv2.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;getSecurityOrBuilderList in interface Openapiv2.SwaggerOrBuilderpublic 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;getSecurityCount in interface Openapiv2.SwaggerOrBuilderpublic Openapiv2.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;getSecurity in interface Openapiv2.SwaggerOrBuilderpublic Openapiv2.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;getSecurityOrBuilder in interface Openapiv2.SwaggerOrBuilderpublic boolean hasExternalDocs()
Additional external documentation.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14;hasExternalDocs in interface Openapiv2.SwaggerOrBuilderpublic Openapiv2.ExternalDocumentation getExternalDocs()
Additional external documentation.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14;getExternalDocs in interface Openapiv2.SwaggerOrBuilderpublic Openapiv2.ExternalDocumentationOrBuilder getExternalDocsOrBuilder()
Additional external documentation.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14;getExternalDocsOrBuilder in interface Openapiv2.SwaggerOrBuilderpublic int getExtensionsCount()
Openapiv2.SwaggerOrBuildermap<string, .google.protobuf.Value> extensions = 15;getExtensionsCount in interface Openapiv2.SwaggerOrBuilderpublic boolean containsExtensions(java.lang.String key)
map<string, .google.protobuf.Value> extensions = 15;containsExtensions in interface Openapiv2.SwaggerOrBuilder@Deprecated public java.util.Map<java.lang.String,com.google.protobuf.Value> getExtensions()
getExtensionsMap() instead.getExtensions in interface Openapiv2.SwaggerOrBuilderpublic java.util.Map<java.lang.String,com.google.protobuf.Value> getExtensionsMap()
map<string, .google.protobuf.Value> extensions = 15;getExtensionsMap in interface Openapiv2.SwaggerOrBuilderpublic com.google.protobuf.Value getExtensionsOrDefault(java.lang.String key,
com.google.protobuf.Value defaultValue)
map<string, .google.protobuf.Value> extensions = 15;getExtensionsOrDefault in interface Openapiv2.SwaggerOrBuilderpublic com.google.protobuf.Value getExtensionsOrThrow(java.lang.String key)
map<string, .google.protobuf.Value> extensions = 15;getExtensionsOrThrow in interface Openapiv2.SwaggerOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Openapiv2.Swagger parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Openapiv2.Swagger parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Openapiv2.Swagger parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Openapiv2.Swagger parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Openapiv2.Swagger parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Openapiv2.Swagger parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Openapiv2.Swagger parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Openapiv2.Swagger parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Openapiv2.Swagger parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Openapiv2.Swagger parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Openapiv2.Swagger parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Openapiv2.Swagger parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Openapiv2.Swagger.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Openapiv2.Swagger.Builder newBuilder()
public static Openapiv2.Swagger.Builder newBuilder(Openapiv2.Swagger prototype)
public Openapiv2.Swagger.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Openapiv2.Swagger.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Openapiv2.Swagger getDefaultInstance()
public static com.google.protobuf.Parser<Openapiv2.Swagger> parser()
public com.google.protobuf.Parser<Openapiv2.Swagger> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Openapiv2.Swagger getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder