Class Openapiv2.Response.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Openapiv2.Response.Builder>
grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Openapiv2.ResponseOrBuilder,Cloneable
- Enclosing class:
- Openapiv2.Response
public static final class Openapiv2.Response.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Openapiv2.Response.Builder>
implements Openapiv2.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()`Description` is a short description of the response.`Schema` optionally defines the structure of the response.booleancontainsExamples(String key) `Examples` gives per-mimetype response examples.booleancontainsExtensions(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.booleancontainsHeaders(String key) `Headers` A list of headers that are sent with the response.`Description` is a short description of the response.com.google.protobuf.ByteString`Description` is a short description of the response.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.int`Examples` gives per-mimetype response examples.`Examples` gives per-mimetype response examples.getExamplesOrDefault(String key, String defaultValue) `Examples` gives per-mimetype response examples.getExamplesOrThrow(String key) `Examples` gives per-mimetype response examples.Deprecated.intCustom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification.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.ValuegetExtensionsOrDefault(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.ValueCustom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification.Deprecated.int`Headers` A list of headers that are sent with the response.`Headers` A list of headers that are sent with the response.getHeadersOrDefault(String key, Openapiv2.Header defaultValue) `Headers` A list of headers that are sent with the response.getHeadersOrThrow(String key) `Headers` A list of headers that are sent with the response.Deprecated.Deprecated.Deprecated.`Schema` optionally defines the structure of the response.`Schema` optionally defines the structure of the response.`Schema` optionally defines the structure of the response.boolean`Schema` optionally defines the structure of the response.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Openapiv2.Response other) mergeSchema(Openapiv2.Schema value) `Schema` optionally defines the structure of the response.putAllExamples(Map<String, String> values) `Examples` gives per-mimetype response examples.putAllExtensions(Map<String, com.google.protobuf.Value> values) Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification.putAllHeaders(Map<String, Openapiv2.Header> values) `Headers` A list of headers that are sent with the response.putExamples(String key, String value) `Examples` gives per-mimetype response examples.putExtensions(String key, com.google.protobuf.Value value) Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification.com.google.protobuf.Value.BuilderCustom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification.putHeaders(String key, Openapiv2.Header value) `Headers` A list of headers that are sent with the response.`Headers` A list of headers that are sent with the response.removeExamples(String key) `Examples` gives per-mimetype response examples.removeExtensions(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.removeHeaders(String key) `Headers` A list of headers that are sent with the response.setDescription(String value) `Description` is a short description of the response.setDescriptionBytes(com.google.protobuf.ByteString value) `Description` is a short description of the response.setSchema(Openapiv2.Schema value) `Schema` optionally defines the structure of the response.setSchema(Openapiv2.Schema.Builder builderForValue) `Schema` optionally defines the structure of the response.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Openapiv2.Response.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Openapiv2.Response.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Openapiv2.Response.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Openapiv2.Response.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Openapiv2.Response.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Openapiv2.Response.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Openapiv2.Response.Builder>
-
mergeFrom
public Openapiv2.Response.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Openapiv2.Response.Builder>- Throws:
IOException
-
getDescription
`Description` is a short description of the response. GFM syntax can be used for rich text representation.
string description = 1;- Specified by:
getDescriptionin interfaceOpenapiv2.ResponseOrBuilder- Returns:
- The description.
-
getDescriptionBytes
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;- Specified by:
getDescriptionBytesin interfaceOpenapiv2.ResponseOrBuilder- Returns:
- The bytes for description.
-
setDescription
`Description` is a short description of the response. GFM syntax can be used for rich text representation.
string description = 1;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
`Description` is a short description of the response. GFM syntax can be used for rich text representation.
string description = 1;- Returns:
- This builder for chaining.
-
setDescriptionBytes
`Description` is a short description of the response. GFM syntax can be used for rich text representation.
string description = 1;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
hasSchema
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;- Specified by:
hasSchemain interfaceOpenapiv2.ResponseOrBuilder- Returns:
- Whether the schema field is set.
-
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;- Specified by:
getSchemain interfaceOpenapiv2.ResponseOrBuilder- Returns:
- The schema.
-
setSchema
`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; -
setSchema
`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; -
mergeSchema
`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; -
clearSchema
`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; -
getSchemaBuilder
`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; -
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;- Specified by:
getSchemaOrBuilderin interfaceOpenapiv2.ResponseOrBuilder
-
getHeadersCount
public int getHeadersCount()Description copied from interface:Openapiv2.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;- Specified by:
getHeadersCountin interfaceOpenapiv2.ResponseOrBuilder
-
containsHeaders
`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;- Specified by:
containsHeadersin interfaceOpenapiv2.ResponseOrBuilder
-
getHeaders
Deprecated.UsegetHeadersMap()instead.- Specified by:
getHeadersin interfaceOpenapiv2.ResponseOrBuilder
-
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;- Specified by:
getHeadersMapin interfaceOpenapiv2.ResponseOrBuilder
-
getHeadersOrDefault
`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;- Specified by:
getHeadersOrDefaultin interfaceOpenapiv2.ResponseOrBuilder
-
getHeadersOrThrow
`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;- Specified by:
getHeadersOrThrowin interfaceOpenapiv2.ResponseOrBuilder
-
clearHeaders
-
removeHeaders
`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; -
getMutableHeaders
Deprecated.Use alternate mutation accessors instead. -
putHeaders
`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; -
putAllHeaders
`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; -
putHeadersBuilderIfAbsent
`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; -
getExamplesCount
public int getExamplesCount()Description copied from interface:Openapiv2.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;- Specified by:
getExamplesCountin interfaceOpenapiv2.ResponseOrBuilder
-
containsExamples
`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;- Specified by:
containsExamplesin interfaceOpenapiv2.ResponseOrBuilder
-
getExamples
Deprecated.UsegetExamplesMap()instead.- Specified by:
getExamplesin interfaceOpenapiv2.ResponseOrBuilder
-
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;- Specified by:
getExamplesMapin interfaceOpenapiv2.ResponseOrBuilder
-
getExamplesOrDefault
`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;- Specified by:
getExamplesOrDefaultin interfaceOpenapiv2.ResponseOrBuilder
-
getExamplesOrThrow
`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;- Specified by:
getExamplesOrThrowin interfaceOpenapiv2.ResponseOrBuilder
-
clearExamples
-
removeExamples
`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; -
getMutableExamples
Deprecated.Use alternate mutation accessors instead. -
putExamples
`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; -
putAllExamples
`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; -
getExtensionsCount
public int getExtensionsCount()Description copied from interface:Openapiv2.ResponseOrBuilderCustom 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;- Specified by:
getExtensionsCountin interfaceOpenapiv2.ResponseOrBuilder
-
containsExtensions
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;- Specified by:
containsExtensionsin interfaceOpenapiv2.ResponseOrBuilder
-
getExtensions
Deprecated.UsegetExtensionsMap()instead.- Specified by:
getExtensionsin interfaceOpenapiv2.ResponseOrBuilder
-
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;- Specified by:
getExtensionsMapin interfaceOpenapiv2.ResponseOrBuilder
-
getExtensionsOrDefault
public com.google.protobuf.Value getExtensionsOrDefault(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;- Specified by:
getExtensionsOrDefaultin interfaceOpenapiv2.ResponseOrBuilder
-
getExtensionsOrThrow
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;- Specified by:
getExtensionsOrThrowin interfaceOpenapiv2.ResponseOrBuilder
-
clearExtensions
-
removeExtensions
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; -
getMutableExtensions
Deprecated.Use alternate mutation accessors instead. -
putExtensions
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; -
putAllExtensions
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; -
putExtensionsBuilderIfAbsent
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;
-