Class Openapiv2.EnumSchema.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.EnumSchema.Builder>
-
- grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.EnumSchema.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Openapiv2.EnumSchemaOrBuilder,java.lang.Cloneable
- Enclosing class:
- Openapiv2.EnumSchema
public static final class Openapiv2.EnumSchema.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.EnumSchema.Builder> implements Openapiv2.EnumSchemaOrBuilder
`EnumSchema` is subset of fields from the OpenAPI v2 specification's Schema object. Only fields that are applicable to Enums are included See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject Example: option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_enum) = { ... title: "MyEnum"; description:"This is my nice enum"; example: "ZERO"; required: true; ... };Protobuf typegrpc.gateway.protoc_gen_openapiv2.options.EnumSchema
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Openapiv2.EnumSchema.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Openapiv2.EnumSchemabuild()Openapiv2.EnumSchemabuildPartial()Openapiv2.EnumSchema.Builderclear()Openapiv2.EnumSchema.BuilderclearDefault()string default = 2;Openapiv2.EnumSchema.BuilderclearDescription()A short description of the schema.Openapiv2.EnumSchema.BuilderclearExample()string example = 7;Openapiv2.EnumSchema.BuilderclearExtensions()Openapiv2.EnumSchema.BuilderclearExternalDocs()Additional external documentation for this schema.Openapiv2.EnumSchema.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Openapiv2.EnumSchema.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Openapiv2.EnumSchema.BuilderclearReadOnly()bool read_only = 5;Openapiv2.EnumSchema.BuilderclearRef()Ref is used to define an external reference to include in the message.Openapiv2.EnumSchema.BuilderclearRequired()bool required = 4;Openapiv2.EnumSchema.BuilderclearTitle()The title of the schema.Openapiv2.EnumSchema.Builderclone()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.java.lang.StringgetDefault()string default = 2;com.google.protobuf.ByteStringgetDefaultBytes()string default = 2;Openapiv2.EnumSchemagetDefaultInstanceForType()java.lang.StringgetDescription()A short description of the schema.com.google.protobuf.ByteStringgetDescriptionBytes()A short description of the schema.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetExample()string example = 7;com.google.protobuf.ByteStringgetExampleBytes()string example = 7;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.Openapiv2.ExternalDocumentationgetExternalDocs()Additional external documentation for this schema.Openapiv2.ExternalDocumentation.BuildergetExternalDocsBuilder()Additional external documentation for this schema.Openapiv2.ExternalDocumentationOrBuildergetExternalDocsOrBuilder()Additional external documentation for this schema.java.util.Map<java.lang.String,com.google.protobuf.Value>getMutableExtensions()Deprecated.booleangetReadOnly()bool read_only = 5;java.lang.StringgetRef()Ref is used to define an external reference to include in the message.com.google.protobuf.ByteStringgetRefBytes()Ref is used to define an external reference to include in the message.booleangetRequired()bool required = 4;java.lang.StringgetTitle()The title of the schema.com.google.protobuf.ByteStringgetTitleBytes()The title of the schema.booleanhasExternalDocs()Additional external documentation for this schema.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number)protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number)booleanisInitialized()Openapiv2.EnumSchema.BuildermergeExternalDocs(Openapiv2.ExternalDocumentation value)Additional external documentation for this schema.Openapiv2.EnumSchema.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Openapiv2.EnumSchema.BuildermergeFrom(com.google.protobuf.Message other)Openapiv2.EnumSchema.BuildermergeFrom(Openapiv2.EnumSchema other)Openapiv2.EnumSchema.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Openapiv2.EnumSchema.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.EnumSchema.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.EnumSchema.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.EnumSchema.BuildersetDefault(java.lang.String value)string default = 2;Openapiv2.EnumSchema.BuildersetDefaultBytes(com.google.protobuf.ByteString value)string default = 2;Openapiv2.EnumSchema.BuildersetDescription(java.lang.String value)A short description of the schema.Openapiv2.EnumSchema.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)A short description of the schema.Openapiv2.EnumSchema.BuildersetExample(java.lang.String value)string example = 7;Openapiv2.EnumSchema.BuildersetExampleBytes(com.google.protobuf.ByteString value)string example = 7;Openapiv2.EnumSchema.BuildersetExternalDocs(Openapiv2.ExternalDocumentation value)Additional external documentation for this schema.Openapiv2.EnumSchema.BuildersetExternalDocs(Openapiv2.ExternalDocumentation.Builder builderForValue)Additional external documentation for this schema.Openapiv2.EnumSchema.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Openapiv2.EnumSchema.BuildersetReadOnly(boolean value)bool read_only = 5;Openapiv2.EnumSchema.BuildersetRef(java.lang.String value)Ref is used to define an external reference to include in the message.Openapiv2.EnumSchema.BuildersetRefBytes(com.google.protobuf.ByteString value)Ref is used to define an external reference to include in the message.Openapiv2.EnumSchema.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)Openapiv2.EnumSchema.BuildersetRequired(boolean value)bool required = 4;Openapiv2.EnumSchema.BuildersetTitle(java.lang.String value)The title of the schema.Openapiv2.EnumSchema.BuildersetTitleBytes(com.google.protobuf.ByteString value)The title of the schema.Openapiv2.EnumSchema.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.EnumSchema.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
- Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.EnumSchema.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.EnumSchema.Builder>
-
clear
public Openapiv2.EnumSchema.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.EnumSchema.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.EnumSchema.Builder>
-
getDefaultInstanceForType
public Openapiv2.EnumSchema getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Openapiv2.EnumSchema build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Openapiv2.EnumSchema buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Openapiv2.EnumSchema.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.EnumSchema.Builder>
-
setField
public Openapiv2.EnumSchema.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.EnumSchema.Builder>
-
clearField
public Openapiv2.EnumSchema.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.EnumSchema.Builder>
-
clearOneof
public Openapiv2.EnumSchema.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.EnumSchema.Builder>
-
setRepeatedField
public Openapiv2.EnumSchema.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.EnumSchema.Builder>
-
addRepeatedField
public Openapiv2.EnumSchema.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.EnumSchema.Builder>
-
mergeFrom
public Openapiv2.EnumSchema.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Openapiv2.EnumSchema.Builder>
-
mergeFrom
public Openapiv2.EnumSchema.Builder mergeFrom(Openapiv2.EnumSchema other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.EnumSchema.Builder>
-
mergeFrom
public Openapiv2.EnumSchema.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.EnumSchema.Builder>- Throws:
java.io.IOException
-
getDescription
public java.lang.String getDescription()
A short description of the schema.
string description = 1;- Specified by:
getDescriptionin interfaceOpenapiv2.EnumSchemaOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
A short description of the schema.
string description = 1;- Specified by:
getDescriptionBytesin interfaceOpenapiv2.EnumSchemaOrBuilder- Returns:
- The bytes for description.
-
setDescription
public Openapiv2.EnumSchema.Builder setDescription(java.lang.String value)
A short description of the schema.
string description = 1;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public Openapiv2.EnumSchema.Builder clearDescription()
A short description of the schema.
string description = 1;- Returns:
- This builder for chaining.
-
setDescriptionBytes
public Openapiv2.EnumSchema.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
A short description of the schema.
string description = 1;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getDefault
public java.lang.String getDefault()
string default = 2;- Specified by:
getDefaultin interfaceOpenapiv2.EnumSchemaOrBuilder- Returns:
- The default.
-
getDefaultBytes
public com.google.protobuf.ByteString getDefaultBytes()
string default = 2;- Specified by:
getDefaultBytesin interfaceOpenapiv2.EnumSchemaOrBuilder- Returns:
- The bytes for default.
-
setDefault
public Openapiv2.EnumSchema.Builder setDefault(java.lang.String value)
string default = 2;- Parameters:
value- The default to set.- Returns:
- This builder for chaining.
-
clearDefault
public Openapiv2.EnumSchema.Builder clearDefault()
string default = 2;- Returns:
- This builder for chaining.
-
setDefaultBytes
public Openapiv2.EnumSchema.Builder setDefaultBytes(com.google.protobuf.ByteString value)
string default = 2;- Parameters:
value- The bytes for default to set.- Returns:
- This builder for chaining.
-
getTitle
public java.lang.String getTitle()
The title of the schema.
string title = 3;- Specified by:
getTitlein interfaceOpenapiv2.EnumSchemaOrBuilder- Returns:
- The title.
-
getTitleBytes
public com.google.protobuf.ByteString getTitleBytes()
The title of the schema.
string title = 3;- Specified by:
getTitleBytesin interfaceOpenapiv2.EnumSchemaOrBuilder- Returns:
- The bytes for title.
-
setTitle
public Openapiv2.EnumSchema.Builder setTitle(java.lang.String value)
The title of the schema.
string title = 3;- Parameters:
value- The title to set.- Returns:
- This builder for chaining.
-
clearTitle
public Openapiv2.EnumSchema.Builder clearTitle()
The title of the schema.
string title = 3;- Returns:
- This builder for chaining.
-
setTitleBytes
public Openapiv2.EnumSchema.Builder setTitleBytes(com.google.protobuf.ByteString value)
The title of the schema.
string title = 3;- Parameters:
value- The bytes for title to set.- Returns:
- This builder for chaining.
-
getRequired
public boolean getRequired()
bool required = 4;- Specified by:
getRequiredin interfaceOpenapiv2.EnumSchemaOrBuilder- Returns:
- The required.
-
setRequired
public Openapiv2.EnumSchema.Builder setRequired(boolean value)
bool required = 4;- Parameters:
value- The required to set.- Returns:
- This builder for chaining.
-
clearRequired
public Openapiv2.EnumSchema.Builder clearRequired()
bool required = 4;- Returns:
- This builder for chaining.
-
getReadOnly
public boolean getReadOnly()
bool read_only = 5;- Specified by:
getReadOnlyin interfaceOpenapiv2.EnumSchemaOrBuilder- Returns:
- The readOnly.
-
setReadOnly
public Openapiv2.EnumSchema.Builder setReadOnly(boolean value)
bool read_only = 5;- Parameters:
value- The readOnly to set.- Returns:
- This builder for chaining.
-
clearReadOnly
public Openapiv2.EnumSchema.Builder clearReadOnly()
bool read_only = 5;- Returns:
- This builder for chaining.
-
hasExternalDocs
public boolean hasExternalDocs()
Additional external documentation for this schema.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 6;- Specified by:
hasExternalDocsin interfaceOpenapiv2.EnumSchemaOrBuilder- Returns:
- Whether the externalDocs field is set.
-
getExternalDocs
public Openapiv2.ExternalDocumentation getExternalDocs()
Additional external documentation for this schema.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 6;- Specified by:
getExternalDocsin interfaceOpenapiv2.EnumSchemaOrBuilder- Returns:
- The externalDocs.
-
setExternalDocs
public Openapiv2.EnumSchema.Builder setExternalDocs(Openapiv2.ExternalDocumentation value)
Additional external documentation for this schema.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 6;
-
setExternalDocs
public Openapiv2.EnumSchema.Builder setExternalDocs(Openapiv2.ExternalDocumentation.Builder builderForValue)
Additional external documentation for this schema.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 6;
-
mergeExternalDocs
public Openapiv2.EnumSchema.Builder mergeExternalDocs(Openapiv2.ExternalDocumentation value)
Additional external documentation for this schema.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 6;
-
clearExternalDocs
public Openapiv2.EnumSchema.Builder clearExternalDocs()
Additional external documentation for this schema.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 6;
-
getExternalDocsBuilder
public Openapiv2.ExternalDocumentation.Builder getExternalDocsBuilder()
Additional external documentation for this schema.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 6;
-
getExternalDocsOrBuilder
public Openapiv2.ExternalDocumentationOrBuilder getExternalDocsOrBuilder()
Additional external documentation for this schema.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 6;- Specified by:
getExternalDocsOrBuilderin interfaceOpenapiv2.EnumSchemaOrBuilder
-
getExample
public java.lang.String getExample()
string example = 7;- Specified by:
getExamplein interfaceOpenapiv2.EnumSchemaOrBuilder- Returns:
- The example.
-
getExampleBytes
public com.google.protobuf.ByteString getExampleBytes()
string example = 7;- Specified by:
getExampleBytesin interfaceOpenapiv2.EnumSchemaOrBuilder- Returns:
- The bytes for example.
-
setExample
public Openapiv2.EnumSchema.Builder setExample(java.lang.String value)
string example = 7;- Parameters:
value- The example to set.- Returns:
- This builder for chaining.
-
clearExample
public Openapiv2.EnumSchema.Builder clearExample()
string example = 7;- Returns:
- This builder for chaining.
-
setExampleBytes
public Openapiv2.EnumSchema.Builder setExampleBytes(com.google.protobuf.ByteString value)
string example = 7;- Parameters:
value- The bytes for example to set.- Returns:
- This builder for chaining.
-
getRef
public java.lang.String getRef()
Ref is used to define an external reference to include in the message. This could be a fully qualified proto message reference, and that type must be imported into the protofile. If no message is identified, the Ref will be used verbatim in the output. For example: `ref: ".google.protobuf.Timestamp"`.
string ref = 8;- Specified by:
getRefin interfaceOpenapiv2.EnumSchemaOrBuilder- Returns:
- The ref.
-
getRefBytes
public com.google.protobuf.ByteString getRefBytes()
Ref is used to define an external reference to include in the message. This could be a fully qualified proto message reference, and that type must be imported into the protofile. If no message is identified, the Ref will be used verbatim in the output. For example: `ref: ".google.protobuf.Timestamp"`.
string ref = 8;- Specified by:
getRefBytesin interfaceOpenapiv2.EnumSchemaOrBuilder- Returns:
- The bytes for ref.
-
setRef
public Openapiv2.EnumSchema.Builder setRef(java.lang.String value)
Ref is used to define an external reference to include in the message. This could be a fully qualified proto message reference, and that type must be imported into the protofile. If no message is identified, the Ref will be used verbatim in the output. For example: `ref: ".google.protobuf.Timestamp"`.
string ref = 8;- Parameters:
value- The ref to set.- Returns:
- This builder for chaining.
-
clearRef
public Openapiv2.EnumSchema.Builder clearRef()
Ref is used to define an external reference to include in the message. This could be a fully qualified proto message reference, and that type must be imported into the protofile. If no message is identified, the Ref will be used verbatim in the output. For example: `ref: ".google.protobuf.Timestamp"`.
string ref = 8;- Returns:
- This builder for chaining.
-
setRefBytes
public Openapiv2.EnumSchema.Builder setRefBytes(com.google.protobuf.ByteString value)
Ref is used to define an external reference to include in the message. This could be a fully qualified proto message reference, and that type must be imported into the protofile. If no message is identified, the Ref will be used verbatim in the output. For example: `ref: ".google.protobuf.Timestamp"`.
string ref = 8;- Parameters:
value- The bytes for ref to set.- Returns:
- This builder for chaining.
-
getExtensionsCount
public int getExtensionsCount()
Description copied from interface:Openapiv2.EnumSchemaOrBuilderCustom 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 = 9;- Specified by:
getExtensionsCountin interfaceOpenapiv2.EnumSchemaOrBuilder
-
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 = 9;- Specified by:
containsExtensionsin interfaceOpenapiv2.EnumSchemaOrBuilder
-
getExtensions
@Deprecated public java.util.Map<java.lang.String,com.google.protobuf.Value> getExtensions()
Deprecated.UsegetExtensionsMap()instead.- Specified by:
getExtensionsin interfaceOpenapiv2.EnumSchemaOrBuilder
-
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 = 9;- Specified by:
getExtensionsMapin interfaceOpenapiv2.EnumSchemaOrBuilder
-
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 = 9;- Specified by:
getExtensionsOrDefaultin interfaceOpenapiv2.EnumSchemaOrBuilder
-
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 = 9;- Specified by:
getExtensionsOrThrowin interfaceOpenapiv2.EnumSchemaOrBuilder
-
clearExtensions
public Openapiv2.EnumSchema.Builder clearExtensions()
-
removeExtensions
public Openapiv2.EnumSchema.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 = 9;
-
getMutableExtensions
@Deprecated public java.util.Map<java.lang.String,com.google.protobuf.Value> getMutableExtensions()
Deprecated.Use alternate mutation accessors instead.
-
putExtensions
public Openapiv2.EnumSchema.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 = 9;
-
putAllExtensions
public Openapiv2.EnumSchema.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 = 9;
-
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 = 9;
-
setUnknownFields
public final Openapiv2.EnumSchema.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.EnumSchema.Builder>
-
mergeUnknownFields
public final Openapiv2.EnumSchema.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.EnumSchema.Builder>
-
-