Class AliasIpRange.Builder (1.41.0)

public static final class AliasIpRange.Builder extends GeneratedMessageV3.Builder<AliasIpRange.Builder> implements AliasIpRangeOrBuilder

An alias IP range attached to an instance's network interface.

Protobuf type google.cloud.compute.v1.AliasIpRange

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AliasIpRange.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AliasIpRange.Builder
Overrides

build()

public AliasIpRange build()
Returns
TypeDescription
AliasIpRange

buildPartial()

public AliasIpRange buildPartial()
Returns
TypeDescription
AliasIpRange

clear()

public AliasIpRange.Builder clear()
Returns
TypeDescription
AliasIpRange.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AliasIpRange.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AliasIpRange.Builder
Overrides

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
TypeDescription
AliasIpRange.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AliasIpRange.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AliasIpRange.Builder
Overrides

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
TypeDescription
AliasIpRange.Builder

This builder for chaining.

clone()

public AliasIpRange.Builder clone()
Returns
TypeDescription
AliasIpRange.Builder
Overrides

getDefaultInstanceForType()

public AliasIpRange getDefaultInstanceForType()
Returns
TypeDescription
AliasIpRange

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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;

Returns
TypeDescription
String

The ipCidrRange.

getIpCidrRangeBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for ipCidrRange.

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;

Returns
TypeDescription
String

The subnetworkRangeName.

getSubnetworkRangeNameBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for subnetworkRangeName.

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;

Returns
TypeDescription
boolean

Whether the ipCidrRange field is set.

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;

Returns
TypeDescription
boolean

Whether the subnetworkRangeName field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AliasIpRange other)

public AliasIpRange.Builder mergeFrom(AliasIpRange other)
Parameter
NameDescription
otherAliasIpRange
Returns
TypeDescription
AliasIpRange.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AliasIpRange.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AliasIpRange.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AliasIpRange.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AliasIpRange.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AliasIpRange.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AliasIpRange.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public AliasIpRange.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AliasIpRange.Builder
Overrides

setIpCidrRange(String value)

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;

Parameter
NameDescription
valueString

The ipCidrRange to set.

Returns
TypeDescription
AliasIpRange.Builder

This builder for chaining.

setIpCidrRangeBytes(ByteString value)

public AliasIpRange.Builder setIpCidrRangeBytes(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;

Parameter
NameDescription
valueByteString

The bytes for ipCidrRange to set.

Returns
TypeDescription
AliasIpRange.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AliasIpRange.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AliasIpRange.Builder
Overrides

setSubnetworkRangeName(String value)

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;

Parameter
NameDescription
valueString

The subnetworkRangeName to set.

Returns
TypeDescription
AliasIpRange.Builder

This builder for chaining.

setSubnetworkRangeNameBytes(ByteString value)

public AliasIpRange.Builder setSubnetworkRangeNameBytes(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;

Parameter
NameDescription
valueByteString

The bytes for subnetworkRangeName to set.

Returns
TypeDescription
AliasIpRange.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AliasIpRange.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AliasIpRange.Builder
Overrides