public final class Response extends com.google.protobuf.GeneratedMessage implements ResponseOrBuilder
`Response` is a representation of OpenAPI v2 specification's Response object. See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#responseObjectProtobuf type
grpc.gateway.protoc_gen_openapiv2.options.Response
Modifier and Type | Class and Description |
---|---|
static class |
Response.Builder
`Response` is a representation of OpenAPI v2 specification's Response 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 |
DESCRIPTION_FIELD_NUMBER |
static int |
EXAMPLES_FIELD_NUMBER |
static int |
EXTENSIONS_FIELD_NUMBER |
static int |
HEADERS_FIELD_NUMBER |
static int |
SCHEMA_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
containsExamples(java.lang.String key)
`Examples` gives per-mimetype response examples.
|
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 |
containsHeaders(java.lang.String key)
`Headers` A list of headers that are sent with the response.
|
boolean |
equals(java.lang.Object obj) |
static Response |
getDefaultInstance() |
Response |
getDefaultInstanceForType() |
java.lang.String |
getDescription()
`Description` is a short description of the response.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
`Description` is a short description of the response.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
java.util.Map<java.lang.String,java.lang.String> |
getExamples()
Deprecated.
|
int |
getExamplesCount()
`Examples` gives per-mimetype response examples.
|
java.util.Map<java.lang.String,java.lang.String> |
getExamplesMap()
`Examples` gives per-mimetype response examples.
|
java.lang.String |
getExamplesOrDefault(java.lang.String key,
java.lang.String defaultValue)
`Examples` gives per-mimetype response examples.
|
java.lang.String |
getExamplesOrThrow(java.lang.String key)
`Examples` gives per-mimetype response examples.
|
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.
|
java.util.Map<java.lang.String,Header> |
getHeaders()
Deprecated.
|
int |
getHeadersCount()
`Headers` A list of headers that are sent with the response.
|
java.util.Map<java.lang.String,Header> |
getHeadersMap()
`Headers` A list of headers that are sent with the response.
|
Header |
getHeadersOrDefault(java.lang.String key,
Header defaultValue)
`Headers` A list of headers that are sent with the response.
|
Header |
getHeadersOrThrow(java.lang.String key)
`Headers` A list of headers that are sent with the response.
|
com.google.protobuf.Parser<Response> |
getParserForType() |
Schema |
getSchema()
`Schema` optionally defines the structure of the response.
|
SchemaOrBuilder |
getSchemaOrBuilder()
`Schema` optionally defines the structure of the response.
|
int |
getSerializedSize() |
int |
hashCode() |
boolean |
hasSchema()
`Schema` optionally defines the structure of the response.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
boolean |
isInitialized() |
static Response.Builder |
newBuilder() |
static Response.Builder |
newBuilder(Response prototype) |
Response.Builder |
newBuilderForType() |
protected Response.Builder |
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) |
static Response |
parseDelimitedFrom(java.io.InputStream input) |
static Response |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Response |
parseFrom(byte[] data) |
static Response |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Response |
parseFrom(java.nio.ByteBuffer data) |
static Response |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Response |
parseFrom(com.google.protobuf.ByteString data) |
static Response |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Response |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Response |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Response |
parseFrom(java.io.InputStream input) |
static Response |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Response> |
parser() |
Response.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 DESCRIPTION_FIELD_NUMBER
public static final int SCHEMA_FIELD_NUMBER
public static final int HEADERS_FIELD_NUMBER
public static final int EXAMPLES_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 getDescription()
`Description` is a short description of the response. GFM syntax can be used for rich text representation.
string description = 1 [json_name = "description"];
getDescription
in interface ResponseOrBuilder
public com.google.protobuf.ByteString getDescriptionBytes()
`Description` is a short description of the response. GFM syntax can be used for rich text representation.
string description = 1 [json_name = "description"];
getDescriptionBytes
in interface ResponseOrBuilder
public boolean hasSchema()
`Schema` optionally defines the structure of the response. If `Schema` is not provided, it means there is no content to the response.
.grpc.gateway.protoc_gen_openapiv2.options.Schema schema = 2 [json_name = "schema"];
hasSchema
in interface ResponseOrBuilder
public Schema getSchema()
`Schema` optionally defines the structure of the response. If `Schema` is not provided, it means there is no content to the response.
.grpc.gateway.protoc_gen_openapiv2.options.Schema schema = 2 [json_name = "schema"];
getSchema
in interface ResponseOrBuilder
public SchemaOrBuilder getSchemaOrBuilder()
`Schema` optionally defines the structure of the response. If `Schema` is not provided, it means there is no content to the response.
.grpc.gateway.protoc_gen_openapiv2.options.Schema schema = 2 [json_name = "schema"];
getSchemaOrBuilder
in interface ResponseOrBuilder
public int getHeadersCount()
ResponseOrBuilder
`Headers` A list of headers that are sent with the response. `Header` name is expected to be a string in the canonical format of the MIME header key See: https://golang.org/pkg/net/textproto/#CanonicalMIMEHeaderKey
map<string, .grpc.gateway.protoc_gen_openapiv2.options.Header> headers = 3 [json_name = "headers"];
getHeadersCount
in interface ResponseOrBuilder
public boolean containsHeaders(java.lang.String key)
`Headers` A list of headers that are sent with the response. `Header` name is expected to be a string in the canonical format of the MIME header key See: https://golang.org/pkg/net/textproto/#CanonicalMIMEHeaderKey
map<string, .grpc.gateway.protoc_gen_openapiv2.options.Header> headers = 3 [json_name = "headers"];
containsHeaders
in interface ResponseOrBuilder
@Deprecated public java.util.Map<java.lang.String,Header> getHeaders()
getHeadersMap()
instead.getHeaders
in interface ResponseOrBuilder
public java.util.Map<java.lang.String,Header> getHeadersMap()
`Headers` A list of headers that are sent with the response. `Header` name is expected to be a string in the canonical format of the MIME header key See: https://golang.org/pkg/net/textproto/#CanonicalMIMEHeaderKey
map<string, .grpc.gateway.protoc_gen_openapiv2.options.Header> headers = 3 [json_name = "headers"];
getHeadersMap
in interface ResponseOrBuilder
public Header getHeadersOrDefault(java.lang.String key, Header defaultValue)
`Headers` A list of headers that are sent with the response. `Header` name is expected to be a string in the canonical format of the MIME header key See: https://golang.org/pkg/net/textproto/#CanonicalMIMEHeaderKey
map<string, .grpc.gateway.protoc_gen_openapiv2.options.Header> headers = 3 [json_name = "headers"];
getHeadersOrDefault
in interface ResponseOrBuilder
public Header getHeadersOrThrow(java.lang.String key)
`Headers` A list of headers that are sent with the response. `Header` name is expected to be a string in the canonical format of the MIME header key See: https://golang.org/pkg/net/textproto/#CanonicalMIMEHeaderKey
map<string, .grpc.gateway.protoc_gen_openapiv2.options.Header> headers = 3 [json_name = "headers"];
getHeadersOrThrow
in interface ResponseOrBuilder
public int getExamplesCount()
ResponseOrBuilder
`Examples` gives per-mimetype response examples. See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#example-object
map<string, string> examples = 4 [json_name = "examples"];
getExamplesCount
in interface ResponseOrBuilder
public boolean containsExamples(java.lang.String key)
`Examples` gives per-mimetype response examples. See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#example-object
map<string, string> examples = 4 [json_name = "examples"];
containsExamples
in interface ResponseOrBuilder
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getExamples()
getExamplesMap()
instead.getExamples
in interface ResponseOrBuilder
public java.util.Map<java.lang.String,java.lang.String> getExamplesMap()
`Examples` gives per-mimetype response examples. See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#example-object
map<string, string> examples = 4 [json_name = "examples"];
getExamplesMap
in interface ResponseOrBuilder
public java.lang.String getExamplesOrDefault(java.lang.String key, java.lang.String defaultValue)
`Examples` gives per-mimetype response examples. See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#example-object
map<string, string> examples = 4 [json_name = "examples"];
getExamplesOrDefault
in interface ResponseOrBuilder
public java.lang.String getExamplesOrThrow(java.lang.String key)
`Examples` gives per-mimetype response examples. See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#example-object
map<string, string> examples = 4 [json_name = "examples"];
getExamplesOrThrow
in interface ResponseOrBuilder
public int getExtensionsCount()
ResponseOrBuilder
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 = 5 [json_name = "extensions"];
getExtensionsCount
in interface ResponseOrBuilder
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 = 5 [json_name = "extensions"];
containsExtensions
in interface ResponseOrBuilder
@Deprecated public java.util.Map<java.lang.String,com.google.protobuf.Value> getExtensions()
getExtensionsMap()
instead.getExtensions
in interface ResponseOrBuilder
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 = 5 [json_name = "extensions"];
getExtensionsMap
in interface ResponseOrBuilder
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 = 5 [json_name = "extensions"];
getExtensionsOrDefault
in interface ResponseOrBuilder
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 = 5 [json_name = "extensions"];
getExtensionsOrThrow
in interface ResponseOrBuilder
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 Response parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Response parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Response parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Response parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Response parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Response parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Response parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Response parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Response parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Response parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Response parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Response parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public Response.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static Response.Builder newBuilder()
public static Response.Builder newBuilder(Response prototype)
public Response.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected Response.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.AbstractMessage
public static Response getDefaultInstance()
public static com.google.protobuf.Parser<Response> parser()
public com.google.protobuf.Parser<Response> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
public Response getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder