Package com.google.gapic.metadata
Class GapicMetadata.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<GapicMetadata.Builder>
-
- com.google.gapic.metadata.GapicMetadata.Builder
-
- All Implemented Interfaces:
GapicMetadataOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GapicMetadata
public static final class GapicMetadata.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GapicMetadata.Builder> implements GapicMetadataOrBuilder
Metadata about a GAPIC library for a specific combination of API, version, and computer language.
Protobuf typegoogle.gapic.metadata.GapicMetadata
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description GapicMetadata.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)GapicMetadatabuild()GapicMetadatabuildPartial()GapicMetadata.Builderclear()GapicMetadata.BuilderclearComment()Any human-readable comments to be included in this file.GapicMetadata.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)GapicMetadata.BuilderclearLanguage()Computer language of this generated language.GapicMetadata.BuilderclearLibraryPackage()The language-specific library package for this GAPIC library.GapicMetadata.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)GapicMetadata.BuilderclearProtoPackage()The proto package containing the API definition for which this GAPIC library was generated.GapicMetadata.BuilderclearSchema()Schema version of this proto.GapicMetadata.BuilderclearServices()GapicMetadata.Builderclone()booleancontainsServices(String key)A map from each proto-defined service to ServiceForTransports, which allows listing information about transport-specific implementations of the service.StringgetComment()Any human-readable comments to be included in this file.com.google.protobuf.ByteStringgetCommentBytes()Any human-readable comments to be included in this file.GapicMetadatagetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetLanguage()Computer language of this generated language.com.google.protobuf.ByteStringgetLanguageBytes()Computer language of this generated language.StringgetLibraryPackage()The language-specific library package for this GAPIC library.com.google.protobuf.ByteStringgetLibraryPackageBytes()The language-specific library package for this GAPIC library.Map<String,GapicMetadata.ServiceForTransport>getMutableServices()Deprecated.StringgetProtoPackage()The proto package containing the API definition for which this GAPIC library was generated.com.google.protobuf.ByteStringgetProtoPackageBytes()The proto package containing the API definition for which this GAPIC library was generated.StringgetSchema()Schema version of this proto.com.google.protobuf.ByteStringgetSchemaBytes()Schema version of this proto.Map<String,GapicMetadata.ServiceForTransport>getServices()Deprecated.intgetServicesCount()A map from each proto-defined service to ServiceForTransports, which allows listing information about transport-specific implementations of the service.Map<String,GapicMetadata.ServiceForTransport>getServicesMap()A map from each proto-defined service to ServiceForTransports, which allows listing information about transport-specific implementations of the service.GapicMetadata.ServiceForTransportgetServicesOrDefault(String key, GapicMetadata.ServiceForTransport defaultValue)A map from each proto-defined service to ServiceForTransports, which allows listing information about transport-specific implementations of the service.GapicMetadata.ServiceForTransportgetServicesOrThrow(String key)A map from each proto-defined service to ServiceForTransports, which allows listing information about transport-specific implementations of the service.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()GapicMetadata.BuildermergeFrom(GapicMetadata other)GapicMetadata.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)GapicMetadata.BuildermergeFrom(com.google.protobuf.Message other)GapicMetadata.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)GapicMetadata.BuilderputAllServices(Map<String,GapicMetadata.ServiceForTransport> values)A map from each proto-defined service to ServiceForTransports, which allows listing information about transport-specific implementations of the service.GapicMetadata.BuilderputServices(String key, GapicMetadata.ServiceForTransport value)A map from each proto-defined service to ServiceForTransports, which allows listing information about transport-specific implementations of the service.GapicMetadata.BuilderremoveServices(String key)A map from each proto-defined service to ServiceForTransports, which allows listing information about transport-specific implementations of the service.GapicMetadata.BuildersetComment(String value)Any human-readable comments to be included in this file.GapicMetadata.BuildersetCommentBytes(com.google.protobuf.ByteString value)Any human-readable comments to be included in this file.GapicMetadata.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)GapicMetadata.BuildersetLanguage(String value)Computer language of this generated language.GapicMetadata.BuildersetLanguageBytes(com.google.protobuf.ByteString value)Computer language of this generated language.GapicMetadata.BuildersetLibraryPackage(String value)The language-specific library package for this GAPIC library.GapicMetadata.BuildersetLibraryPackageBytes(com.google.protobuf.ByteString value)The language-specific library package for this GAPIC library.GapicMetadata.BuildersetProtoPackage(String value)The proto package containing the API definition for which this GAPIC library was generated.GapicMetadata.BuildersetProtoPackageBytes(com.google.protobuf.ByteString value)The proto package containing the API definition for which this GAPIC library was generated.GapicMetadata.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)GapicMetadata.BuildersetSchema(String value)Schema version of this proto.GapicMetadata.BuildersetSchemaBytes(com.google.protobuf.ByteString value)Schema version of this proto.GapicMetadata.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, 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()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GapicMetadata.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GapicMetadata.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<GapicMetadata.Builder>
-
clear
public GapicMetadata.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<GapicMetadata.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<GapicMetadata.Builder>
-
getDefaultInstanceForType
public GapicMetadata getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public GapicMetadata build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GapicMetadata buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GapicMetadata.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<GapicMetadata.Builder>
-
setField
public GapicMetadata.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GapicMetadata.Builder>
-
clearField
public GapicMetadata.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GapicMetadata.Builder>
-
clearOneof
public GapicMetadata.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<GapicMetadata.Builder>
-
setRepeatedField
public GapicMetadata.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GapicMetadata.Builder>
-
addRepeatedField
public GapicMetadata.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GapicMetadata.Builder>
-
mergeFrom
public GapicMetadata.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GapicMetadata.Builder>
-
mergeFrom
public GapicMetadata.Builder mergeFrom(GapicMetadata other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<GapicMetadata.Builder>
-
mergeFrom
public GapicMetadata.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<GapicMetadata.Builder>- Throws:
IOException
-
getSchema
public String getSchema()
Schema version of this proto. Current value: 1.0
string schema = 1;- Specified by:
getSchemain interfaceGapicMetadataOrBuilder- Returns:
- The schema.
-
getSchemaBytes
public com.google.protobuf.ByteString getSchemaBytes()
Schema version of this proto. Current value: 1.0
string schema = 1;- Specified by:
getSchemaBytesin interfaceGapicMetadataOrBuilder- Returns:
- The bytes for schema.
-
setSchema
public GapicMetadata.Builder setSchema(String value)
Schema version of this proto. Current value: 1.0
string schema = 1;- Parameters:
value- The schema to set.- Returns:
- This builder for chaining.
-
clearSchema
public GapicMetadata.Builder clearSchema()
Schema version of this proto. Current value: 1.0
string schema = 1;- Returns:
- This builder for chaining.
-
setSchemaBytes
public GapicMetadata.Builder setSchemaBytes(com.google.protobuf.ByteString value)
Schema version of this proto. Current value: 1.0
string schema = 1;- Parameters:
value- The bytes for schema to set.- Returns:
- This builder for chaining.
-
getComment
public String getComment()
Any human-readable comments to be included in this file.
string comment = 2;- Specified by:
getCommentin interfaceGapicMetadataOrBuilder- Returns:
- The comment.
-
getCommentBytes
public com.google.protobuf.ByteString getCommentBytes()
Any human-readable comments to be included in this file.
string comment = 2;- Specified by:
getCommentBytesin interfaceGapicMetadataOrBuilder- Returns:
- The bytes for comment.
-
setComment
public GapicMetadata.Builder setComment(String value)
Any human-readable comments to be included in this file.
string comment = 2;- Parameters:
value- The comment to set.- Returns:
- This builder for chaining.
-
clearComment
public GapicMetadata.Builder clearComment()
Any human-readable comments to be included in this file.
string comment = 2;- Returns:
- This builder for chaining.
-
setCommentBytes
public GapicMetadata.Builder setCommentBytes(com.google.protobuf.ByteString value)
Any human-readable comments to be included in this file.
string comment = 2;- Parameters:
value- The bytes for comment to set.- Returns:
- This builder for chaining.
-
getLanguage
public String getLanguage()
Computer language of this generated language. This must be spelled out as it spoken in English, with no capitalization or separators (e.g. "csharp", "nodejs").
string language = 3;- Specified by:
getLanguagein interfaceGapicMetadataOrBuilder- Returns:
- The language.
-
getLanguageBytes
public com.google.protobuf.ByteString getLanguageBytes()
Computer language of this generated language. This must be spelled out as it spoken in English, with no capitalization or separators (e.g. "csharp", "nodejs").
string language = 3;- Specified by:
getLanguageBytesin interfaceGapicMetadataOrBuilder- Returns:
- The bytes for language.
-
setLanguage
public GapicMetadata.Builder setLanguage(String value)
Computer language of this generated language. This must be spelled out as it spoken in English, with no capitalization or separators (e.g. "csharp", "nodejs").
string language = 3;- Parameters:
value- The language to set.- Returns:
- This builder for chaining.
-
clearLanguage
public GapicMetadata.Builder clearLanguage()
Computer language of this generated language. This must be spelled out as it spoken in English, with no capitalization or separators (e.g. "csharp", "nodejs").
string language = 3;- Returns:
- This builder for chaining.
-
setLanguageBytes
public GapicMetadata.Builder setLanguageBytes(com.google.protobuf.ByteString value)
Computer language of this generated language. This must be spelled out as it spoken in English, with no capitalization or separators (e.g. "csharp", "nodejs").
string language = 3;- Parameters:
value- The bytes for language to set.- Returns:
- This builder for chaining.
-
getProtoPackage
public String getProtoPackage()
The proto package containing the API definition for which this GAPIC library was generated.
string proto_package = 4;- Specified by:
getProtoPackagein interfaceGapicMetadataOrBuilder- Returns:
- The protoPackage.
-
getProtoPackageBytes
public com.google.protobuf.ByteString getProtoPackageBytes()
The proto package containing the API definition for which this GAPIC library was generated.
string proto_package = 4;- Specified by:
getProtoPackageBytesin interfaceGapicMetadataOrBuilder- Returns:
- The bytes for protoPackage.
-
setProtoPackage
public GapicMetadata.Builder setProtoPackage(String value)
The proto package containing the API definition for which this GAPIC library was generated.
string proto_package = 4;- Parameters:
value- The protoPackage to set.- Returns:
- This builder for chaining.
-
clearProtoPackage
public GapicMetadata.Builder clearProtoPackage()
The proto package containing the API definition for which this GAPIC library was generated.
string proto_package = 4;- Returns:
- This builder for chaining.
-
setProtoPackageBytes
public GapicMetadata.Builder setProtoPackageBytes(com.google.protobuf.ByteString value)
The proto package containing the API definition for which this GAPIC library was generated.
string proto_package = 4;- Parameters:
value- The bytes for protoPackage to set.- Returns:
- This builder for chaining.
-
getLibraryPackage
public String getLibraryPackage()
The language-specific library package for this GAPIC library.
string library_package = 5;- Specified by:
getLibraryPackagein interfaceGapicMetadataOrBuilder- Returns:
- The libraryPackage.
-
getLibraryPackageBytes
public com.google.protobuf.ByteString getLibraryPackageBytes()
The language-specific library package for this GAPIC library.
string library_package = 5;- Specified by:
getLibraryPackageBytesin interfaceGapicMetadataOrBuilder- Returns:
- The bytes for libraryPackage.
-
setLibraryPackage
public GapicMetadata.Builder setLibraryPackage(String value)
The language-specific library package for this GAPIC library.
string library_package = 5;- Parameters:
value- The libraryPackage to set.- Returns:
- This builder for chaining.
-
clearLibraryPackage
public GapicMetadata.Builder clearLibraryPackage()
The language-specific library package for this GAPIC library.
string library_package = 5;- Returns:
- This builder for chaining.
-
setLibraryPackageBytes
public GapicMetadata.Builder setLibraryPackageBytes(com.google.protobuf.ByteString value)
The language-specific library package for this GAPIC library.
string library_package = 5;- Parameters:
value- The bytes for libraryPackage to set.- Returns:
- This builder for chaining.
-
getServicesCount
public int getServicesCount()
Description copied from interface:GapicMetadataOrBuilderA map from each proto-defined service to ServiceForTransports, which allows listing information about transport-specific implementations of the service. The key is the name of the service as it appears in the .proto file.
map<string, .google.gapic.metadata.GapicMetadata.ServiceForTransport> services = 6;- Specified by:
getServicesCountin interfaceGapicMetadataOrBuilder
-
containsServices
public boolean containsServices(String key)
A map from each proto-defined service to ServiceForTransports, which allows listing information about transport-specific implementations of the service. The key is the name of the service as it appears in the .proto file.
map<string, .google.gapic.metadata.GapicMetadata.ServiceForTransport> services = 6;- Specified by:
containsServicesin interfaceGapicMetadataOrBuilder
-
getServices
@Deprecated public Map<String,GapicMetadata.ServiceForTransport> getServices()
Deprecated.UsegetServicesMap()instead.- Specified by:
getServicesin interfaceGapicMetadataOrBuilder
-
getServicesMap
public Map<String,GapicMetadata.ServiceForTransport> getServicesMap()
A map from each proto-defined service to ServiceForTransports, which allows listing information about transport-specific implementations of the service. The key is the name of the service as it appears in the .proto file.
map<string, .google.gapic.metadata.GapicMetadata.ServiceForTransport> services = 6;- Specified by:
getServicesMapin interfaceGapicMetadataOrBuilder
-
getServicesOrDefault
public GapicMetadata.ServiceForTransport getServicesOrDefault(String key, GapicMetadata.ServiceForTransport defaultValue)
A map from each proto-defined service to ServiceForTransports, which allows listing information about transport-specific implementations of the service. The key is the name of the service as it appears in the .proto file.
map<string, .google.gapic.metadata.GapicMetadata.ServiceForTransport> services = 6;- Specified by:
getServicesOrDefaultin interfaceGapicMetadataOrBuilder
-
getServicesOrThrow
public GapicMetadata.ServiceForTransport getServicesOrThrow(String key)
A map from each proto-defined service to ServiceForTransports, which allows listing information about transport-specific implementations of the service. The key is the name of the service as it appears in the .proto file.
map<string, .google.gapic.metadata.GapicMetadata.ServiceForTransport> services = 6;- Specified by:
getServicesOrThrowin interfaceGapicMetadataOrBuilder
-
clearServices
public GapicMetadata.Builder clearServices()
-
removeServices
public GapicMetadata.Builder removeServices(String key)
A map from each proto-defined service to ServiceForTransports, which allows listing information about transport-specific implementations of the service. The key is the name of the service as it appears in the .proto file.
map<string, .google.gapic.metadata.GapicMetadata.ServiceForTransport> services = 6;
-
getMutableServices
@Deprecated public Map<String,GapicMetadata.ServiceForTransport> getMutableServices()
Deprecated.Use alternate mutation accessors instead.
-
putServices
public GapicMetadata.Builder putServices(String key, GapicMetadata.ServiceForTransport value)
A map from each proto-defined service to ServiceForTransports, which allows listing information about transport-specific implementations of the service. The key is the name of the service as it appears in the .proto file.
map<string, .google.gapic.metadata.GapicMetadata.ServiceForTransport> services = 6;
-
putAllServices
public GapicMetadata.Builder putAllServices(Map<String,GapicMetadata.ServiceForTransport> values)
A map from each proto-defined service to ServiceForTransports, which allows listing information about transport-specific implementations of the service. The key is the name of the service as it appears in the .proto file.
map<string, .google.gapic.metadata.GapicMetadata.ServiceForTransport> services = 6;
-
setUnknownFields
public final GapicMetadata.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GapicMetadata.Builder>
-
mergeUnknownFields
public final GapicMetadata.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GapicMetadata.Builder>
-
-