Class 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 type google.gapic.metadata.GapicMetadata
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<GapicMetadata.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<GapicMetadata.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<GapicMetadata.Builder>
      • clear

        public GapicMetadata.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<GapicMetadata.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<GapicMetadata.Builder>
      • getDefaultInstanceForType

        public GapicMetadata getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public GapicMetadata build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public GapicMetadata buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public GapicMetadata.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<GapicMetadata.Builder>
      • setField

        public GapicMetadata.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                              Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<GapicMetadata.Builder>
      • clearField

        public GapicMetadata.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<GapicMetadata.Builder>
      • clearOneof

        public GapicMetadata.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<GapicMetadata.Builder>
      • setRepeatedField

        public GapicMetadata.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                      int index,
                                                      Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GapicMetadata.Builder>
      • addRepeatedField

        public GapicMetadata.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                      Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GapicMetadata.Builder>
      • mergeFrom

        public GapicMetadata.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GapicMetadata.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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:
        getSchema in interface GapicMetadataOrBuilder
        Returns:
        The schema.
      • getSchemaBytes

        public com.google.protobuf.ByteString getSchemaBytes()
         Schema version of this proto. Current value: 1.0
         
        string schema = 1;
        Specified by:
        getSchemaBytes in interface GapicMetadataOrBuilder
        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:
        getComment in interface GapicMetadataOrBuilder
        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:
        getCommentBytes in interface GapicMetadataOrBuilder
        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:
        getLanguage in interface GapicMetadataOrBuilder
        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:
        getLanguageBytes in interface GapicMetadataOrBuilder
        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:
        getProtoPackage in interface GapicMetadataOrBuilder
        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:
        getProtoPackageBytes in interface GapicMetadataOrBuilder
        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:
        getLibraryPackage in interface GapicMetadataOrBuilder
        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:
        getLibraryPackageBytes in interface GapicMetadataOrBuilder
        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: GapicMetadataOrBuilder
         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:
        getServicesCount in interface GapicMetadataOrBuilder
      • 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:
        containsServices in interface GapicMetadataOrBuilder
      • 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:
        getServicesMap in interface GapicMetadataOrBuilder
      • 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:
        getServicesOrThrow in interface GapicMetadataOrBuilder
      • 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;
      • 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:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GapicMetadata.Builder>
      • mergeUnknownFields

        public final GapicMetadata.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GapicMetadata.Builder>