Class Openapiv2.Tag.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<Openapiv2.Tag.Builder>
-
- grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Tag.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Openapiv2.TagOrBuilder,java.lang.Cloneable
- Enclosing class:
- Openapiv2.Tag
public static final class Openapiv2.Tag.Builder extends com.google.protobuf.GeneratedMessage.Builder<Openapiv2.Tag.Builder> implements Openapiv2.TagOrBuilder
`Tag` is a representation of OpenAPI v2 specification's Tag object. See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#tagObject
Protobuf typegrpc.gateway.protoc_gen_openapiv2.options.Tag
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Openapiv2.Tagbuild()Openapiv2.TagbuildPartial()Openapiv2.Tag.Builderclear()Openapiv2.Tag.BuilderclearDescription()A short description for the tag.Openapiv2.Tag.BuilderclearExtensions()Openapiv2.Tag.BuilderclearExternalDocs()Additional external documentation for this tag.Openapiv2.Tag.BuilderclearName()The name of the tag.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.Openapiv2.TaggetDefaultInstanceForType()java.lang.StringgetDescription()A short description for the tag.com.google.protobuf.ByteStringgetDescriptionBytes()A short description for the tag.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()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 tag.Openapiv2.ExternalDocumentation.BuildergetExternalDocsBuilder()Additional external documentation for this tag.Openapiv2.ExternalDocumentationOrBuildergetExternalDocsOrBuilder()Additional external documentation for this tag.java.util.Map<java.lang.String,com.google.protobuf.Value>getMutableExtensions()Deprecated.java.lang.StringgetName()The name of the tag.com.google.protobuf.ByteStringgetNameBytes()The name of the tag.booleanhasExternalDocs()Additional external documentation for this tag.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number)protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number)booleanisInitialized()Openapiv2.Tag.BuildermergeExternalDocs(Openapiv2.ExternalDocumentation value)Additional external documentation for this tag.Openapiv2.Tag.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Openapiv2.Tag.BuildermergeFrom(com.google.protobuf.Message other)Openapiv2.Tag.BuildermergeFrom(Openapiv2.Tag other)Openapiv2.Tag.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.Tag.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.Tag.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.Tag.BuildersetDescription(java.lang.String value)A short description for the tag.Openapiv2.Tag.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)A short description for the tag.Openapiv2.Tag.BuildersetExternalDocs(Openapiv2.ExternalDocumentation value)Additional external documentation for this tag.Openapiv2.Tag.BuildersetExternalDocs(Openapiv2.ExternalDocumentation.Builder builderForValue)Additional external documentation for this tag.Openapiv2.Tag.BuildersetName(java.lang.String value)The name of the tag.Openapiv2.Tag.BuildersetNameBytes(com.google.protobuf.ByteString value)The name of the tag.-
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, 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.GeneratedMessage.Builder<Openapiv2.Tag.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
- Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Openapiv2.Tag.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Openapiv2.Tag.Builder>
-
clear
public Openapiv2.Tag.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.Tag.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.Tag.Builder>
-
getDefaultInstanceForType
public Openapiv2.Tag getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Openapiv2.Tag build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Openapiv2.Tag buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public Openapiv2.Tag.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Openapiv2.Tag.Builder>
-
mergeFrom
public Openapiv2.Tag.Builder mergeFrom(Openapiv2.Tag other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Openapiv2.Tag.Builder>
-
mergeFrom
public Openapiv2.Tag.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.Tag.Builder>- Throws:
java.io.IOException
-
getName
public java.lang.String getName()
The name of the tag. Use it to allow override of the name of a global Tag object, then use that name to reference the tag throughout the OpenAPI file.
string name = 1;- Specified by:
getNamein interfaceOpenapiv2.TagOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The name of the tag. Use it to allow override of the name of a global Tag object, then use that name to reference the tag throughout the OpenAPI file.
string name = 1;- Specified by:
getNameBytesin interfaceOpenapiv2.TagOrBuilder- Returns:
- The bytes for name.
-
setName
public Openapiv2.Tag.Builder setName(java.lang.String value)
The name of the tag. Use it to allow override of the name of a global Tag object, then use that name to reference the tag throughout the OpenAPI file.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Openapiv2.Tag.Builder clearName()
The name of the tag. Use it to allow override of the name of a global Tag object, then use that name to reference the tag throughout the OpenAPI file.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public Openapiv2.Tag.Builder setNameBytes(com.google.protobuf.ByteString value)
The name of the tag. Use it to allow override of the name of a global Tag object, then use that name to reference the tag throughout the OpenAPI file.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDescription
public java.lang.String getDescription()
A short description for the tag. GFM syntax can be used for rich text representation.
string description = 2;- Specified by:
getDescriptionin interfaceOpenapiv2.TagOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
A short description for the tag. GFM syntax can be used for rich text representation.
string description = 2;- Specified by:
getDescriptionBytesin interfaceOpenapiv2.TagOrBuilder- Returns:
- The bytes for description.
-
setDescription
public Openapiv2.Tag.Builder setDescription(java.lang.String value)
A short description for the tag. GFM syntax can be used for rich text representation.
string description = 2;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public Openapiv2.Tag.Builder clearDescription()
A short description for the tag. GFM syntax can be used for rich text representation.
string description = 2;- Returns:
- This builder for chaining.
-
setDescriptionBytes
public Openapiv2.Tag.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
A short description for the tag. GFM syntax can be used for rich text representation.
string description = 2;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
hasExternalDocs
public boolean hasExternalDocs()
Additional external documentation for this tag.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3;- Specified by:
hasExternalDocsin interfaceOpenapiv2.TagOrBuilder- Returns:
- Whether the externalDocs field is set.
-
getExternalDocs
public Openapiv2.ExternalDocumentation getExternalDocs()
Additional external documentation for this tag.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3;- Specified by:
getExternalDocsin interfaceOpenapiv2.TagOrBuilder- Returns:
- The externalDocs.
-
setExternalDocs
public Openapiv2.Tag.Builder setExternalDocs(Openapiv2.ExternalDocumentation value)
Additional external documentation for this tag.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3;
-
setExternalDocs
public Openapiv2.Tag.Builder setExternalDocs(Openapiv2.ExternalDocumentation.Builder builderForValue)
Additional external documentation for this tag.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3;
-
mergeExternalDocs
public Openapiv2.Tag.Builder mergeExternalDocs(Openapiv2.ExternalDocumentation value)
Additional external documentation for this tag.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3;
-
clearExternalDocs
public Openapiv2.Tag.Builder clearExternalDocs()
Additional external documentation for this tag.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3;
-
getExternalDocsBuilder
public Openapiv2.ExternalDocumentation.Builder getExternalDocsBuilder()
Additional external documentation for this tag.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3;
-
getExternalDocsOrBuilder
public Openapiv2.ExternalDocumentationOrBuilder getExternalDocsOrBuilder()
Additional external documentation for this tag.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3;- Specified by:
getExternalDocsOrBuilderin interfaceOpenapiv2.TagOrBuilder
-
getExtensionsCount
public int getExtensionsCount()
Description copied from interface:Openapiv2.TagOrBuilderCustom 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 = 4;- Specified by:
getExtensionsCountin interfaceOpenapiv2.TagOrBuilder
-
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 = 4;- Specified by:
containsExtensionsin interfaceOpenapiv2.TagOrBuilder
-
getExtensions
@Deprecated public java.util.Map<java.lang.String,com.google.protobuf.Value> getExtensions()
Deprecated.UsegetExtensionsMap()instead.- Specified by:
getExtensionsin interfaceOpenapiv2.TagOrBuilder
-
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 = 4;- Specified by:
getExtensionsMapin interfaceOpenapiv2.TagOrBuilder
-
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 = 4;- Specified by:
getExtensionsOrDefaultin interfaceOpenapiv2.TagOrBuilder
-
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 = 4;- Specified by:
getExtensionsOrThrowin interfaceOpenapiv2.TagOrBuilder
-
clearExtensions
public Openapiv2.Tag.Builder clearExtensions()
-
removeExtensions
public Openapiv2.Tag.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 = 4;
-
getMutableExtensions
@Deprecated public java.util.Map<java.lang.String,com.google.protobuf.Value> getMutableExtensions()
Deprecated.Use alternate mutation accessors instead.
-
putExtensions
public Openapiv2.Tag.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 = 4;
-
putAllExtensions
public Openapiv2.Tag.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 = 4;
-
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 = 4;
-
-