Class UsableSubnetwork.Builder

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

public static final class UsableSubnetwork.Builder extends com.google.protobuf.GeneratedMessage.Builder<UsableSubnetwork.Builder> implements UsableSubnetworkOrBuilder
 UsableSubnetwork resource returns the subnetwork name, its associated network
 and the primary CIDR range.
 
Protobuf type google.container.v1.UsableSubnetwork
  • 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<UsableSubnetwork.Builder>
    • clear

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

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

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

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

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

      public UsableSubnetwork.Builder mergeFrom(UsableSubnetwork other)
    • isInitialized

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

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

      public String getSubnetwork()
       Subnetwork Name.
       Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
       
      string subnetwork = 1;
      Specified by:
      getSubnetwork in interface UsableSubnetworkOrBuilder
      Returns:
      The subnetwork.
    • getSubnetworkBytes

      public com.google.protobuf.ByteString getSubnetworkBytes()
       Subnetwork Name.
       Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
       
      string subnetwork = 1;
      Specified by:
      getSubnetworkBytes in interface UsableSubnetworkOrBuilder
      Returns:
      The bytes for subnetwork.
    • setSubnetwork

      public UsableSubnetwork.Builder setSubnetwork(String value)
       Subnetwork Name.
       Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
       
      string subnetwork = 1;
      Parameters:
      value - The subnetwork to set.
      Returns:
      This builder for chaining.
    • clearSubnetwork

      public UsableSubnetwork.Builder clearSubnetwork()
       Subnetwork Name.
       Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
       
      string subnetwork = 1;
      Returns:
      This builder for chaining.
    • setSubnetworkBytes

      public UsableSubnetwork.Builder setSubnetworkBytes(com.google.protobuf.ByteString value)
       Subnetwork Name.
       Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
       
      string subnetwork = 1;
      Parameters:
      value - The bytes for subnetwork to set.
      Returns:
      This builder for chaining.
    • getNetwork

      public String getNetwork()
       Network Name.
       Example: projects/my-project/global/networks/my-network
       
      string network = 2;
      Specified by:
      getNetwork in interface UsableSubnetworkOrBuilder
      Returns:
      The network.
    • getNetworkBytes

      public com.google.protobuf.ByteString getNetworkBytes()
       Network Name.
       Example: projects/my-project/global/networks/my-network
       
      string network = 2;
      Specified by:
      getNetworkBytes in interface UsableSubnetworkOrBuilder
      Returns:
      The bytes for network.
    • setNetwork

      public UsableSubnetwork.Builder setNetwork(String value)
       Network Name.
       Example: projects/my-project/global/networks/my-network
       
      string network = 2;
      Parameters:
      value - The network to set.
      Returns:
      This builder for chaining.
    • clearNetwork

      public UsableSubnetwork.Builder clearNetwork()
       Network Name.
       Example: projects/my-project/global/networks/my-network
       
      string network = 2;
      Returns:
      This builder for chaining.
    • setNetworkBytes

      public UsableSubnetwork.Builder setNetworkBytes(com.google.protobuf.ByteString value)
       Network Name.
       Example: projects/my-project/global/networks/my-network
       
      string network = 2;
      Parameters:
      value - The bytes for network to set.
      Returns:
      This builder for chaining.
    • getIpCidrRange

      public String getIpCidrRange()
       The range of internal addresses that are owned by this subnetwork.
       
      string ip_cidr_range = 3;
      Specified by:
      getIpCidrRange in interface UsableSubnetworkOrBuilder
      Returns:
      The ipCidrRange.
    • getIpCidrRangeBytes

      public com.google.protobuf.ByteString getIpCidrRangeBytes()
       The range of internal addresses that are owned by this subnetwork.
       
      string ip_cidr_range = 3;
      Specified by:
      getIpCidrRangeBytes in interface UsableSubnetworkOrBuilder
      Returns:
      The bytes for ipCidrRange.
    • setIpCidrRange

      public UsableSubnetwork.Builder setIpCidrRange(String value)
       The range of internal addresses that are owned by this subnetwork.
       
      string ip_cidr_range = 3;
      Parameters:
      value - The ipCidrRange to set.
      Returns:
      This builder for chaining.
    • clearIpCidrRange

      public UsableSubnetwork.Builder clearIpCidrRange()
       The range of internal addresses that are owned by this subnetwork.
       
      string ip_cidr_range = 3;
      Returns:
      This builder for chaining.
    • setIpCidrRangeBytes

      public UsableSubnetwork.Builder setIpCidrRangeBytes(com.google.protobuf.ByteString value)
       The range of internal addresses that are owned by this subnetwork.
       
      string ip_cidr_range = 3;
      Parameters:
      value - The bytes for ipCidrRange to set.
      Returns:
      This builder for chaining.
    • getSecondaryIpRangesList

      public List<UsableSubnetworkSecondaryRange> getSecondaryIpRangesList()
       Secondary IP ranges.
       
      repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4;
      Specified by:
      getSecondaryIpRangesList in interface UsableSubnetworkOrBuilder
    • getSecondaryIpRangesCount

      public int getSecondaryIpRangesCount()
       Secondary IP ranges.
       
      repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4;
      Specified by:
      getSecondaryIpRangesCount in interface UsableSubnetworkOrBuilder
    • getSecondaryIpRanges

      public UsableSubnetworkSecondaryRange getSecondaryIpRanges(int index)
       Secondary IP ranges.
       
      repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4;
      Specified by:
      getSecondaryIpRanges in interface UsableSubnetworkOrBuilder
    • setSecondaryIpRanges

      public UsableSubnetwork.Builder setSecondaryIpRanges(int index, UsableSubnetworkSecondaryRange value)
       Secondary IP ranges.
       
      repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4;
    • setSecondaryIpRanges

      public UsableSubnetwork.Builder setSecondaryIpRanges(int index, UsableSubnetworkSecondaryRange.Builder builderForValue)
       Secondary IP ranges.
       
      repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4;
    • addSecondaryIpRanges

      public UsableSubnetwork.Builder addSecondaryIpRanges(UsableSubnetworkSecondaryRange value)
       Secondary IP ranges.
       
      repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4;
    • addSecondaryIpRanges

      public UsableSubnetwork.Builder addSecondaryIpRanges(int index, UsableSubnetworkSecondaryRange value)
       Secondary IP ranges.
       
      repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4;
    • addSecondaryIpRanges

      public UsableSubnetwork.Builder addSecondaryIpRanges(UsableSubnetworkSecondaryRange.Builder builderForValue)
       Secondary IP ranges.
       
      repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4;
    • addSecondaryIpRanges

      public UsableSubnetwork.Builder addSecondaryIpRanges(int index, UsableSubnetworkSecondaryRange.Builder builderForValue)
       Secondary IP ranges.
       
      repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4;
    • addAllSecondaryIpRanges

      public UsableSubnetwork.Builder addAllSecondaryIpRanges(Iterable<? extends UsableSubnetworkSecondaryRange> values)
       Secondary IP ranges.
       
      repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4;
    • clearSecondaryIpRanges

      public UsableSubnetwork.Builder clearSecondaryIpRanges()
       Secondary IP ranges.
       
      repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4;
    • removeSecondaryIpRanges

      public UsableSubnetwork.Builder removeSecondaryIpRanges(int index)
       Secondary IP ranges.
       
      repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4;
    • getSecondaryIpRangesBuilder

      public UsableSubnetworkSecondaryRange.Builder getSecondaryIpRangesBuilder(int index)
       Secondary IP ranges.
       
      repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4;
    • getSecondaryIpRangesOrBuilder

      public UsableSubnetworkSecondaryRangeOrBuilder getSecondaryIpRangesOrBuilder(int index)
       Secondary IP ranges.
       
      repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4;
      Specified by:
      getSecondaryIpRangesOrBuilder in interface UsableSubnetworkOrBuilder
    • getSecondaryIpRangesOrBuilderList

      public List<? extends UsableSubnetworkSecondaryRangeOrBuilder> getSecondaryIpRangesOrBuilderList()
       Secondary IP ranges.
       
      repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4;
      Specified by:
      getSecondaryIpRangesOrBuilderList in interface UsableSubnetworkOrBuilder
    • addSecondaryIpRangesBuilder

      public UsableSubnetworkSecondaryRange.Builder addSecondaryIpRangesBuilder()
       Secondary IP ranges.
       
      repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4;
    • addSecondaryIpRangesBuilder

      public UsableSubnetworkSecondaryRange.Builder addSecondaryIpRangesBuilder(int index)
       Secondary IP ranges.
       
      repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4;
    • getSecondaryIpRangesBuilderList

      public List<UsableSubnetworkSecondaryRange.Builder> getSecondaryIpRangesBuilderList()
       Secondary IP ranges.
       
      repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4;
    • getStatusMessage

      public String getStatusMessage()
       A human readable status message representing the reasons for cases where
       the caller cannot use the secondary ranges under the subnet. For example if
       the secondary_ip_ranges is empty due to a permission issue, an insufficient
       permission message will be given by status_message.
       
      string status_message = 5;
      Specified by:
      getStatusMessage in interface UsableSubnetworkOrBuilder
      Returns:
      The statusMessage.
    • getStatusMessageBytes

      public com.google.protobuf.ByteString getStatusMessageBytes()
       A human readable status message representing the reasons for cases where
       the caller cannot use the secondary ranges under the subnet. For example if
       the secondary_ip_ranges is empty due to a permission issue, an insufficient
       permission message will be given by status_message.
       
      string status_message = 5;
      Specified by:
      getStatusMessageBytes in interface UsableSubnetworkOrBuilder
      Returns:
      The bytes for statusMessage.
    • setStatusMessage

      public UsableSubnetwork.Builder setStatusMessage(String value)
       A human readable status message representing the reasons for cases where
       the caller cannot use the secondary ranges under the subnet. For example if
       the secondary_ip_ranges is empty due to a permission issue, an insufficient
       permission message will be given by status_message.
       
      string status_message = 5;
      Parameters:
      value - The statusMessage to set.
      Returns:
      This builder for chaining.
    • clearStatusMessage

      public UsableSubnetwork.Builder clearStatusMessage()
       A human readable status message representing the reasons for cases where
       the caller cannot use the secondary ranges under the subnet. For example if
       the secondary_ip_ranges is empty due to a permission issue, an insufficient
       permission message will be given by status_message.
       
      string status_message = 5;
      Returns:
      This builder for chaining.
    • setStatusMessageBytes

      public UsableSubnetwork.Builder setStatusMessageBytes(com.google.protobuf.ByteString value)
       A human readable status message representing the reasons for cases where
       the caller cannot use the secondary ranges under the subnet. For example if
       the secondary_ip_ranges is empty due to a permission issue, an insufficient
       permission message will be given by status_message.
       
      string status_message = 5;
      Parameters:
      value - The bytes for statusMessage to set.
      Returns:
      This builder for chaining.