Class TunnelDestGroup.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TunnelDestGroup.Builder>
com.google.cloud.iap.v1.TunnelDestGroup.Builder
All Implemented Interfaces:
TunnelDestGroupOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
TunnelDestGroup

public static final class TunnelDestGroup.Builder extends com.google.protobuf.GeneratedMessage.Builder<TunnelDestGroup.Builder> implements TunnelDestGroupOrBuilder
 A TunnelDestGroup.
 
Protobuf type google.cloud.iap.v1.TunnelDestGroup
  • 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<TunnelDestGroup.Builder>
    • clear

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

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

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

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

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

      public TunnelDestGroup.Builder mergeFrom(TunnelDestGroup other)
    • isInitialized

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

      public TunnelDestGroup.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<TunnelDestGroup.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Identifier. Identifier for the TunnelDestGroup. Must be unique within the
       project and contain only lower case letters (a-z) and dashes (-).
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface TunnelDestGroupOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. Identifier for the TunnelDestGroup. Must be unique within the
       project and contain only lower case letters (a-z) and dashes (-).
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface TunnelDestGroupOrBuilder
      Returns:
      The bytes for name.
    • setName

      public TunnelDestGroup.Builder setName(String value)
       Identifier. Identifier for the TunnelDestGroup. Must be unique within the
       project and contain only lower case letters (a-z) and dashes (-).
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public TunnelDestGroup.Builder clearName()
       Identifier. Identifier for the TunnelDestGroup. Must be unique within the
       project and contain only lower case letters (a-z) and dashes (-).
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public TunnelDestGroup.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. Identifier for the TunnelDestGroup. Must be unique within the
       project and contain only lower case letters (a-z) and dashes (-).
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getCidrsList

      public com.google.protobuf.ProtocolStringList getCidrsList()
       Optional. Unordered list. List of CIDRs that this group applies to.
       
      repeated string cidrs = 2 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCidrsList in interface TunnelDestGroupOrBuilder
      Returns:
      A list containing the cidrs.
    • getCidrsCount

      public int getCidrsCount()
       Optional. Unordered list. List of CIDRs that this group applies to.
       
      repeated string cidrs = 2 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCidrsCount in interface TunnelDestGroupOrBuilder
      Returns:
      The count of cidrs.
    • getCidrs

      public String getCidrs(int index)
       Optional. Unordered list. List of CIDRs that this group applies to.
       
      repeated string cidrs = 2 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCidrs in interface TunnelDestGroupOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The cidrs at the given index.
    • getCidrsBytes

      public com.google.protobuf.ByteString getCidrsBytes(int index)
       Optional. Unordered list. List of CIDRs that this group applies to.
       
      repeated string cidrs = 2 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCidrsBytes in interface TunnelDestGroupOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the cidrs at the given index.
    • setCidrs

      public TunnelDestGroup.Builder setCidrs(int index, String value)
       Optional. Unordered list. List of CIDRs that this group applies to.
       
      repeated string cidrs = 2 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The cidrs to set.
      Returns:
      This builder for chaining.
    • addCidrs

      public TunnelDestGroup.Builder addCidrs(String value)
       Optional. Unordered list. List of CIDRs that this group applies to.
       
      repeated string cidrs = 2 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The cidrs to add.
      Returns:
      This builder for chaining.
    • addAllCidrs

      public TunnelDestGroup.Builder addAllCidrs(Iterable<String> values)
       Optional. Unordered list. List of CIDRs that this group applies to.
       
      repeated string cidrs = 2 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The cidrs to add.
      Returns:
      This builder for chaining.
    • clearCidrs

      public TunnelDestGroup.Builder clearCidrs()
       Optional. Unordered list. List of CIDRs that this group applies to.
       
      repeated string cidrs = 2 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addCidrsBytes

      public TunnelDestGroup.Builder addCidrsBytes(com.google.protobuf.ByteString value)
       Optional. Unordered list. List of CIDRs that this group applies to.
       
      repeated string cidrs = 2 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the cidrs to add.
      Returns:
      This builder for chaining.
    • getFqdnsList

      public com.google.protobuf.ProtocolStringList getFqdnsList()
       Optional. Unordered list. List of FQDNs that this group applies to.
       
      repeated string fqdns = 3 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFqdnsList in interface TunnelDestGroupOrBuilder
      Returns:
      A list containing the fqdns.
    • getFqdnsCount

      public int getFqdnsCount()
       Optional. Unordered list. List of FQDNs that this group applies to.
       
      repeated string fqdns = 3 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFqdnsCount in interface TunnelDestGroupOrBuilder
      Returns:
      The count of fqdns.
    • getFqdns

      public String getFqdns(int index)
       Optional. Unordered list. List of FQDNs that this group applies to.
       
      repeated string fqdns = 3 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFqdns in interface TunnelDestGroupOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The fqdns at the given index.
    • getFqdnsBytes

      public com.google.protobuf.ByteString getFqdnsBytes(int index)
       Optional. Unordered list. List of FQDNs that this group applies to.
       
      repeated string fqdns = 3 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFqdnsBytes in interface TunnelDestGroupOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the fqdns at the given index.
    • setFqdns

      public TunnelDestGroup.Builder setFqdns(int index, String value)
       Optional. Unordered list. List of FQDNs that this group applies to.
       
      repeated string fqdns = 3 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The fqdns to set.
      Returns:
      This builder for chaining.
    • addFqdns

      public TunnelDestGroup.Builder addFqdns(String value)
       Optional. Unordered list. List of FQDNs that this group applies to.
       
      repeated string fqdns = 3 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The fqdns to add.
      Returns:
      This builder for chaining.
    • addAllFqdns

      public TunnelDestGroup.Builder addAllFqdns(Iterable<String> values)
       Optional. Unordered list. List of FQDNs that this group applies to.
       
      repeated string fqdns = 3 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The fqdns to add.
      Returns:
      This builder for chaining.
    • clearFqdns

      public TunnelDestGroup.Builder clearFqdns()
       Optional. Unordered list. List of FQDNs that this group applies to.
       
      repeated string fqdns = 3 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addFqdnsBytes

      public TunnelDestGroup.Builder addFqdnsBytes(com.google.protobuf.ByteString value)
       Optional. Unordered list. List of FQDNs that this group applies to.
       
      repeated string fqdns = 3 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the fqdns to add.
      Returns:
      This builder for chaining.