public static interface Openapiv2.SwaggerOrBuilder
extends com.google.protobuf.MessageOrBuilder
| 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.
|
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.
|
java.util.List<java.lang.String> |
getConsumesList()
A list of MIME types the APIs can consume.
|
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.
|
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.
|
java.util.List<java.lang.String> |
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.
|
java.lang.String |
getSwagger()
Specifies the OpenAPI Specification version being used.
|
com.google.protobuf.ByteString |
getSwaggerBytes()
Specifies the OpenAPI Specification version being used.
|
boolean |
hasExternalDocs()
Additional external documentation.
|
boolean |
hasInfo()
Provides metadata about the API.
|
boolean |
hasSecurityDefinitions()
Security scheme definitions that can be used across the specification.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofjava.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;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;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;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;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;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;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;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;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;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;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;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;index - The index of the element to return.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;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;index - The index of the value to return.java.util.List<java.lang.String> 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;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;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;index - The index of the element to return.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;index - The index of the value to return.java.util.List<java.lang.String> 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;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;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;index - The index of the element to return.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;index - The index of the value to return.int getResponsesCount()
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;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;@Deprecated java.util.Map<java.lang.String,Openapiv2.Response> getResponses()
getResponsesMap() instead.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;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;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;boolean hasSecurityDefinitions()
Security scheme definitions that can be used across the specification.
.grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11;Openapiv2.SecurityDefinitions getSecurityDefinitions()
Security scheme definitions that can be used across the specification.
.grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11;Openapiv2.SecurityDefinitionsOrBuilder getSecurityDefinitionsOrBuilder()
Security scheme definitions that can be used across the specification.
.grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11;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;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;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;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;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;boolean hasExternalDocs()
Additional external documentation.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14;Openapiv2.ExternalDocumentation getExternalDocs()
Additional external documentation.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14;Openapiv2.ExternalDocumentationOrBuilder getExternalDocsOrBuilder()
Additional external documentation.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14;int getExtensionsCount()
map<string, .google.protobuf.Value> extensions = 15;boolean containsExtensions(java.lang.String key)
map<string, .google.protobuf.Value> extensions = 15;@Deprecated java.util.Map<java.lang.String,com.google.protobuf.Value> getExtensions()
getExtensionsMap() instead.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;