Class AliasIpRange.Builder

  • All Implemented Interfaces:
    AliasIpRangeOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    AliasIpRange

    public static final class AliasIpRange.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<AliasIpRange.Builder>
    implements AliasIpRangeOrBuilder
     An alias IP range attached to an instance's network interface.
     
    Protobuf type google.cloud.compute.v1.AliasIpRange
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AliasIpRange.Builder>
      • clear

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

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

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

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

        public AliasIpRange.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<AliasIpRange.Builder>
      • setField

        public AliasIpRange.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                             Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<AliasIpRange.Builder>
      • clearField

        public AliasIpRange.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<AliasIpRange.Builder>
      • clearOneof

        public AliasIpRange.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AliasIpRange.Builder>
      • setRepeatedField

        public AliasIpRange.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     int index,
                                                     Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AliasIpRange.Builder>
      • addRepeatedField

        public AliasIpRange.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AliasIpRange.Builder>
      • mergeFrom

        public AliasIpRange.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<AliasIpRange.Builder>
      • isInitialized

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

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

        public boolean hasIpCidrRange()
         The IP alias ranges to allocate for this interface. This IP CIDR range must belong to the specified subnetwork and cannot contain IP addresses reserved by system or used by other network interfaces. This range may be a single IP address (such as 10.2.3.4), a netmask (such as /24) or a CIDR-formatted string (such as 10.1.2.0/24).
         
        optional string ip_cidr_range = 98117322;
        Specified by:
        hasIpCidrRange in interface AliasIpRangeOrBuilder
        Returns:
        Whether the ipCidrRange field is set.
      • getIpCidrRange

        public String getIpCidrRange()
         The IP alias ranges to allocate for this interface. This IP CIDR range must belong to the specified subnetwork and cannot contain IP addresses reserved by system or used by other network interfaces. This range may be a single IP address (such as 10.2.3.4), a netmask (such as /24) or a CIDR-formatted string (such as 10.1.2.0/24).
         
        optional string ip_cidr_range = 98117322;
        Specified by:
        getIpCidrRange in interface AliasIpRangeOrBuilder
        Returns:
        The ipCidrRange.
      • getIpCidrRangeBytes

        public com.google.protobuf.ByteString getIpCidrRangeBytes()
         The IP alias ranges to allocate for this interface. This IP CIDR range must belong to the specified subnetwork and cannot contain IP addresses reserved by system or used by other network interfaces. This range may be a single IP address (such as 10.2.3.4), a netmask (such as /24) or a CIDR-formatted string (such as 10.1.2.0/24).
         
        optional string ip_cidr_range = 98117322;
        Specified by:
        getIpCidrRangeBytes in interface AliasIpRangeOrBuilder
        Returns:
        The bytes for ipCidrRange.
      • setIpCidrRange

        public AliasIpRange.Builder setIpCidrRange​(String value)
         The IP alias ranges to allocate for this interface. This IP CIDR range must belong to the specified subnetwork and cannot contain IP addresses reserved by system or used by other network interfaces. This range may be a single IP address (such as 10.2.3.4), a netmask (such as /24) or a CIDR-formatted string (such as 10.1.2.0/24).
         
        optional string ip_cidr_range = 98117322;
        Parameters:
        value - The ipCidrRange to set.
        Returns:
        This builder for chaining.
      • clearIpCidrRange

        public AliasIpRange.Builder clearIpCidrRange()
         The IP alias ranges to allocate for this interface. This IP CIDR range must belong to the specified subnetwork and cannot contain IP addresses reserved by system or used by other network interfaces. This range may be a single IP address (such as 10.2.3.4), a netmask (such as /24) or a CIDR-formatted string (such as 10.1.2.0/24).
         
        optional string ip_cidr_range = 98117322;
        Returns:
        This builder for chaining.
      • setIpCidrRangeBytes

        public AliasIpRange.Builder setIpCidrRangeBytes​(com.google.protobuf.ByteString value)
         The IP alias ranges to allocate for this interface. This IP CIDR range must belong to the specified subnetwork and cannot contain IP addresses reserved by system or used by other network interfaces. This range may be a single IP address (such as 10.2.3.4), a netmask (such as /24) or a CIDR-formatted string (such as 10.1.2.0/24).
         
        optional string ip_cidr_range = 98117322;
        Parameters:
        value - The bytes for ipCidrRange to set.
        Returns:
        This builder for chaining.
      • hasSubnetworkRangeName

        public boolean hasSubnetworkRangeName()
         The name of a subnetwork secondary IP range from which to allocate an IP alias range. If not specified, the primary range of the subnetwork is used.
         
        optional string subnetwork_range_name = 387995966;
        Specified by:
        hasSubnetworkRangeName in interface AliasIpRangeOrBuilder
        Returns:
        Whether the subnetworkRangeName field is set.
      • getSubnetworkRangeName

        public String getSubnetworkRangeName()
         The name of a subnetwork secondary IP range from which to allocate an IP alias range. If not specified, the primary range of the subnetwork is used.
         
        optional string subnetwork_range_name = 387995966;
        Specified by:
        getSubnetworkRangeName in interface AliasIpRangeOrBuilder
        Returns:
        The subnetworkRangeName.
      • getSubnetworkRangeNameBytes

        public com.google.protobuf.ByteString getSubnetworkRangeNameBytes()
         The name of a subnetwork secondary IP range from which to allocate an IP alias range. If not specified, the primary range of the subnetwork is used.
         
        optional string subnetwork_range_name = 387995966;
        Specified by:
        getSubnetworkRangeNameBytes in interface AliasIpRangeOrBuilder
        Returns:
        The bytes for subnetworkRangeName.
      • setSubnetworkRangeName

        public AliasIpRange.Builder setSubnetworkRangeName​(String value)
         The name of a subnetwork secondary IP range from which to allocate an IP alias range. If not specified, the primary range of the subnetwork is used.
         
        optional string subnetwork_range_name = 387995966;
        Parameters:
        value - The subnetworkRangeName to set.
        Returns:
        This builder for chaining.
      • clearSubnetworkRangeName

        public AliasIpRange.Builder clearSubnetworkRangeName()
         The name of a subnetwork secondary IP range from which to allocate an IP alias range. If not specified, the primary range of the subnetwork is used.
         
        optional string subnetwork_range_name = 387995966;
        Returns:
        This builder for chaining.
      • setSubnetworkRangeNameBytes

        public AliasIpRange.Builder setSubnetworkRangeNameBytes​(com.google.protobuf.ByteString value)
         The name of a subnetwork secondary IP range from which to allocate an IP alias range. If not specified, the primary range of the subnetwork is used.
         
        optional string subnetwork_range_name = 387995966;
        Parameters:
        value - The bytes for subnetworkRangeName to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final AliasIpRange.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AliasIpRange.Builder>
      • mergeUnknownFields

        public final AliasIpRange.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AliasIpRange.Builder>