Class Openapiv2.Response.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.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,java.lang.Cloneable
- Enclosing class:
- Openapiv2.Response
public static final class Openapiv2.Response.Builder extends com.google.protobuf.GeneratedMessageV3.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#responseObject
Protobuf typegrpc.gateway.protoc_gen_openapiv2.options.Response
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Openapiv2.Response.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Openapiv2.Responsebuild()Openapiv2.ResponsebuildPartial()Openapiv2.Response.Builderclear()Openapiv2.Response.BuilderclearDescription()`Description` is a short description of the response.Openapiv2.Response.BuilderclearExamples()Openapiv2.Response.BuilderclearExtensions()Openapiv2.Response.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Openapiv2.Response.BuilderclearHeaders()Openapiv2.Response.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Openapiv2.Response.BuilderclearSchema()`Schema` optionally defines the structure of the response.Openapiv2.Response.Builderclone()booleancontainsExamples(java.lang.String key)`Examples` gives per-mimetype response examples.booleancontainsExtensions(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.booleancontainsHeaders(java.lang.String key)`Headers` A list of headers that are sent with the response.Openapiv2.ResponsegetDefaultInstanceForType()java.lang.StringgetDescription()`Description` is a short description of the response.com.google.protobuf.ByteStringgetDescriptionBytes()`Description` is a short description of the response.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.util.Map<java.lang.String,java.lang.String>getExamples()Deprecated.intgetExamplesCount()`Examples` gives per-mimetype response examples.java.util.Map<java.lang.String,java.lang.String>getExamplesMap()`Examples` gives per-mimetype response examples.java.lang.StringgetExamplesOrDefault(java.lang.String key, java.lang.String defaultValue)`Examples` gives per-mimetype response examples.java.lang.StringgetExamplesOrThrow(java.lang.String key)`Examples` gives per-mimetype response examples.java.util.Map<java.lang.String,com.google.protobuf.Value>getExtensions()Deprecated.intgetExtensionsCount()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.ValuegetExtensionsOrDefault(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.ValuegetExtensionsOrThrow(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,Openapiv2.Header>getHeaders()Deprecated.intgetHeadersCount()`Headers` A list of headers that are sent with the response.java.util.Map<java.lang.String,Openapiv2.Header>getHeadersMap()`Headers` A list of headers that are sent with the response.Openapiv2.HeadergetHeadersOrDefault(java.lang.String key, Openapiv2.Header defaultValue)`Headers` A list of headers that are sent with the response.Openapiv2.HeadergetHeadersOrThrow(java.lang.String key)`Headers` A list of headers that are sent with the response.java.util.Map<java.lang.String,java.lang.String>getMutableExamples()Deprecated.java.util.Map<java.lang.String,com.google.protobuf.Value>getMutableExtensions()Deprecated.java.util.Map<java.lang.String,Openapiv2.Header>getMutableHeaders()Deprecated.Openapiv2.SchemagetSchema()`Schema` optionally defines the structure of the response.Openapiv2.Schema.BuildergetSchemaBuilder()`Schema` optionally defines the structure of the response.Openapiv2.SchemaOrBuildergetSchemaOrBuilder()`Schema` optionally defines the structure of the response.booleanhasSchema()`Schema` optionally defines the structure of the response.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number)protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number)booleanisInitialized()Openapiv2.Response.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Openapiv2.Response.BuildermergeFrom(com.google.protobuf.Message other)Openapiv2.Response.BuildermergeFrom(Openapiv2.Response other)Openapiv2.Response.BuildermergeSchema(Openapiv2.Schema value)`Schema` optionally defines the structure of the response.Openapiv2.Response.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Openapiv2.Response.BuilderputAllExamples(java.util.Map<java.lang.String,java.lang.String> values)`Examples` gives per-mimetype response examples.Openapiv2.Response.BuilderputAllExtensions(java.util.Map<java.lang.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.Openapiv2.Response.BuilderputAllHeaders(java.util.Map<java.lang.String,Openapiv2.Header> values)`Headers` A list of headers that are sent with the response.Openapiv2.Response.BuilderputExamples(java.lang.String key, java.lang.String value)`Examples` gives per-mimetype response examples.Openapiv2.Response.BuilderputExtensions(java.lang.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.BuilderputExtensionsBuilderIfAbsent(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.Openapiv2.Response.BuilderputHeaders(java.lang.String key, Openapiv2.Header value)`Headers` A list of headers that are sent with the response.Openapiv2.Header.BuilderputHeadersBuilderIfAbsent(java.lang.String key)`Headers` A list of headers that are sent with the response.Openapiv2.Response.BuilderremoveExamples(java.lang.String key)`Examples` gives per-mimetype response examples.Openapiv2.Response.BuilderremoveExtensions(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.Openapiv2.Response.BuilderremoveHeaders(java.lang.String key)`Headers` A list of headers that are sent with the response.Openapiv2.Response.BuildersetDescription(java.lang.String value)`Description` is a short description of the response.Openapiv2.Response.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)`Description` is a short description of the response.Openapiv2.Response.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Openapiv2.Response.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)Openapiv2.Response.BuildersetSchema(Openapiv2.Schema value)`Schema` optionally defines the structure of the response.Openapiv2.Response.BuildersetSchema(Openapiv2.Schema.Builder builderForValue)`Schema` optionally defines the structure of the response.Openapiv2.Response.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
- Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.Response.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
- Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.Response.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.Response.Builder>
-
clear
public 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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<Openapiv2.Response.Builder>
-
getDefaultInstanceForType
public Openapiv2.Response getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Openapiv2.Response build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Openapiv2.Response buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Openapiv2.Response.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.Response.Builder>
-
setField
public Openapiv2.Response.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.Response.Builder>
-
clearField
public Openapiv2.Response.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.Response.Builder>
-
clearOneof
public Openapiv2.Response.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.Response.Builder>
-
setRepeatedField
public Openapiv2.Response.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.Response.Builder>
-
addRepeatedField
public Openapiv2.Response.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.Response.Builder>
-
mergeFrom
public Openapiv2.Response.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Openapiv2.Response.Builder>
-
mergeFrom
public Openapiv2.Response.Builder mergeFrom(Openapiv2.Response other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.Response.Builder>
-
mergeFrom
public Openapiv2.Response.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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:
java.io.IOException
-
getDescription
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;- 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
public Openapiv2.Response.Builder setDescription(java.lang.String value)
`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
public Openapiv2.Response.Builder 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
public Openapiv2.Response.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
`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
public Openapiv2.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;- Specified by:
getSchemain interfaceOpenapiv2.ResponseOrBuilder- Returns:
- The schema.
-
setSchema
public Openapiv2.Response.Builder setSchema(Openapiv2.Schema value)
`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
public Openapiv2.Response.Builder setSchema(Openapiv2.Schema.Builder builderForValue)
`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
public Openapiv2.Response.Builder mergeSchema(Openapiv2.Schema value)
`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
public Openapiv2.Response.Builder 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
public Openapiv2.Schema.Builder 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
public Openapiv2.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;- 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
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;- Specified by:
containsHeadersin interfaceOpenapiv2.ResponseOrBuilder
-
getHeaders
@Deprecated public java.util.Map<java.lang.String,Openapiv2.Header> getHeaders()
Deprecated.UsegetHeadersMap()instead.- Specified by:
getHeadersin interfaceOpenapiv2.ResponseOrBuilder
-
getHeadersMap
public java.util.Map<java.lang.String,Openapiv2.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;- Specified by:
getHeadersMapin interfaceOpenapiv2.ResponseOrBuilder
-
getHeadersOrDefault
public Openapiv2.Header getHeadersOrDefault(java.lang.String key, Openapiv2.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;- Specified by:
getHeadersOrDefaultin interfaceOpenapiv2.ResponseOrBuilder
-
getHeadersOrThrow
public Openapiv2.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;- Specified by:
getHeadersOrThrowin interfaceOpenapiv2.ResponseOrBuilder
-
clearHeaders
public Openapiv2.Response.Builder clearHeaders()
-
removeHeaders
public Openapiv2.Response.Builder removeHeaders(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;
-
getMutableHeaders
@Deprecated public java.util.Map<java.lang.String,Openapiv2.Header> getMutableHeaders()
Deprecated.Use alternate mutation accessors instead.
-
putHeaders
public Openapiv2.Response.Builder putHeaders(java.lang.String key, Openapiv2.Header value)
`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
public Openapiv2.Response.Builder putAllHeaders(java.util.Map<java.lang.String,Openapiv2.Header> values)
`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
public Openapiv2.Header.Builder putHeadersBuilderIfAbsent(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;
-
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
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;- Specified by:
containsExamplesin interfaceOpenapiv2.ResponseOrBuilder
-
getExamples
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getExamples()
Deprecated.UsegetExamplesMap()instead.- Specified by:
getExamplesin interfaceOpenapiv2.ResponseOrBuilder
-
getExamplesMap
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;- Specified by:
getExamplesMapin interfaceOpenapiv2.ResponseOrBuilder
-
getExamplesOrDefault
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;- Specified by:
getExamplesOrDefaultin interfaceOpenapiv2.ResponseOrBuilder
-
getExamplesOrThrow
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;- Specified by:
getExamplesOrThrowin interfaceOpenapiv2.ResponseOrBuilder
-
clearExamples
public Openapiv2.Response.Builder clearExamples()
-
removeExamples
public Openapiv2.Response.Builder removeExamples(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;
-
getMutableExamples
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getMutableExamples()
Deprecated.Use alternate mutation accessors instead.
-
putExamples
public Openapiv2.Response.Builder putExamples(java.lang.String key, java.lang.String value)
`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
public Openapiv2.Response.Builder putAllExamples(java.util.Map<java.lang.String,java.lang.String> values)
`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
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;- Specified by:
containsExtensionsin interfaceOpenapiv2.ResponseOrBuilder
-
getExtensions
@Deprecated public java.util.Map<java.lang.String,com.google.protobuf.Value> getExtensions()
Deprecated.UsegetExtensionsMap()instead.- Specified by:
getExtensionsin interfaceOpenapiv2.ResponseOrBuilder
-
getExtensionsMap
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;- Specified by:
getExtensionsMapin interfaceOpenapiv2.ResponseOrBuilder
-
getExtensionsOrDefault
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;- Specified by:
getExtensionsOrDefaultin interfaceOpenapiv2.ResponseOrBuilder
-
getExtensionsOrThrow
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;- Specified by:
getExtensionsOrThrowin interfaceOpenapiv2.ResponseOrBuilder
-
clearExtensions
public Openapiv2.Response.Builder clearExtensions()
-
removeExtensions
public Openapiv2.Response.Builder removeExtensions(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;
-
getMutableExtensions
@Deprecated public java.util.Map<java.lang.String,com.google.protobuf.Value> getMutableExtensions()
Deprecated.Use alternate mutation accessors instead.
-
putExtensions
public Openapiv2.Response.Builder putExtensions(java.lang.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. See: https://swagger.io/docs/specification/2-0/swagger-extensions/
map<string, .google.protobuf.Value> extensions = 5;
-
putAllExtensions
public Openapiv2.Response.Builder putAllExtensions(java.util.Map<java.lang.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. See: https://swagger.io/docs/specification/2-0/swagger-extensions/
map<string, .google.protobuf.Value> extensions = 5;
-
putExtensionsBuilderIfAbsent
public com.google.protobuf.Value.Builder putExtensionsBuilderIfAbsent(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;
-
setUnknownFields
public final Openapiv2.Response.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.Response.Builder>
-
mergeUnknownFields
public final Openapiv2.Response.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.Response.Builder>
-
-