Class SubnetworkSecondaryRange.Builder

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

public static final class SubnetworkSecondaryRange.Builder extends com.google.protobuf.GeneratedMessage.Builder<SubnetworkSecondaryRange.Builder> implements SubnetworkSecondaryRangeOrBuilder
 Represents a secondary IP range of a subnetwork.
 
Protobuf type google.cloud.compute.v1.SubnetworkSecondaryRange
  • 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<SubnetworkSecondaryRange.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<SubnetworkSecondaryRange.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<SubnetworkSecondaryRange.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public SubnetworkSecondaryRange.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<SubnetworkSecondaryRange.Builder>
      Throws:
      IOException
    • hasIpCidrRange

      public boolean hasIpCidrRange()
       The range of IP addresses belonging to this subnetwork secondary range.
       Provide this property when you create the subnetwork. Ranges must be
       unique and non-overlapping with all primary and secondary IP ranges
       within a network. Both IPv4 and IPv6 ranges are supported. For IPv4,
       the range can be any range listed in theValid
       ranges list.
      
       For IPv6:
       The range must have a /64 prefix length.
       The range must be omitted, for auto-allocation from Google-defined ULA
       IPv6 range.
       For BYOGUA internal IPv6 secondary range, the range may be specified
       along with the `ipCollection` field.
       If an `ipCollection` is specified, the requested ip_cidr_range must lie
       within the range of the PDP referenced by the `ipCollection` field for
       allocation.
       If `ipCollection` field is specified, but ip_cidr_range is not,
       the range is auto-allocated from the PDP referenced by the `ipCollection`
       field.
       
      optional string ip_cidr_range = 98117322;
      Specified by:
      hasIpCidrRange in interface SubnetworkSecondaryRangeOrBuilder
      Returns:
      Whether the ipCidrRange field is set.
    • getIpCidrRange

      public String getIpCidrRange()
       The range of IP addresses belonging to this subnetwork secondary range.
       Provide this property when you create the subnetwork. Ranges must be
       unique and non-overlapping with all primary and secondary IP ranges
       within a network. Both IPv4 and IPv6 ranges are supported. For IPv4,
       the range can be any range listed in theValid
       ranges list.
      
       For IPv6:
       The range must have a /64 prefix length.
       The range must be omitted, for auto-allocation from Google-defined ULA
       IPv6 range.
       For BYOGUA internal IPv6 secondary range, the range may be specified
       along with the `ipCollection` field.
       If an `ipCollection` is specified, the requested ip_cidr_range must lie
       within the range of the PDP referenced by the `ipCollection` field for
       allocation.
       If `ipCollection` field is specified, but ip_cidr_range is not,
       the range is auto-allocated from the PDP referenced by the `ipCollection`
       field.
       
      optional string ip_cidr_range = 98117322;
      Specified by:
      getIpCidrRange in interface SubnetworkSecondaryRangeOrBuilder
      Returns:
      The ipCidrRange.
    • getIpCidrRangeBytes

      public com.google.protobuf.ByteString getIpCidrRangeBytes()
       The range of IP addresses belonging to this subnetwork secondary range.
       Provide this property when you create the subnetwork. Ranges must be
       unique and non-overlapping with all primary and secondary IP ranges
       within a network. Both IPv4 and IPv6 ranges are supported. For IPv4,
       the range can be any range listed in theValid
       ranges list.
      
       For IPv6:
       The range must have a /64 prefix length.
       The range must be omitted, for auto-allocation from Google-defined ULA
       IPv6 range.
       For BYOGUA internal IPv6 secondary range, the range may be specified
       along with the `ipCollection` field.
       If an `ipCollection` is specified, the requested ip_cidr_range must lie
       within the range of the PDP referenced by the `ipCollection` field for
       allocation.
       If `ipCollection` field is specified, but ip_cidr_range is not,
       the range is auto-allocated from the PDP referenced by the `ipCollection`
       field.
       
      optional string ip_cidr_range = 98117322;
      Specified by:
      getIpCidrRangeBytes in interface SubnetworkSecondaryRangeOrBuilder
      Returns:
      The bytes for ipCidrRange.
    • setIpCidrRange

      public SubnetworkSecondaryRange.Builder setIpCidrRange(String value)
       The range of IP addresses belonging to this subnetwork secondary range.
       Provide this property when you create the subnetwork. Ranges must be
       unique and non-overlapping with all primary and secondary IP ranges
       within a network. Both IPv4 and IPv6 ranges are supported. For IPv4,
       the range can be any range listed in theValid
       ranges list.
      
       For IPv6:
       The range must have a /64 prefix length.
       The range must be omitted, for auto-allocation from Google-defined ULA
       IPv6 range.
       For BYOGUA internal IPv6 secondary range, the range may be specified
       along with the `ipCollection` field.
       If an `ipCollection` is specified, the requested ip_cidr_range must lie
       within the range of the PDP referenced by the `ipCollection` field for
       allocation.
       If `ipCollection` field is specified, but ip_cidr_range is not,
       the range is auto-allocated from the PDP referenced by the `ipCollection`
       field.
       
      optional string ip_cidr_range = 98117322;
      Parameters:
      value - The ipCidrRange to set.
      Returns:
      This builder for chaining.
    • clearIpCidrRange

      public SubnetworkSecondaryRange.Builder clearIpCidrRange()
       The range of IP addresses belonging to this subnetwork secondary range.
       Provide this property when you create the subnetwork. Ranges must be
       unique and non-overlapping with all primary and secondary IP ranges
       within a network. Both IPv4 and IPv6 ranges are supported. For IPv4,
       the range can be any range listed in theValid
       ranges list.
      
       For IPv6:
       The range must have a /64 prefix length.
       The range must be omitted, for auto-allocation from Google-defined ULA
       IPv6 range.
       For BYOGUA internal IPv6 secondary range, the range may be specified
       along with the `ipCollection` field.
       If an `ipCollection` is specified, the requested ip_cidr_range must lie
       within the range of the PDP referenced by the `ipCollection` field for
       allocation.
       If `ipCollection` field is specified, but ip_cidr_range is not,
       the range is auto-allocated from the PDP referenced by the `ipCollection`
       field.
       
      optional string ip_cidr_range = 98117322;
      Returns:
      This builder for chaining.
    • setIpCidrRangeBytes

      public SubnetworkSecondaryRange.Builder setIpCidrRangeBytes(com.google.protobuf.ByteString value)
       The range of IP addresses belonging to this subnetwork secondary range.
       Provide this property when you create the subnetwork. Ranges must be
       unique and non-overlapping with all primary and secondary IP ranges
       within a network. Both IPv4 and IPv6 ranges are supported. For IPv4,
       the range can be any range listed in theValid
       ranges list.
      
       For IPv6:
       The range must have a /64 prefix length.
       The range must be omitted, for auto-allocation from Google-defined ULA
       IPv6 range.
       For BYOGUA internal IPv6 secondary range, the range may be specified
       along with the `ipCollection` field.
       If an `ipCollection` is specified, the requested ip_cidr_range must lie
       within the range of the PDP referenced by the `ipCollection` field for
       allocation.
       If `ipCollection` field is specified, but ip_cidr_range is not,
       the range is auto-allocated from the PDP referenced by the `ipCollection`
       field.
       
      optional string ip_cidr_range = 98117322;
      Parameters:
      value - The bytes for ipCidrRange to set.
      Returns:
      This builder for chaining.
    • hasRangeName

      public boolean hasRangeName()
       The name associated with this subnetwork secondary range, used when adding
       an alias IP/IPv6 range to a VM instance.
       The name must be 1-63 characters long, and comply withRFC1035.
       The name must be unique within the subnetwork.
       
      optional string range_name = 332216397;
      Specified by:
      hasRangeName in interface SubnetworkSecondaryRangeOrBuilder
      Returns:
      Whether the rangeName field is set.
    • getRangeName

      public String getRangeName()
       The name associated with this subnetwork secondary range, used when adding
       an alias IP/IPv6 range to a VM instance.
       The name must be 1-63 characters long, and comply withRFC1035.
       The name must be unique within the subnetwork.
       
      optional string range_name = 332216397;
      Specified by:
      getRangeName in interface SubnetworkSecondaryRangeOrBuilder
      Returns:
      The rangeName.
    • getRangeNameBytes

      public com.google.protobuf.ByteString getRangeNameBytes()
       The name associated with this subnetwork secondary range, used when adding
       an alias IP/IPv6 range to a VM instance.
       The name must be 1-63 characters long, and comply withRFC1035.
       The name must be unique within the subnetwork.
       
      optional string range_name = 332216397;
      Specified by:
      getRangeNameBytes in interface SubnetworkSecondaryRangeOrBuilder
      Returns:
      The bytes for rangeName.
    • setRangeName

      public SubnetworkSecondaryRange.Builder setRangeName(String value)
       The name associated with this subnetwork secondary range, used when adding
       an alias IP/IPv6 range to a VM instance.
       The name must be 1-63 characters long, and comply withRFC1035.
       The name must be unique within the subnetwork.
       
      optional string range_name = 332216397;
      Parameters:
      value - The rangeName to set.
      Returns:
      This builder for chaining.
    • clearRangeName

      public SubnetworkSecondaryRange.Builder clearRangeName()
       The name associated with this subnetwork secondary range, used when adding
       an alias IP/IPv6 range to a VM instance.
       The name must be 1-63 characters long, and comply withRFC1035.
       The name must be unique within the subnetwork.
       
      optional string range_name = 332216397;
      Returns:
      This builder for chaining.
    • setRangeNameBytes

      public SubnetworkSecondaryRange.Builder setRangeNameBytes(com.google.protobuf.ByteString value)
       The name associated with this subnetwork secondary range, used when adding
       an alias IP/IPv6 range to a VM instance.
       The name must be 1-63 characters long, and comply withRFC1035.
       The name must be unique within the subnetwork.
       
      optional string range_name = 332216397;
      Parameters:
      value - The bytes for rangeName to set.
      Returns:
      This builder for chaining.
    • hasReservedInternalRange

      public boolean hasReservedInternalRange()
       The URL of the reserved internal range. Only IPv4 is supported.
       
      optional string reserved_internal_range = 286248754;
      Specified by:
      hasReservedInternalRange in interface SubnetworkSecondaryRangeOrBuilder
      Returns:
      Whether the reservedInternalRange field is set.
    • getReservedInternalRange

      public String getReservedInternalRange()
       The URL of the reserved internal range. Only IPv4 is supported.
       
      optional string reserved_internal_range = 286248754;
      Specified by:
      getReservedInternalRange in interface SubnetworkSecondaryRangeOrBuilder
      Returns:
      The reservedInternalRange.
    • getReservedInternalRangeBytes

      public com.google.protobuf.ByteString getReservedInternalRangeBytes()
       The URL of the reserved internal range. Only IPv4 is supported.
       
      optional string reserved_internal_range = 286248754;
      Specified by:
      getReservedInternalRangeBytes in interface SubnetworkSecondaryRangeOrBuilder
      Returns:
      The bytes for reservedInternalRange.
    • setReservedInternalRange

      public SubnetworkSecondaryRange.Builder setReservedInternalRange(String value)
       The URL of the reserved internal range. Only IPv4 is supported.
       
      optional string reserved_internal_range = 286248754;
      Parameters:
      value - The reservedInternalRange to set.
      Returns:
      This builder for chaining.
    • clearReservedInternalRange

      public SubnetworkSecondaryRange.Builder clearReservedInternalRange()
       The URL of the reserved internal range. Only IPv4 is supported.
       
      optional string reserved_internal_range = 286248754;
      Returns:
      This builder for chaining.
    • setReservedInternalRangeBytes

      public SubnetworkSecondaryRange.Builder setReservedInternalRangeBytes(com.google.protobuf.ByteString value)
       The URL of the reserved internal range. Only IPv4 is supported.
       
      optional string reserved_internal_range = 286248754;
      Parameters:
      value - The bytes for reservedInternalRange to set.
      Returns:
      This builder for chaining.