Class AdditionalIPRangesConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AdditionalIPRangesConfig.Builder>
com.google.container.v1.AdditionalIPRangesConfig.Builder
All Implemented Interfaces:
AdditionalIPRangesConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AdditionalIPRangesConfig

public static final class AdditionalIPRangesConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<AdditionalIPRangesConfig.Builder> implements AdditionalIPRangesConfigOrBuilder
 AdditionalIPRangesConfig is the configuration for individual additional
 subnetwork attached to the cluster
 
Protobuf type google.container.v1.AdditionalIPRangesConfig
  • 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<AdditionalIPRangesConfig.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<AdditionalIPRangesConfig.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<AdditionalIPRangesConfig.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public AdditionalIPRangesConfig.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<AdditionalIPRangesConfig.Builder>
      Throws:
      IOException
    • getSubnetwork

      public String getSubnetwork()
       Name of the subnetwork. This can be the full path of the subnetwork or
       just the name.
       Example1: my-subnet
       Example2: projects/gke-project/regions/us-central1/subnetworks/my-subnet
       
      string subnetwork = 1;
      Specified by:
      getSubnetwork in interface AdditionalIPRangesConfigOrBuilder
      Returns:
      The subnetwork.
    • getSubnetworkBytes

      public com.google.protobuf.ByteString getSubnetworkBytes()
       Name of the subnetwork. This can be the full path of the subnetwork or
       just the name.
       Example1: my-subnet
       Example2: projects/gke-project/regions/us-central1/subnetworks/my-subnet
       
      string subnetwork = 1;
      Specified by:
      getSubnetworkBytes in interface AdditionalIPRangesConfigOrBuilder
      Returns:
      The bytes for subnetwork.
    • setSubnetwork

      public AdditionalIPRangesConfig.Builder setSubnetwork(String value)
       Name of the subnetwork. This can be the full path of the subnetwork or
       just the name.
       Example1: my-subnet
       Example2: projects/gke-project/regions/us-central1/subnetworks/my-subnet
       
      string subnetwork = 1;
      Parameters:
      value - The subnetwork to set.
      Returns:
      This builder for chaining.
    • clearSubnetwork

      public AdditionalIPRangesConfig.Builder clearSubnetwork()
       Name of the subnetwork. This can be the full path of the subnetwork or
       just the name.
       Example1: my-subnet
       Example2: projects/gke-project/regions/us-central1/subnetworks/my-subnet
       
      string subnetwork = 1;
      Returns:
      This builder for chaining.
    • setSubnetworkBytes

      public AdditionalIPRangesConfig.Builder setSubnetworkBytes(com.google.protobuf.ByteString value)
       Name of the subnetwork. This can be the full path of the subnetwork or
       just the name.
       Example1: my-subnet
       Example2: projects/gke-project/regions/us-central1/subnetworks/my-subnet
       
      string subnetwork = 1;
      Parameters:
      value - The bytes for subnetwork to set.
      Returns:
      This builder for chaining.
    • getPodIpv4RangeNamesList

      public com.google.protobuf.ProtocolStringList getPodIpv4RangeNamesList()
       List of secondary ranges names within this subnetwork that can be used for
       pod IPs.
       Example1: gke-pod-range1
       Example2: gke-pod-range1,gke-pod-range2
       
      repeated string pod_ipv4_range_names = 2;
      Specified by:
      getPodIpv4RangeNamesList in interface AdditionalIPRangesConfigOrBuilder
      Returns:
      A list containing the podIpv4RangeNames.
    • getPodIpv4RangeNamesCount

      public int getPodIpv4RangeNamesCount()
       List of secondary ranges names within this subnetwork that can be used for
       pod IPs.
       Example1: gke-pod-range1
       Example2: gke-pod-range1,gke-pod-range2
       
      repeated string pod_ipv4_range_names = 2;
      Specified by:
      getPodIpv4RangeNamesCount in interface AdditionalIPRangesConfigOrBuilder
      Returns:
      The count of podIpv4RangeNames.
    • getPodIpv4RangeNames

      public String getPodIpv4RangeNames(int index)
       List of secondary ranges names within this subnetwork that can be used for
       pod IPs.
       Example1: gke-pod-range1
       Example2: gke-pod-range1,gke-pod-range2
       
      repeated string pod_ipv4_range_names = 2;
      Specified by:
      getPodIpv4RangeNames in interface AdditionalIPRangesConfigOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The podIpv4RangeNames at the given index.
    • getPodIpv4RangeNamesBytes

      public com.google.protobuf.ByteString getPodIpv4RangeNamesBytes(int index)
       List of secondary ranges names within this subnetwork that can be used for
       pod IPs.
       Example1: gke-pod-range1
       Example2: gke-pod-range1,gke-pod-range2
       
      repeated string pod_ipv4_range_names = 2;
      Specified by:
      getPodIpv4RangeNamesBytes in interface AdditionalIPRangesConfigOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the podIpv4RangeNames at the given index.
    • setPodIpv4RangeNames

      public AdditionalIPRangesConfig.Builder setPodIpv4RangeNames(int index, String value)
       List of secondary ranges names within this subnetwork that can be used for
       pod IPs.
       Example1: gke-pod-range1
       Example2: gke-pod-range1,gke-pod-range2
       
      repeated string pod_ipv4_range_names = 2;
      Parameters:
      index - The index to set the value at.
      value - The podIpv4RangeNames to set.
      Returns:
      This builder for chaining.
    • addPodIpv4RangeNames

      public AdditionalIPRangesConfig.Builder addPodIpv4RangeNames(String value)
       List of secondary ranges names within this subnetwork that can be used for
       pod IPs.
       Example1: gke-pod-range1
       Example2: gke-pod-range1,gke-pod-range2
       
      repeated string pod_ipv4_range_names = 2;
      Parameters:
      value - The podIpv4RangeNames to add.
      Returns:
      This builder for chaining.
    • addAllPodIpv4RangeNames

      public AdditionalIPRangesConfig.Builder addAllPodIpv4RangeNames(Iterable<String> values)
       List of secondary ranges names within this subnetwork that can be used for
       pod IPs.
       Example1: gke-pod-range1
       Example2: gke-pod-range1,gke-pod-range2
       
      repeated string pod_ipv4_range_names = 2;
      Parameters:
      values - The podIpv4RangeNames to add.
      Returns:
      This builder for chaining.
    • clearPodIpv4RangeNames

      public AdditionalIPRangesConfig.Builder clearPodIpv4RangeNames()
       List of secondary ranges names within this subnetwork that can be used for
       pod IPs.
       Example1: gke-pod-range1
       Example2: gke-pod-range1,gke-pod-range2
       
      repeated string pod_ipv4_range_names = 2;
      Returns:
      This builder for chaining.
    • addPodIpv4RangeNamesBytes

      public AdditionalIPRangesConfig.Builder addPodIpv4RangeNamesBytes(com.google.protobuf.ByteString value)
       List of secondary ranges names within this subnetwork that can be used for
       pod IPs.
       Example1: gke-pod-range1
       Example2: gke-pod-range1,gke-pod-range2
       
      repeated string pod_ipv4_range_names = 2;
      Parameters:
      value - The bytes of the podIpv4RangeNames to add.
      Returns:
      This builder for chaining.
    • getStatusValue

      public int getStatusValue()
       Draining status of the additional subnet.
       
      .google.container.v1.AdditionalIPRangesConfig.Status status = 3;
      Specified by:
      getStatusValue in interface AdditionalIPRangesConfigOrBuilder
      Returns:
      The enum numeric value on the wire for status.
    • setStatusValue

      public AdditionalIPRangesConfig.Builder setStatusValue(int value)
       Draining status of the additional subnet.
       
      .google.container.v1.AdditionalIPRangesConfig.Status status = 3;
      Parameters:
      value - The enum numeric value on the wire for status to set.
      Returns:
      This builder for chaining.
    • getStatus

      public AdditionalIPRangesConfig.Status getStatus()
       Draining status of the additional subnet.
       
      .google.container.v1.AdditionalIPRangesConfig.Status status = 3;
      Specified by:
      getStatus in interface AdditionalIPRangesConfigOrBuilder
      Returns:
      The status.
    • setStatus

       Draining status of the additional subnet.
       
      .google.container.v1.AdditionalIPRangesConfig.Status status = 3;
      Parameters:
      value - The status to set.
      Returns:
      This builder for chaining.
    • clearStatus

      public AdditionalIPRangesConfig.Builder clearStatus()
       Draining status of the additional subnet.
       
      .google.container.v1.AdditionalIPRangesConfig.Status status = 3;
      Returns:
      This builder for chaining.