Class PublicDelegatedPrefixPublicDelegatedSubPrefix.Builder

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

public static final class PublicDelegatedPrefixPublicDelegatedSubPrefix.Builder extends com.google.protobuf.GeneratedMessage.Builder<PublicDelegatedPrefixPublicDelegatedSubPrefix.Builder> implements PublicDelegatedPrefixPublicDelegatedSubPrefixOrBuilder
 Represents a sub PublicDelegatedPrefix.
 
Protobuf type google.cloud.compute.v1.PublicDelegatedPrefixPublicDelegatedSubPrefix
  • 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<PublicDelegatedPrefixPublicDelegatedSubPrefix.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<PublicDelegatedPrefixPublicDelegatedSubPrefix.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<PublicDelegatedPrefixPublicDelegatedSubPrefix.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public PublicDelegatedPrefixPublicDelegatedSubPrefix.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<PublicDelegatedPrefixPublicDelegatedSubPrefix.Builder>
      Throws:
      IOException
    • hasAllocatablePrefixLength

      public boolean hasAllocatablePrefixLength()
       The allocatable prefix length supported by this PublicDelegatedSubPrefix.
       
      optional int32 allocatable_prefix_length = 38427446;
      Specified by:
      hasAllocatablePrefixLength in interface PublicDelegatedPrefixPublicDelegatedSubPrefixOrBuilder
      Returns:
      Whether the allocatablePrefixLength field is set.
    • getAllocatablePrefixLength

      public int getAllocatablePrefixLength()
       The allocatable prefix length supported by this PublicDelegatedSubPrefix.
       
      optional int32 allocatable_prefix_length = 38427446;
      Specified by:
      getAllocatablePrefixLength in interface PublicDelegatedPrefixPublicDelegatedSubPrefixOrBuilder
      Returns:
      The allocatablePrefixLength.
    • setAllocatablePrefixLength

      public PublicDelegatedPrefixPublicDelegatedSubPrefix.Builder setAllocatablePrefixLength(int value)
       The allocatable prefix length supported by this PublicDelegatedSubPrefix.
       
      optional int32 allocatable_prefix_length = 38427446;
      Parameters:
      value - The allocatablePrefixLength to set.
      Returns:
      This builder for chaining.
    • clearAllocatablePrefixLength

      public PublicDelegatedPrefixPublicDelegatedSubPrefix.Builder clearAllocatablePrefixLength()
       The allocatable prefix length supported by this PublicDelegatedSubPrefix.
       
      optional int32 allocatable_prefix_length = 38427446;
      Returns:
      This builder for chaining.
    • hasDelegateeProject

      public boolean hasDelegateeProject()
       Name of the project scoping this PublicDelegatedSubPrefix.
       
      optional string delegatee_project = 414860634;
      Specified by:
      hasDelegateeProject in interface PublicDelegatedPrefixPublicDelegatedSubPrefixOrBuilder
      Returns:
      Whether the delegateeProject field is set.
    • getDelegateeProject

      public String getDelegateeProject()
       Name of the project scoping this PublicDelegatedSubPrefix.
       
      optional string delegatee_project = 414860634;
      Specified by:
      getDelegateeProject in interface PublicDelegatedPrefixPublicDelegatedSubPrefixOrBuilder
      Returns:
      The delegateeProject.
    • getDelegateeProjectBytes

      public com.google.protobuf.ByteString getDelegateeProjectBytes()
       Name of the project scoping this PublicDelegatedSubPrefix.
       
      optional string delegatee_project = 414860634;
      Specified by:
      getDelegateeProjectBytes in interface PublicDelegatedPrefixPublicDelegatedSubPrefixOrBuilder
      Returns:
      The bytes for delegateeProject.
    • setDelegateeProject

       Name of the project scoping this PublicDelegatedSubPrefix.
       
      optional string delegatee_project = 414860634;
      Parameters:
      value - The delegateeProject to set.
      Returns:
      This builder for chaining.
    • clearDelegateeProject

       Name of the project scoping this PublicDelegatedSubPrefix.
       
      optional string delegatee_project = 414860634;
      Returns:
      This builder for chaining.
    • setDelegateeProjectBytes

      public PublicDelegatedPrefixPublicDelegatedSubPrefix.Builder setDelegateeProjectBytes(com.google.protobuf.ByteString value)
       Name of the project scoping this PublicDelegatedSubPrefix.
       
      optional string delegatee_project = 414860634;
      Parameters:
      value - The bytes for delegateeProject to set.
      Returns:
      This builder for chaining.
    • hasDescription

      public boolean hasDescription()
       An optional description of this resource. Provide this property when you
       create the resource.
       
      optional string description = 422937596;
      Specified by:
      hasDescription in interface PublicDelegatedPrefixPublicDelegatedSubPrefixOrBuilder
      Returns:
      Whether the description field is set.
    • getDescription

      public String getDescription()
       An optional description of this resource. Provide this property when you
       create the resource.
       
      optional string description = 422937596;
      Specified by:
      getDescription in interface PublicDelegatedPrefixPublicDelegatedSubPrefixOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       An optional description of this resource. Provide this property when you
       create the resource.
       
      optional string description = 422937596;
      Specified by:
      getDescriptionBytes in interface PublicDelegatedPrefixPublicDelegatedSubPrefixOrBuilder
      Returns:
      The bytes for description.
    • setDescription

       An optional description of this resource. Provide this property when you
       create the resource.
       
      optional string description = 422937596;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

       An optional description of this resource. Provide this property when you
       create the resource.
       
      optional string description = 422937596;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public PublicDelegatedPrefixPublicDelegatedSubPrefix.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       An optional description of this resource. Provide this property when you
       create the resource.
       
      optional string description = 422937596;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • hasEnableEnhancedIpv4Allocation

      public boolean hasEnableEnhancedIpv4Allocation()
       Output only. [Output Only] Whether this PDP supports enhanced IPv4 allocations.
       Applicable for IPv4 PDPs only.
       
      optional bool enable_enhanced_ipv4_allocation = 54582253;
      Specified by:
      hasEnableEnhancedIpv4Allocation in interface PublicDelegatedPrefixPublicDelegatedSubPrefixOrBuilder
      Returns:
      Whether the enableEnhancedIpv4Allocation field is set.
    • getEnableEnhancedIpv4Allocation

      public boolean getEnableEnhancedIpv4Allocation()
       Output only. [Output Only] Whether this PDP supports enhanced IPv4 allocations.
       Applicable for IPv4 PDPs only.
       
      optional bool enable_enhanced_ipv4_allocation = 54582253;
      Specified by:
      getEnableEnhancedIpv4Allocation in interface PublicDelegatedPrefixPublicDelegatedSubPrefixOrBuilder
      Returns:
      The enableEnhancedIpv4Allocation.
    • setEnableEnhancedIpv4Allocation

      public PublicDelegatedPrefixPublicDelegatedSubPrefix.Builder setEnableEnhancedIpv4Allocation(boolean value)
       Output only. [Output Only] Whether this PDP supports enhanced IPv4 allocations.
       Applicable for IPv4 PDPs only.
       
      optional bool enable_enhanced_ipv4_allocation = 54582253;
      Parameters:
      value - The enableEnhancedIpv4Allocation to set.
      Returns:
      This builder for chaining.
    • clearEnableEnhancedIpv4Allocation

      public PublicDelegatedPrefixPublicDelegatedSubPrefix.Builder clearEnableEnhancedIpv4Allocation()
       Output only. [Output Only] Whether this PDP supports enhanced IPv4 allocations.
       Applicable for IPv4 PDPs only.
       
      optional bool enable_enhanced_ipv4_allocation = 54582253;
      Returns:
      This builder for chaining.
    • hasIpCidrRange

      public boolean hasIpCidrRange()
       The IP address range, in CIDR format, represented by this sub public
       delegated prefix.
       
      optional string ip_cidr_range = 98117322;
      Specified by:
      hasIpCidrRange in interface PublicDelegatedPrefixPublicDelegatedSubPrefixOrBuilder
      Returns:
      Whether the ipCidrRange field is set.
    • getIpCidrRange

      public String getIpCidrRange()
       The IP address range, in CIDR format, represented by this sub public
       delegated prefix.
       
      optional string ip_cidr_range = 98117322;
      Specified by:
      getIpCidrRange in interface PublicDelegatedPrefixPublicDelegatedSubPrefixOrBuilder
      Returns:
      The ipCidrRange.
    • getIpCidrRangeBytes

      public com.google.protobuf.ByteString getIpCidrRangeBytes()
       The IP address range, in CIDR format, represented by this sub public
       delegated prefix.
       
      optional string ip_cidr_range = 98117322;
      Specified by:
      getIpCidrRangeBytes in interface PublicDelegatedPrefixPublicDelegatedSubPrefixOrBuilder
      Returns:
      The bytes for ipCidrRange.
    • setIpCidrRange

       The IP address range, in CIDR format, represented by this sub public
       delegated prefix.
       
      optional string ip_cidr_range = 98117322;
      Parameters:
      value - The ipCidrRange to set.
      Returns:
      This builder for chaining.
    • clearIpCidrRange

       The IP address range, in CIDR format, represented by this sub public
       delegated prefix.
       
      optional string ip_cidr_range = 98117322;
      Returns:
      This builder for chaining.
    • setIpCidrRangeBytes

      public PublicDelegatedPrefixPublicDelegatedSubPrefix.Builder setIpCidrRangeBytes(com.google.protobuf.ByteString value)
       The IP address range, in CIDR format, represented by this sub public
       delegated prefix.
       
      optional string ip_cidr_range = 98117322;
      Parameters:
      value - The bytes for ipCidrRange to set.
      Returns:
      This builder for chaining.
    • hasIpv6AccessType

      public boolean hasIpv6AccessType()
       Output only. [Output Only] The internet access type for IPv6 Public Delegated Sub
       Prefixes. Inherited from parent prefix.
       Check the Ipv6AccessType enum for the list of possible values.
       
      optional string ipv6_access_type = 504658653;
      Specified by:
      hasIpv6AccessType in interface PublicDelegatedPrefixPublicDelegatedSubPrefixOrBuilder
      Returns:
      Whether the ipv6AccessType field is set.
    • getIpv6AccessType

      public String getIpv6AccessType()
       Output only. [Output Only] The internet access type for IPv6 Public Delegated Sub
       Prefixes. Inherited from parent prefix.
       Check the Ipv6AccessType enum for the list of possible values.
       
      optional string ipv6_access_type = 504658653;
      Specified by:
      getIpv6AccessType in interface PublicDelegatedPrefixPublicDelegatedSubPrefixOrBuilder
      Returns:
      The ipv6AccessType.
    • getIpv6AccessTypeBytes

      public com.google.protobuf.ByteString getIpv6AccessTypeBytes()
       Output only. [Output Only] The internet access type for IPv6 Public Delegated Sub
       Prefixes. Inherited from parent prefix.
       Check the Ipv6AccessType enum for the list of possible values.
       
      optional string ipv6_access_type = 504658653;
      Specified by:
      getIpv6AccessTypeBytes in interface PublicDelegatedPrefixPublicDelegatedSubPrefixOrBuilder
      Returns:
      The bytes for ipv6AccessType.
    • setIpv6AccessType

       Output only. [Output Only] The internet access type for IPv6 Public Delegated Sub
       Prefixes. Inherited from parent prefix.
       Check the Ipv6AccessType enum for the list of possible values.
       
      optional string ipv6_access_type = 504658653;
      Parameters:
      value - The ipv6AccessType to set.
      Returns:
      This builder for chaining.
    • clearIpv6AccessType

       Output only. [Output Only] The internet access type for IPv6 Public Delegated Sub
       Prefixes. Inherited from parent prefix.
       Check the Ipv6AccessType enum for the list of possible values.
       
      optional string ipv6_access_type = 504658653;
      Returns:
      This builder for chaining.
    • setIpv6AccessTypeBytes

      public PublicDelegatedPrefixPublicDelegatedSubPrefix.Builder setIpv6AccessTypeBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] The internet access type for IPv6 Public Delegated Sub
       Prefixes. Inherited from parent prefix.
       Check the Ipv6AccessType enum for the list of possible values.
       
      optional string ipv6_access_type = 504658653;
      Parameters:
      value - The bytes for ipv6AccessType to set.
      Returns:
      This builder for chaining.
    • hasIsAddress

      public boolean hasIsAddress()
       Whether the sub prefix is delegated to create Address resources in the
       delegatee project.
       
      optional bool is_address = 352617951;
      Specified by:
      hasIsAddress in interface PublicDelegatedPrefixPublicDelegatedSubPrefixOrBuilder
      Returns:
      Whether the isAddress field is set.
    • getIsAddress

      public boolean getIsAddress()
       Whether the sub prefix is delegated to create Address resources in the
       delegatee project.
       
      optional bool is_address = 352617951;
      Specified by:
      getIsAddress in interface PublicDelegatedPrefixPublicDelegatedSubPrefixOrBuilder
      Returns:
      The isAddress.
    • setIsAddress

      public PublicDelegatedPrefixPublicDelegatedSubPrefix.Builder setIsAddress(boolean value)
       Whether the sub prefix is delegated to create Address resources in the
       delegatee project.
       
      optional bool is_address = 352617951;
      Parameters:
      value - The isAddress to set.
      Returns:
      This builder for chaining.
    • clearIsAddress

       Whether the sub prefix is delegated to create Address resources in the
       delegatee project.
       
      optional bool is_address = 352617951;
      Returns:
      This builder for chaining.
    • hasMode

      public boolean hasMode()
       The PublicDelegatedSubPrefix mode for IPv6 only.
       Check the Mode enum for the list of possible values.
       
      optional string mode = 3357091;
      Specified by:
      hasMode in interface PublicDelegatedPrefixPublicDelegatedSubPrefixOrBuilder
      Returns:
      Whether the mode field is set.
    • getMode

      public String getMode()
       The PublicDelegatedSubPrefix mode for IPv6 only.
       Check the Mode enum for the list of possible values.
       
      optional string mode = 3357091;
      Specified by:
      getMode in interface PublicDelegatedPrefixPublicDelegatedSubPrefixOrBuilder
      Returns:
      The mode.
    • getModeBytes

      public com.google.protobuf.ByteString getModeBytes()
       The PublicDelegatedSubPrefix mode for IPv6 only.
       Check the Mode enum for the list of possible values.
       
      optional string mode = 3357091;
      Specified by:
      getModeBytes in interface PublicDelegatedPrefixPublicDelegatedSubPrefixOrBuilder
      Returns:
      The bytes for mode.
    • setMode

       The PublicDelegatedSubPrefix mode for IPv6 only.
       Check the Mode enum for the list of possible values.
       
      optional string mode = 3357091;
      Parameters:
      value - The mode to set.
      Returns:
      This builder for chaining.
    • clearMode

       The PublicDelegatedSubPrefix mode for IPv6 only.
       Check the Mode enum for the list of possible values.
       
      optional string mode = 3357091;
      Returns:
      This builder for chaining.
    • setModeBytes

      public PublicDelegatedPrefixPublicDelegatedSubPrefix.Builder setModeBytes(com.google.protobuf.ByteString value)
       The PublicDelegatedSubPrefix mode for IPv6 only.
       Check the Mode enum for the list of possible values.
       
      optional string mode = 3357091;
      Parameters:
      value - The bytes for mode to set.
      Returns:
      This builder for chaining.
    • hasName

      public boolean hasName()
       The name of the sub public delegated prefix.
       
      optional string name = 3373707;
      Specified by:
      hasName in interface PublicDelegatedPrefixPublicDelegatedSubPrefixOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       The name of the sub public delegated prefix.
       
      optional string name = 3373707;
      Specified by:
      getName in interface PublicDelegatedPrefixPublicDelegatedSubPrefixOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name of the sub public delegated prefix.
       
      optional string name = 3373707;
      Specified by:
      getNameBytes in interface PublicDelegatedPrefixPublicDelegatedSubPrefixOrBuilder
      Returns:
      The bytes for name.
    • setName

       The name of the sub public delegated prefix.
       
      optional string name = 3373707;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       The name of the sub public delegated prefix.
       
      optional string name = 3373707;
      Returns:
      This builder for chaining.
    • setNameBytes

      public PublicDelegatedPrefixPublicDelegatedSubPrefix.Builder setNameBytes(com.google.protobuf.ByteString value)
       The name of the sub public delegated prefix.
       
      optional string name = 3373707;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasRegion

      public boolean hasRegion()
       Output only. [Output Only] The region of the sub public delegated prefix if it is
       regional. If absent, the sub prefix is global.
       
      optional string region = 138946292;
      Specified by:
      hasRegion in interface PublicDelegatedPrefixPublicDelegatedSubPrefixOrBuilder
      Returns:
      Whether the region field is set.
    • getRegion

      public String getRegion()
       Output only. [Output Only] The region of the sub public delegated prefix if it is
       regional. If absent, the sub prefix is global.
       
      optional string region = 138946292;
      Specified by:
      getRegion in interface PublicDelegatedPrefixPublicDelegatedSubPrefixOrBuilder
      Returns:
      The region.
    • getRegionBytes

      public com.google.protobuf.ByteString getRegionBytes()
       Output only. [Output Only] The region of the sub public delegated prefix if it is
       regional. If absent, the sub prefix is global.
       
      optional string region = 138946292;
      Specified by:
      getRegionBytes in interface PublicDelegatedPrefixPublicDelegatedSubPrefixOrBuilder
      Returns:
      The bytes for region.
    • setRegion

       Output only. [Output Only] The region of the sub public delegated prefix if it is
       regional. If absent, the sub prefix is global.
       
      optional string region = 138946292;
      Parameters:
      value - The region to set.
      Returns:
      This builder for chaining.
    • clearRegion

       Output only. [Output Only] The region of the sub public delegated prefix if it is
       regional. If absent, the sub prefix is global.
       
      optional string region = 138946292;
      Returns:
      This builder for chaining.
    • setRegionBytes

      public PublicDelegatedPrefixPublicDelegatedSubPrefix.Builder setRegionBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] The region of the sub public delegated prefix if it is
       regional. If absent, the sub prefix is global.
       
      optional string region = 138946292;
      Parameters:
      value - The bytes for region to set.
      Returns:
      This builder for chaining.
    • hasStatus

      public boolean hasStatus()
       Output only. [Output Only] The status of the sub public delegated prefix.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Specified by:
      hasStatus in interface PublicDelegatedPrefixPublicDelegatedSubPrefixOrBuilder
      Returns:
      Whether the status field is set.
    • getStatus

      public String getStatus()
       Output only. [Output Only] The status of the sub public delegated prefix.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Specified by:
      getStatus in interface PublicDelegatedPrefixPublicDelegatedSubPrefixOrBuilder
      Returns:
      The status.
    • getStatusBytes

      public com.google.protobuf.ByteString getStatusBytes()
       Output only. [Output Only] The status of the sub public delegated prefix.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Specified by:
      getStatusBytes in interface PublicDelegatedPrefixPublicDelegatedSubPrefixOrBuilder
      Returns:
      The bytes for status.
    • setStatus

       Output only. [Output Only] The status of the sub public delegated prefix.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Parameters:
      value - The status to set.
      Returns:
      This builder for chaining.
    • clearStatus

       Output only. [Output Only] The status of the sub public delegated prefix.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Returns:
      This builder for chaining.
    • setStatusBytes

      public PublicDelegatedPrefixPublicDelegatedSubPrefix.Builder setStatusBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] The status of the sub public delegated prefix.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Parameters:
      value - The bytes for status to set.
      Returns:
      This builder for chaining.