Class MetadataFilterLabelMatch.Builder

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

    public static final class MetadataFilterLabelMatch.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<MetadataFilterLabelMatch.Builder>
    implements MetadataFilterLabelMatchOrBuilder
     MetadataFilter label name value pairs that are expected to match corresponding labels presented as metadata to the load balancer.
     
    Protobuf type google.cloud.compute.v1.MetadataFilterLabelMatch
    • 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<MetadataFilterLabelMatch.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<MetadataFilterLabelMatch.Builder>
      • getDefaultInstanceForType

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

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

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

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

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

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

        public MetadataFilterLabelMatch.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<MetadataFilterLabelMatch.Builder>
        Throws:
        IOException
      • hasName

        public boolean hasName()
         Name of metadata label. The name can have a maximum length of 1024 characters and must be at least 1 character long.
         
        optional string name = 3373707;
        Specified by:
        hasName in interface MetadataFilterLabelMatchOrBuilder
        Returns:
        Whether the name field is set.
      • getName

        public String getName()
         Name of metadata label. The name can have a maximum length of 1024 characters and must be at least 1 character long.
         
        optional string name = 3373707;
        Specified by:
        getName in interface MetadataFilterLabelMatchOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Name of metadata label. The name can have a maximum length of 1024 characters and must be at least 1 character long.
         
        optional string name = 3373707;
        Specified by:
        getNameBytes in interface MetadataFilterLabelMatchOrBuilder
        Returns:
        The bytes for name.
      • setName

        public MetadataFilterLabelMatch.Builder setName​(String value)
         Name of metadata label. The name can have a maximum length of 1024 characters and must be at least 1 character long.
         
        optional string name = 3373707;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public MetadataFilterLabelMatch.Builder clearName()
         Name of metadata label. The name can have a maximum length of 1024 characters and must be at least 1 character long.
         
        optional string name = 3373707;
        Returns:
        This builder for chaining.
      • setNameBytes

        public MetadataFilterLabelMatch.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Name of metadata label. The name can have a maximum length of 1024 characters and must be at least 1 character long.
         
        optional string name = 3373707;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasValue

        public boolean hasValue()
         The value of the label must match the specified value. value can have a maximum length of 1024 characters.
         
        optional string value = 111972721;
        Specified by:
        hasValue in interface MetadataFilterLabelMatchOrBuilder
        Returns:
        Whether the value field is set.
      • getValue

        public String getValue()
         The value of the label must match the specified value. value can have a maximum length of 1024 characters.
         
        optional string value = 111972721;
        Specified by:
        getValue in interface MetadataFilterLabelMatchOrBuilder
        Returns:
        The value.
      • getValueBytes

        public com.google.protobuf.ByteString getValueBytes()
         The value of the label must match the specified value. value can have a maximum length of 1024 characters.
         
        optional string value = 111972721;
        Specified by:
        getValueBytes in interface MetadataFilterLabelMatchOrBuilder
        Returns:
        The bytes for value.
      • setValue

        public MetadataFilterLabelMatch.Builder setValue​(String value)
         The value of the label must match the specified value. value can have a maximum length of 1024 characters.
         
        optional string value = 111972721;
        Parameters:
        value - The value to set.
        Returns:
        This builder for chaining.
      • clearValue

        public MetadataFilterLabelMatch.Builder clearValue()
         The value of the label must match the specified value. value can have a maximum length of 1024 characters.
         
        optional string value = 111972721;
        Returns:
        This builder for chaining.
      • setValueBytes

        public MetadataFilterLabelMatch.Builder setValueBytes​(com.google.protobuf.ByteString value)
         The value of the label must match the specified value. value can have a maximum length of 1024 characters.
         
        optional string value = 111972721;
        Parameters:
        value - The bytes for value to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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