Class MetadataFilterLabelMatch.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<MetadataFilterLabelMatch.Builder>
com.google.cloud.compute.v1.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.GeneratedMessage.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 Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<MetadataFilterLabelMatch.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.GeneratedMessage.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.GeneratedMessage.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
    • mergeFrom

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

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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

       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.