Class AliasIpRange.Builder (0.32.0)

publicstaticfinalclass AliasIpRange.BuilderextendsGeneratedMessageV3.Builder<AliasIpRange.Builder>implementsAliasIpRangeOrBuilder

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

Protobuf type google.cloud.backupdr.v1.AliasIpRange

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicAliasIpRange.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AliasIpRange.Builder
Overrides

build()

publicAliasIpRangebuild()
Returns
Type Description
AliasIpRange

buildPartial()

publicAliasIpRangebuildPartial()
Returns
Type Description
AliasIpRange

clear()

publicAliasIpRange.Builderclear()
Returns
Type Description
AliasIpRange.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicAliasIpRange.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AliasIpRange.Builder
Overrides

clearIpCidrRange()

publicAliasIpRange.BuilderclearIpCidrRange()

Optional. The IP alias ranges to allocate for this interface.

optional string ip_cidr_range = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AliasIpRange.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicAliasIpRange.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AliasIpRange.Builder
Overrides

clearSubnetworkRangeName()

publicAliasIpRange.BuilderclearSubnetworkRangeName()

Optional. 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 = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AliasIpRange.Builder

This builder for chaining.

clone()

publicAliasIpRange.Builderclone()
Returns
Type Description
AliasIpRange.Builder
Overrides

getDefaultInstanceForType()

publicAliasIpRangegetDefaultInstanceForType()
Returns
Type Description
AliasIpRange

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getIpCidrRange()

publicStringgetIpCidrRange()

Optional. The IP alias ranges to allocate for this interface.

optional string ip_cidr_range = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The ipCidrRange.

getIpCidrRangeBytes()

publicByteStringgetIpCidrRangeBytes()

Optional. The IP alias ranges to allocate for this interface.

optional string ip_cidr_range = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for ipCidrRange.

getSubnetworkRangeName()

publicStringgetSubnetworkRangeName()

Optional. 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 = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The subnetworkRangeName.

getSubnetworkRangeNameBytes()

publicByteStringgetSubnetworkRangeNameBytes()

Optional. 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 = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for subnetworkRangeName.

hasIpCidrRange()

publicbooleanhasIpCidrRange()

Optional. The IP alias ranges to allocate for this interface.

optional string ip_cidr_range = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the ipCidrRange field is set.

hasSubnetworkRangeName()

publicbooleanhasSubnetworkRangeName()

Optional. 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 = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the subnetworkRangeName field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AliasIpRange other)

publicAliasIpRange.BuildermergeFrom(AliasIpRangeother)
Parameter
Name Description
other AliasIpRange
Returns
Type Description
AliasIpRange.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicAliasIpRange.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AliasIpRange.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicAliasIpRange.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
AliasIpRange.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalAliasIpRange.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AliasIpRange.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

publicAliasIpRange.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AliasIpRange.Builder
Overrides

setIpCidrRange(String value)

publicAliasIpRange.BuildersetIpCidrRange(Stringvalue)

Optional. The IP alias ranges to allocate for this interface.

optional string ip_cidr_range = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The ipCidrRange to set.

Returns
Type Description
AliasIpRange.Builder

This builder for chaining.

setIpCidrRangeBytes(ByteString value)

publicAliasIpRange.BuildersetIpCidrRangeBytes(ByteStringvalue)

Optional. The IP alias ranges to allocate for this interface.

optional string ip_cidr_range = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for ipCidrRange to set.

Returns
Type Description
AliasIpRange.Builder

This builder for chaining.

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

publicAliasIpRange.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AliasIpRange.Builder
Overrides

setSubnetworkRangeName(String value)

publicAliasIpRange.BuildersetSubnetworkRangeName(Stringvalue)

Optional. 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 = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The subnetworkRangeName to set.

Returns
Type Description
AliasIpRange.Builder

This builder for chaining.

setSubnetworkRangeNameBytes(ByteString value)

publicAliasIpRange.BuildersetSubnetworkRangeNameBytes(ByteStringvalue)

Optional. 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 = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for subnetworkRangeName to set.

Returns
Type Description
AliasIpRange.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalAliasIpRange.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AliasIpRange.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.