Class LocationMetadata.Builder

  • All Implemented Interfaces:
    LocationMetadataOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    LocationMetadata

    public static final class LocationMetadata.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<LocationMetadata.Builder>
    implements LocationMetadataOrBuilder
     Extra GCF specific location information.
     
    Protobuf type google.cloud.functions.v2beta.LocationMetadata
    • Method Detail

      • getDescriptor

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

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

        public LocationMetadata.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<LocationMetadata.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<LocationMetadata.Builder>
      • getDefaultInstanceForType

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

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

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

        public LocationMetadata.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<LocationMetadata.Builder>
      • setField

        public LocationMetadata.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<LocationMetadata.Builder>
      • clearField

        public LocationMetadata.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<LocationMetadata.Builder>
      • clearOneof

        public LocationMetadata.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<LocationMetadata.Builder>
      • setRepeatedField

        public LocationMetadata.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<LocationMetadata.Builder>
      • addRepeatedField

        public LocationMetadata.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<LocationMetadata.Builder>
      • mergeFrom

        public LocationMetadata.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<LocationMetadata.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<LocationMetadata.Builder>
      • mergeFrom

        public LocationMetadata.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<LocationMetadata.Builder>
        Throws:
        IOException
      • getEnvironmentsList

        public List<Environment> getEnvironmentsList()
         The Cloud Function environments this location supports.
         
        repeated .google.cloud.functions.v2beta.Environment environments = 1;
        Specified by:
        getEnvironmentsList in interface LocationMetadataOrBuilder
        Returns:
        A list containing the environments.
      • getEnvironmentsCount

        public int getEnvironmentsCount()
         The Cloud Function environments this location supports.
         
        repeated .google.cloud.functions.v2beta.Environment environments = 1;
        Specified by:
        getEnvironmentsCount in interface LocationMetadataOrBuilder
        Returns:
        The count of environments.
      • getEnvironments

        public Environment getEnvironments​(int index)
         The Cloud Function environments this location supports.
         
        repeated .google.cloud.functions.v2beta.Environment environments = 1;
        Specified by:
        getEnvironments in interface LocationMetadataOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The environments at the given index.
      • setEnvironments

        public LocationMetadata.Builder setEnvironments​(int index,
                                                        Environment value)
         The Cloud Function environments this location supports.
         
        repeated .google.cloud.functions.v2beta.Environment environments = 1;
        Parameters:
        index - The index to set the value at.
        value - The environments to set.
        Returns:
        This builder for chaining.
      • addEnvironments

        public LocationMetadata.Builder addEnvironments​(Environment value)
         The Cloud Function environments this location supports.
         
        repeated .google.cloud.functions.v2beta.Environment environments = 1;
        Parameters:
        value - The environments to add.
        Returns:
        This builder for chaining.
      • addAllEnvironments

        public LocationMetadata.Builder addAllEnvironments​(Iterable<? extends Environment> values)
         The Cloud Function environments this location supports.
         
        repeated .google.cloud.functions.v2beta.Environment environments = 1;
        Parameters:
        values - The environments to add.
        Returns:
        This builder for chaining.
      • clearEnvironments

        public LocationMetadata.Builder clearEnvironments()
         The Cloud Function environments this location supports.
         
        repeated .google.cloud.functions.v2beta.Environment environments = 1;
        Returns:
        This builder for chaining.
      • getEnvironmentsValueList

        public List<Integer> getEnvironmentsValueList()
         The Cloud Function environments this location supports.
         
        repeated .google.cloud.functions.v2beta.Environment environments = 1;
        Specified by:
        getEnvironmentsValueList in interface LocationMetadataOrBuilder
        Returns:
        A list containing the enum numeric values on the wire for environments.
      • getEnvironmentsValue

        public int getEnvironmentsValue​(int index)
         The Cloud Function environments this location supports.
         
        repeated .google.cloud.functions.v2beta.Environment environments = 1;
        Specified by:
        getEnvironmentsValue in interface LocationMetadataOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The enum numeric value on the wire of environments at the given index.
      • setEnvironmentsValue

        public LocationMetadata.Builder setEnvironmentsValue​(int index,
                                                             int value)
         The Cloud Function environments this location supports.
         
        repeated .google.cloud.functions.v2beta.Environment environments = 1;
        Parameters:
        index - The index to set the value at.
        value - The enum numeric value on the wire for environments to set.
        Returns:
        This builder for chaining.
      • addEnvironmentsValue

        public LocationMetadata.Builder addEnvironmentsValue​(int value)
         The Cloud Function environments this location supports.
         
        repeated .google.cloud.functions.v2beta.Environment environments = 1;
        Parameters:
        value - The enum numeric value on the wire for environments to add.
        Returns:
        This builder for chaining.
      • addAllEnvironmentsValue

        public LocationMetadata.Builder addAllEnvironmentsValue​(Iterable<Integer> values)
         The Cloud Function environments this location supports.
         
        repeated .google.cloud.functions.v2beta.Environment environments = 1;
        Parameters:
        values - The enum numeric values on the wire for environments to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final LocationMetadata.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<LocationMetadata.Builder>
      • mergeUnknownFields

        public final LocationMetadata.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<LocationMetadata.Builder>