Class InternalRange.Builder (1.69.0)

public static final class InternalRange.Builder extends GeneratedMessageV3.Builder<InternalRange.Builder> implements InternalRangeOrBuilder

The internal range resource for IPAM operations within a VPC network. Used to represent a private address range along with behavioral characteristics of that range (its usage and peering behavior). Networking resources can link to this range if they are created as belonging to it.

Protobuf type google.cloud.networkconnectivity.v1.InternalRange

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllExcludeCidrRanges(Iterable<String> values)

public InternalRange.Builder addAllExcludeCidrRanges(Iterable<String> values)

Optional. ExcludeCidrRanges flag. Specifies a set of CIDR blocks that allows exclusion of particular CIDR ranges from the auto-allocation process, without having to reserve these blocks

repeated string exclude_cidr_ranges = 17 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The excludeCidrRanges to add.

Returns
Type Description
InternalRange.Builder

This builder for chaining.

addAllOverlaps(Iterable<? extends InternalRange.Overlap> values)

public InternalRange.Builder addAllOverlaps(Iterable<? extends InternalRange.Overlap> values)

Optional. Types of resources that are allowed to overlap with the current internal range.

repeated .google.cloud.networkconnectivity.v1.InternalRange.Overlap overlaps = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.networkconnectivity.v1.InternalRange.Overlap>

The overlaps to add.

Returns
Type Description
InternalRange.Builder

This builder for chaining.

addAllOverlapsValue(Iterable<Integer> values)

public InternalRange.Builder addAllOverlapsValue(Iterable<Integer> values)

Optional. Types of resources that are allowed to overlap with the current internal range.

repeated .google.cloud.networkconnectivity.v1.InternalRange.Overlap overlaps = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for overlaps to add.

Returns
Type Description
InternalRange.Builder

This builder for chaining.

addAllTargetCidrRange(Iterable<String> values)

public InternalRange.Builder addAllTargetCidrRange(Iterable<String> values)

Optional. Can be set to narrow down or pick a different address space while searching for a free range. If not set, defaults to the "10.0.0.0/8" address space. This can be used to search in other rfc-1918 address spaces like "172.16.0.0/12" and "192.168.0.0/16" or non-rfc-1918 address spaces used in the VPC.

repeated string target_cidr_range = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The targetCidrRange to add.

Returns
Type Description
InternalRange.Builder

This builder for chaining.

addAllUsers(Iterable<String> values)

public InternalRange.Builder addAllUsers(Iterable<String> values)

Output only. The list of resources that refer to this internal range. Resources that use the internal range for their range allocation are referred to as users of the range. Other resources mark themselves as users while doing so by creating a reference to this internal range. Having a user, based on this reference, prevents deletion of the internal range referred to. Can be empty.

repeated string users = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<String>

The users to add.

Returns
Type Description
InternalRange.Builder

This builder for chaining.

addExcludeCidrRanges(String value)

public InternalRange.Builder addExcludeCidrRanges(String value)

Optional. ExcludeCidrRanges flag. Specifies a set of CIDR blocks that allows exclusion of particular CIDR ranges from the auto-allocation process, without having to reserve these blocks

repeated string exclude_cidr_ranges = 17 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The excludeCidrRanges to add.

Returns
Type Description
InternalRange.Builder

This builder for chaining.

addExcludeCidrRangesBytes(ByteString value)

public InternalRange.Builder addExcludeCidrRangesBytes(ByteString value)

Optional. ExcludeCidrRanges flag. Specifies a set of CIDR blocks that allows exclusion of particular CIDR ranges from the auto-allocation process, without having to reserve these blocks

repeated string exclude_cidr_ranges = 17 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the excludeCidrRanges to add.

Returns
Type Description
InternalRange.Builder

This builder for chaining.

addOverlaps(InternalRange.Overlap value)

public InternalRange.Builder addOverlaps(InternalRange.Overlap value)

Optional. Types of resources that are allowed to overlap with the current internal range.

repeated .google.cloud.networkconnectivity.v1.InternalRange.Overlap overlaps = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value InternalRange.Overlap

The overlaps to add.

Returns
Type Description
InternalRange.Builder

This builder for chaining.

addOverlapsValue(int value)

public InternalRange.Builder addOverlapsValue(int value)

Optional. Types of resources that are allowed to overlap with the current internal range.

repeated .google.cloud.networkconnectivity.v1.InternalRange.Overlap overlaps = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for overlaps to add.

Returns
Type Description
InternalRange.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public InternalRange.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
InternalRange.Builder
Overrides

addTargetCidrRange(String value)

public InternalRange.Builder addTargetCidrRange(String value)

Optional. Can be set to narrow down or pick a different address space while searching for a free range. If not set, defaults to the "10.0.0.0/8" address space. This can be used to search in other rfc-1918 address spaces like "172.16.0.0/12" and "192.168.0.0/16" or non-rfc-1918 address spaces used in the VPC.

repeated string target_cidr_range = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The targetCidrRange to add.

Returns
Type Description
InternalRange.Builder

This builder for chaining.

addTargetCidrRangeBytes(ByteString value)

public InternalRange.Builder addTargetCidrRangeBytes(ByteString value)

Optional. Can be set to narrow down or pick a different address space while searching for a free range. If not set, defaults to the "10.0.0.0/8" address space. This can be used to search in other rfc-1918 address spaces like "172.16.0.0/12" and "192.168.0.0/16" or non-rfc-1918 address spaces used in the VPC.

repeated string target_cidr_range = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the targetCidrRange to add.

Returns
Type Description
InternalRange.Builder

This builder for chaining.

addUsers(String value)

public InternalRange.Builder addUsers(String value)

Output only. The list of resources that refer to this internal range. Resources that use the internal range for their range allocation are referred to as users of the range. Other resources mark themselves as users while doing so by creating a reference to this internal range. Having a user, based on this reference, prevents deletion of the internal range referred to. Can be empty.

repeated string users = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The users to add.

Returns
Type Description
InternalRange.Builder

This builder for chaining.

addUsersBytes(ByteString value)

public InternalRange.Builder addUsersBytes(ByteString value)

Output only. The list of resources that refer to this internal range. Resources that use the internal range for their range allocation are referred to as users of the range. Other resources mark themselves as users while doing so by creating a reference to this internal range. Having a user, based on this reference, prevents deletion of the internal range referred to. Can be empty.

repeated string users = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes of the users to add.

Returns
Type Description
InternalRange.Builder

This builder for chaining.

build()

public InternalRange build()
Returns
Type Description
InternalRange

buildPartial()

public InternalRange buildPartial()
Returns
Type Description
InternalRange

clear()

public InternalRange.Builder clear()
Returns
Type Description
InternalRange.Builder
Overrides

clearAllocationOptions()

public InternalRange.Builder clearAllocationOptions()

Optional. Range auto-allocation options, may be set only when auto-allocation is selected by not setting ip_cidr_range (and setting prefix_length).

.google.cloud.networkconnectivity.v1.InternalRange.AllocationOptions allocation_options = 16 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InternalRange.Builder

clearCreateTime()

public InternalRange.Builder clearCreateTime()

Time when the internal range was created.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
InternalRange.Builder

clearDescription()

public InternalRange.Builder clearDescription()

Optional. A description of this resource.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InternalRange.Builder

This builder for chaining.

clearExcludeCidrRanges()

public InternalRange.Builder clearExcludeCidrRanges()

Optional. ExcludeCidrRanges flag. Specifies a set of CIDR blocks that allows exclusion of particular CIDR ranges from the auto-allocation process, without having to reserve these blocks

repeated string exclude_cidr_ranges = 17 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InternalRange.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public InternalRange.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
InternalRange.Builder
Overrides

clearImmutable()

public InternalRange.Builder clearImmutable()

Optional. Immutable ranges cannot have their fields modified, except for labels and description.

bool immutable = 15 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InternalRange.Builder

This builder for chaining.

clearIpCidrRange()

public InternalRange.Builder clearIpCidrRange()

Optional. The IP range that this internal range defines. NOTE: IPv6 ranges are limited to usage=EXTERNAL_TO_VPC and peering=FOR_SELF. NOTE: For IPv6 Ranges this field is compulsory, i.e. the address range must be specified explicitly.

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

Returns
Type Description
InternalRange.Builder

This builder for chaining.

clearLabels()

public InternalRange.Builder clearLabels()
Returns
Type Description
InternalRange.Builder

clearMigration()

public InternalRange.Builder clearMigration()

Optional. Must be present if usage is set to FOR_MIGRATION.

.google.cloud.networkconnectivity.v1.InternalRange.Migration migration = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InternalRange.Builder

clearName()

public InternalRange.Builder clearName()

Identifier. The name of an internal range. Format: projects/{project}/locations/{location}/internalRanges/{internal_range} See: https://google.aip.dev/122#fields-representing-resource-names

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
InternalRange.Builder

This builder for chaining.

clearNetwork()

public InternalRange.Builder clearNetwork()

Immutable. The URL or resource ID of the network in which to reserve the internal range. The network cannot be deleted if there are any reserved internal ranges referring to it. Legacy networks are not supported. For example: https://www.googleapis.com/compute/v1/projects/{project}/locations/global/networks/{network} projects/{project}/locations/global/networks/{network} {network}

string network = 7 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
InternalRange.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public InternalRange.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
InternalRange.Builder
Overrides

clearOverlaps()

public InternalRange.Builder clearOverlaps()

Optional. Types of resources that are allowed to overlap with the current internal range.

repeated .google.cloud.networkconnectivity.v1.InternalRange.Overlap overlaps = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InternalRange.Builder

This builder for chaining.

clearPeering()

public InternalRange.Builder clearPeering()

Optional. The type of peering set for this internal range.

.google.cloud.networkconnectivity.v1.InternalRange.Peering peering = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InternalRange.Builder

This builder for chaining.

clearPrefixLength()

public InternalRange.Builder clearPrefixLength()

Optional. An alternate to ip_cidr_range. Can be set when trying to create an IPv4 reservation that automatically finds a free range of the given size. If both ip_cidr_range and prefix_length are set, there is an error if the range sizes do not match. Can also be used during updates to change the range size. NOTE: For IPv6 this field only works if ip_cidr_range is set as well, and both fields must match. In other words, with IPv6 this field only works as a redundant parameter.

int32 prefix_length = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InternalRange.Builder

This builder for chaining.

clearTargetCidrRange()

public InternalRange.Builder clearTargetCidrRange()

Optional. Can be set to narrow down or pick a different address space while searching for a free range. If not set, defaults to the "10.0.0.0/8" address space. This can be used to search in other rfc-1918 address spaces like "172.16.0.0/12" and "192.168.0.0/16" or non-rfc-1918 address spaces used in the VPC.

repeated string target_cidr_range = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InternalRange.Builder

This builder for chaining.

clearUpdateTime()

public InternalRange.Builder clearUpdateTime()

Time when the internal range was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
Type Description
InternalRange.Builder

clearUsage()

public InternalRange.Builder clearUsage()

Optional. The type of usage set for this InternalRange.

.google.cloud.networkconnectivity.v1.InternalRange.Usage usage = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InternalRange.Builder

This builder for chaining.

clearUsers()

public InternalRange.Builder clearUsers()

Output only. The list of resources that refer to this internal range. Resources that use the internal range for their range allocation are referred to as users of the range. Other resources mark themselves as users while doing so by creating a reference to this internal range. Having a user, based on this reference, prevents deletion of the internal range referred to. Can be empty.

repeated string users = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
InternalRange.Builder

This builder for chaining.

clone()

public InternalRange.Builder clone()
Returns
Type Description
InternalRange.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

User-defined labels.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
boolean

getAllocationOptions()

public InternalRange.AllocationOptions getAllocationOptions()

Optional. Range auto-allocation options, may be set only when auto-allocation is selected by not setting ip_cidr_range (and setting prefix_length).

.google.cloud.networkconnectivity.v1.InternalRange.AllocationOptions allocation_options = 16 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InternalRange.AllocationOptions

The allocationOptions.

getAllocationOptionsBuilder()

public InternalRange.AllocationOptions.Builder getAllocationOptionsBuilder()

Optional. Range auto-allocation options, may be set only when auto-allocation is selected by not setting ip_cidr_range (and setting prefix_length).

.google.cloud.networkconnectivity.v1.InternalRange.AllocationOptions allocation_options = 16 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InternalRange.AllocationOptions.Builder

getAllocationOptionsOrBuilder()

public InternalRange.AllocationOptionsOrBuilder getAllocationOptionsOrBuilder()

Optional. Range auto-allocation options, may be set only when auto-allocation is selected by not setting ip_cidr_range (and setting prefix_length).

.google.cloud.networkconnectivity.v1.InternalRange.AllocationOptions allocation_options = 16 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InternalRange.AllocationOptionsOrBuilder

getCreateTime()

public Timestamp getCreateTime()

Time when the internal range was created.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Time when the internal range was created.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Time when the internal range was created.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public InternalRange getDefaultInstanceForType()
Returns
Type Description
InternalRange

getDescription()

public String getDescription()

Optional. A description of this resource.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. A description of this resource.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getExcludeCidrRanges(int index)

public String getExcludeCidrRanges(int index)

Optional. ExcludeCidrRanges flag. Specifies a set of CIDR blocks that allows exclusion of particular CIDR ranges from the auto-allocation process, without having to reserve these blocks

repeated string exclude_cidr_ranges = 17 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The excludeCidrRanges at the given index.

getExcludeCidrRangesBytes(int index)

public ByteString getExcludeCidrRangesBytes(int index)

Optional. ExcludeCidrRanges flag. Specifies a set of CIDR blocks that allows exclusion of particular CIDR ranges from the auto-allocation process, without having to reserve these blocks

repeated string exclude_cidr_ranges = 17 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the excludeCidrRanges at the given index.

getExcludeCidrRangesCount()

public int getExcludeCidrRangesCount()

Optional. ExcludeCidrRanges flag. Specifies a set of CIDR blocks that allows exclusion of particular CIDR ranges from the auto-allocation process, without having to reserve these blocks

repeated string exclude_cidr_ranges = 17 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of excludeCidrRanges.

getExcludeCidrRangesList()

public ProtocolStringList getExcludeCidrRangesList()

Optional. ExcludeCidrRanges flag. Specifies a set of CIDR blocks that allows exclusion of particular CIDR ranges from the auto-allocation process, without having to reserve these blocks

repeated string exclude_cidr_ranges = 17 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the excludeCidrRanges.

getImmutable()

public boolean getImmutable()

Optional. Immutable ranges cannot have their fields modified, except for labels and description.

bool immutable = 15 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The immutable.

getIpCidrRange()

public String getIpCidrRange()

Optional. The IP range that this internal range defines. NOTE: IPv6 ranges are limited to usage=EXTERNAL_TO_VPC and peering=FOR_SELF. NOTE: For IPv6 Ranges this field is compulsory, i.e. the address range must be specified explicitly.

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

Returns
Type Description
String

The ipCidrRange.

getIpCidrRangeBytes()

public ByteString getIpCidrRangeBytes()

Optional. The IP range that this internal range defines. NOTE: IPv6 ranges are limited to usage=EXTERNAL_TO_VPC and peering=FOR_SELF. NOTE: For IPv6 Ranges this field is compulsory, i.e. the address range must be specified explicitly.

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

Returns
Type Description
ByteString

The bytes for ipCidrRange.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

User-defined labels.

map<string, string> labels = 4;

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

User-defined labels.

map<string, string> labels = 4;

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

User-defined labels.

map<string, string> labels = 4;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

User-defined labels.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
String

getMigration()

public InternalRange.Migration getMigration()

Optional. Must be present if usage is set to FOR_MIGRATION.

.google.cloud.networkconnectivity.v1.InternalRange.Migration migration = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InternalRange.Migration

The migration.

getMigrationBuilder()

public InternalRange.Migration.Builder getMigrationBuilder()

Optional. Must be present if usage is set to FOR_MIGRATION.

.google.cloud.networkconnectivity.v1.InternalRange.Migration migration = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InternalRange.Migration.Builder

getMigrationOrBuilder()

public InternalRange.MigrationOrBuilder getMigrationOrBuilder()

Optional. Must be present if usage is set to FOR_MIGRATION.

.google.cloud.networkconnectivity.v1.InternalRange.Migration migration = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InternalRange.MigrationOrBuilder

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

Identifier. The name of an internal range. Format: projects/{project}/locations/{location}/internalRanges/{internal_range} See: https://google.aip.dev/122#fields-representing-resource-names

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The name of an internal range. Format: projects/{project}/locations/{location}/internalRanges/{internal_range} See: https://google.aip.dev/122#fields-representing-resource-names

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getNetwork()

public String getNetwork()

Immutable. The URL or resource ID of the network in which to reserve the internal range. The network cannot be deleted if there are any reserved internal ranges referring to it. Legacy networks are not supported. For example: https://www.googleapis.com/compute/v1/projects/{project}/locations/global/networks/{network} projects/{project}/locations/global/networks/{network} {network}

string network = 7 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The network.

getNetworkBytes()

public ByteString getNetworkBytes()

Immutable. The URL or resource ID of the network in which to reserve the internal range. The network cannot be deleted if there are any reserved internal ranges referring to it. Legacy networks are not supported. For example: https://www.googleapis.com/compute/v1/projects/{project}/locations/global/networks/{network} projects/{project}/locations/global/networks/{network} {network}

string network = 7 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for network.

getOverlaps(int index)

public InternalRange.Overlap getOverlaps(int index)

Optional. Types of resources that are allowed to overlap with the current internal range.

repeated .google.cloud.networkconnectivity.v1.InternalRange.Overlap overlaps = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
InternalRange.Overlap

The overlaps at the given index.

getOverlapsCount()

public int getOverlapsCount()

Optional. Types of resources that are allowed to overlap with the current internal range.

repeated .google.cloud.networkconnectivity.v1.InternalRange.Overlap overlaps = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of overlaps.

getOverlapsList()

public List<InternalRange.Overlap> getOverlapsList()

Optional. Types of resources that are allowed to overlap with the current internal range.

repeated .google.cloud.networkconnectivity.v1.InternalRange.Overlap overlaps = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Overlap>

A list containing the overlaps.

getOverlapsValue(int index)

public int getOverlapsValue(int index)

Optional. Types of resources that are allowed to overlap with the current internal range.

repeated .google.cloud.networkconnectivity.v1.InternalRange.Overlap overlaps = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of overlaps at the given index.

getOverlapsValueList()

public List<Integer> getOverlapsValueList()

Optional. Types of resources that are allowed to overlap with the current internal range.

repeated .google.cloud.networkconnectivity.v1.InternalRange.Overlap overlaps = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for overlaps.

getPeering()

public InternalRange.Peering getPeering()

Optional. The type of peering set for this internal range.

.google.cloud.networkconnectivity.v1.InternalRange.Peering peering = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InternalRange.Peering

The peering.

getPeeringValue()

public int getPeeringValue()

Optional. The type of peering set for this internal range.

.google.cloud.networkconnectivity.v1.InternalRange.Peering peering = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for peering.

getPrefixLength()

public int getPrefixLength()

Optional. An alternate to ip_cidr_range. Can be set when trying to create an IPv4 reservation that automatically finds a free range of the given size. If both ip_cidr_range and prefix_length are set, there is an error if the range sizes do not match. Can also be used during updates to change the range size. NOTE: For IPv6 this field only works if ip_cidr_range is set as well, and both fields must match. In other words, with IPv6 this field only works as a redundant parameter.

int32 prefix_length = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The prefixLength.

getTargetCidrRange(int index)

public String getTargetCidrRange(int index)

Optional. Can be set to narrow down or pick a different address space while searching for a free range. If not set, defaults to the "10.0.0.0/8" address space. This can be used to search in other rfc-1918 address spaces like "172.16.0.0/12" and "192.168.0.0/16" or non-rfc-1918 address spaces used in the VPC.

repeated string target_cidr_range = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The targetCidrRange at the given index.

getTargetCidrRangeBytes(int index)

public ByteString getTargetCidrRangeBytes(int index)

Optional. Can be set to narrow down or pick a different address space while searching for a free range. If not set, defaults to the "10.0.0.0/8" address space. This can be used to search in other rfc-1918 address spaces like "172.16.0.0/12" and "192.168.0.0/16" or non-rfc-1918 address spaces used in the VPC.

repeated string target_cidr_range = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the targetCidrRange at the given index.

getTargetCidrRangeCount()

public int getTargetCidrRangeCount()

Optional. Can be set to narrow down or pick a different address space while searching for a free range. If not set, defaults to the "10.0.0.0/8" address space. This can be used to search in other rfc-1918 address spaces like "172.16.0.0/12" and "192.168.0.0/16" or non-rfc-1918 address spaces used in the VPC.

repeated string target_cidr_range = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of targetCidrRange.

getTargetCidrRangeList()

public ProtocolStringList getTargetCidrRangeList()

Optional. Can be set to narrow down or pick a different address space while searching for a free range. If not set, defaults to the "10.0.0.0/8" address space. This can be used to search in other rfc-1918 address spaces like "172.16.0.0/12" and "192.168.0.0/16" or non-rfc-1918 address spaces used in the VPC.

repeated string target_cidr_range = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the targetCidrRange.

getUpdateTime()

public Timestamp getUpdateTime()

Time when the internal range was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Time when the internal range was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Time when the internal range was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
Type Description
TimestampOrBuilder

getUsage()

public InternalRange.Usage getUsage()

Optional. The type of usage set for this InternalRange.

.google.cloud.networkconnectivity.v1.InternalRange.Usage usage = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InternalRange.Usage

The usage.

getUsageValue()

public int getUsageValue()

Optional. The type of usage set for this InternalRange.

.google.cloud.networkconnectivity.v1.InternalRange.Usage usage = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for usage.

getUsers(int index)

public String getUsers(int index)

Output only. The list of resources that refer to this internal range. Resources that use the internal range for their range allocation are referred to as users of the range. Other resources mark themselves as users while doing so by creating a reference to this internal range. Having a user, based on this reference, prevents deletion of the internal range referred to. Can be empty.

repeated string users = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The users at the given index.

getUsersBytes(int index)

public ByteString getUsersBytes(int index)

Output only. The list of resources that refer to this internal range. Resources that use the internal range for their range allocation are referred to as users of the range. Other resources mark themselves as users while doing so by creating a reference to this internal range. Having a user, based on this reference, prevents deletion of the internal range referred to. Can be empty.

repeated string users = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the users at the given index.

getUsersCount()

public int getUsersCount()

Output only. The list of resources that refer to this internal range. Resources that use the internal range for their range allocation are referred to as users of the range. Other resources mark themselves as users while doing so by creating a reference to this internal range. Having a user, based on this reference, prevents deletion of the internal range referred to. Can be empty.

repeated string users = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of users.

getUsersList()

public ProtocolStringList getUsersList()

Output only. The list of resources that refer to this internal range. Resources that use the internal range for their range allocation are referred to as users of the range. Other resources mark themselves as users while doing so by creating a reference to this internal range. Having a user, based on this reference, prevents deletion of the internal range referred to. Can be empty.

repeated string users = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ProtocolStringList

A list containing the users.

hasAllocationOptions()

public boolean hasAllocationOptions()

Optional. Range auto-allocation options, may be set only when auto-allocation is selected by not setting ip_cidr_range (and setting prefix_length).

.google.cloud.networkconnectivity.v1.InternalRange.AllocationOptions allocation_options = 16 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the allocationOptions field is set.

hasCreateTime()

public boolean hasCreateTime()

Time when the internal range was created.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
boolean

Whether the createTime field is set.

hasMigration()

public boolean hasMigration()

Optional. Must be present if usage is set to FOR_MIGRATION.

.google.cloud.networkconnectivity.v1.InternalRange.Migration migration = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the migration field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Time when the internal range was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAllocationOptions(InternalRange.AllocationOptions value)

public InternalRange.Builder mergeAllocationOptions(InternalRange.AllocationOptions value)

Optional. Range auto-allocation options, may be set only when auto-allocation is selected by not setting ip_cidr_range (and setting prefix_length).

.google.cloud.networkconnectivity.v1.InternalRange.AllocationOptions allocation_options = 16 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value InternalRange.AllocationOptions
Returns
Type Description
InternalRange.Builder

mergeCreateTime(Timestamp value)

public InternalRange.Builder mergeCreateTime(Timestamp value)

Time when the internal range was created.

.google.protobuf.Timestamp create_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
InternalRange.Builder

mergeFrom(InternalRange other)

public InternalRange.Builder mergeFrom(InternalRange other)
Parameter
Name Description
other InternalRange
Returns
Type Description
InternalRange.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InternalRange.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InternalRange.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public InternalRange.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
InternalRange.Builder
Overrides

mergeMigration(InternalRange.Migration value)

public InternalRange.Builder mergeMigration(InternalRange.Migration value)

Optional. Must be present if usage is set to FOR_MIGRATION.

.google.cloud.networkconnectivity.v1.InternalRange.Migration migration = 14 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value InternalRange.Migration
Returns
Type Description
InternalRange.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InternalRange.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InternalRange.Builder
Overrides

mergeUpdateTime(Timestamp value)

public InternalRange.Builder mergeUpdateTime(Timestamp value)

Time when the internal range was updated.

.google.protobuf.Timestamp update_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
InternalRange.Builder

putAllLabels(Map<String,String> values)

public InternalRange.Builder putAllLabels(Map<String,String> values)

User-defined labels.

map<string, string> labels = 4;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
InternalRange.Builder

putLabels(String key, String value)

public InternalRange.Builder putLabels(String key, String value)

User-defined labels.

map<string, string> labels = 4;

Parameters
Name Description
key String
value String
Returns
Type Description
InternalRange.Builder

removeLabels(String key)

public InternalRange.Builder removeLabels(String key)

User-defined labels.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
InternalRange.Builder

setAllocationOptions(InternalRange.AllocationOptions value)

public InternalRange.Builder setAllocationOptions(InternalRange.AllocationOptions value)

Optional. Range auto-allocation options, may be set only when auto-allocation is selected by not setting ip_cidr_range (and setting prefix_length).

.google.cloud.networkconnectivity.v1.InternalRange.AllocationOptions allocation_options = 16 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value InternalRange.AllocationOptions
Returns
Type Description
InternalRange.Builder

setAllocationOptions(InternalRange.AllocationOptions.Builder builderForValue)

public InternalRange.Builder setAllocationOptions(InternalRange.AllocationOptions.Builder builderForValue)

Optional. Range auto-allocation options, may be set only when auto-allocation is selected by not setting ip_cidr_range (and setting prefix_length).

.google.cloud.networkconnectivity.v1.InternalRange.AllocationOptions allocation_options = 16 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue InternalRange.AllocationOptions.Builder
Returns
Type Description
InternalRange.Builder

setCreateTime(Timestamp value)

public InternalRange.Builder setCreateTime(Timestamp value)

Time when the internal range was created.

.google.protobuf.Timestamp create_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
InternalRange.Builder

setCreateTime(Timestamp.Builder builderForValue)

public InternalRange.Builder setCreateTime(Timestamp.Builder builderForValue)

Time when the internal range was created.

.google.protobuf.Timestamp create_time = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
InternalRange.Builder

setDescription(String value)

public InternalRange.Builder setDescription(String value)

Optional. A description of this resource.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The description to set.

Returns
Type Description
InternalRange.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public InternalRange.Builder setDescriptionBytes(ByteString value)

Optional. A description of this resource.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
InternalRange.Builder

This builder for chaining.

setExcludeCidrRanges(int index, String value)

public InternalRange.Builder setExcludeCidrRanges(int index, String value)

Optional. ExcludeCidrRanges flag. Specifies a set of CIDR blocks that allows exclusion of particular CIDR ranges from the auto-allocation process, without having to reserve these blocks

repeated string exclude_cidr_ranges = 17 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The excludeCidrRanges to set.

Returns
Type Description
InternalRange.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public InternalRange.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
InternalRange.Builder
Overrides

setImmutable(boolean value)

public InternalRange.Builder setImmutable(boolean value)

Optional. Immutable ranges cannot have their fields modified, except for labels and description.

bool immutable = 15 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The immutable to set.

Returns
Type Description
InternalRange.Builder

This builder for chaining.

setIpCidrRange(String value)

public InternalRange.Builder setIpCidrRange(String value)

Optional. The IP range that this internal range defines. NOTE: IPv6 ranges are limited to usage=EXTERNAL_TO_VPC and peering=FOR_SELF. NOTE: For IPv6 Ranges this field is compulsory, i.e. the address range must be specified explicitly.

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

Parameter
Name Description
value String

The ipCidrRange to set.

Returns
Type Description
InternalRange.Builder

This builder for chaining.

setIpCidrRangeBytes(ByteString value)

public InternalRange.Builder setIpCidrRangeBytes(ByteString value)

Optional. The IP range that this internal range defines. NOTE: IPv6 ranges are limited to usage=EXTERNAL_TO_VPC and peering=FOR_SELF. NOTE: For IPv6 Ranges this field is compulsory, i.e. the address range must be specified explicitly.

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

Parameter
Name Description
value ByteString

The bytes for ipCidrRange to set.

Returns
Type Description
InternalRange.Builder

This builder for chaining.

setMigration(InternalRange.Migration value)

public InternalRange.Builder setMigration(InternalRange.Migration value)

Optional. Must be present if usage is set to FOR_MIGRATION.

.google.cloud.networkconnectivity.v1.InternalRange.Migration migration = 14 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value InternalRange.Migration
Returns
Type Description
InternalRange.Builder

setMigration(InternalRange.Migration.Builder builderForValue)

public InternalRange.Builder setMigration(InternalRange.Migration.Builder builderForValue)

Optional. Must be present if usage is set to FOR_MIGRATION.

.google.cloud.networkconnectivity.v1.InternalRange.Migration migration = 14 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue InternalRange.Migration.Builder
Returns
Type Description
InternalRange.Builder

setName(String value)

public InternalRange.Builder setName(String value)

Identifier. The name of an internal range. Format: projects/{project}/locations/{location}/internalRanges/{internal_range} See: https://google.aip.dev/122#fields-representing-resource-names

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
InternalRange.Builder

This builder for chaining.

setNameBytes(ByteString value)

public InternalRange.Builder setNameBytes(ByteString value)

Identifier. The name of an internal range. Format: projects/{project}/locations/{location}/internalRanges/{internal_range} See: https://google.aip.dev/122#fields-representing-resource-names

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
InternalRange.Builder

This builder for chaining.

setNetwork(String value)

public InternalRange.Builder setNetwork(String value)

Immutable. The URL or resource ID of the network in which to reserve the internal range. The network cannot be deleted if there are any reserved internal ranges referring to it. Legacy networks are not supported. For example: https://www.googleapis.com/compute/v1/projects/{project}/locations/global/networks/{network} projects/{project}/locations/global/networks/{network} {network}

string network = 7 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value String

The network to set.

Returns
Type Description
InternalRange.Builder

This builder for chaining.

setNetworkBytes(ByteString value)

public InternalRange.Builder setNetworkBytes(ByteString value)

Immutable. The URL or resource ID of the network in which to reserve the internal range. The network cannot be deleted if there are any reserved internal ranges referring to it. Legacy networks are not supported. For example: https://www.googleapis.com/compute/v1/projects/{project}/locations/global/networks/{network} projects/{project}/locations/global/networks/{network} {network}

string network = 7 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value ByteString

The bytes for network to set.

Returns
Type Description
InternalRange.Builder

This builder for chaining.

setOverlaps(int index, InternalRange.Overlap value)

public InternalRange.Builder setOverlaps(int index, InternalRange.Overlap value)

Optional. Types of resources that are allowed to overlap with the current internal range.

repeated .google.cloud.networkconnectivity.v1.InternalRange.Overlap overlaps = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value InternalRange.Overlap

The overlaps to set.

Returns
Type Description
InternalRange.Builder

This builder for chaining.

setOverlapsValue(int index, int value)

public InternalRange.Builder setOverlapsValue(int index, int value)

Optional. Types of resources that are allowed to overlap with the current internal range.

repeated .google.cloud.networkconnectivity.v1.InternalRange.Overlap overlaps = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value int

The enum numeric value on the wire for overlaps to set.

Returns
Type Description
InternalRange.Builder

This builder for chaining.

setPeering(InternalRange.Peering value)

public InternalRange.Builder setPeering(InternalRange.Peering value)

Optional. The type of peering set for this internal range.

.google.cloud.networkconnectivity.v1.InternalRange.Peering peering = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value InternalRange.Peering

The peering to set.

Returns
Type Description
InternalRange.Builder

This builder for chaining.

setPeeringValue(int value)

public InternalRange.Builder setPeeringValue(int value)

Optional. The type of peering set for this internal range.

.google.cloud.networkconnectivity.v1.InternalRange.Peering peering = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for peering to set.

Returns
Type Description
InternalRange.Builder

This builder for chaining.

setPrefixLength(int value)

public InternalRange.Builder setPrefixLength(int value)

Optional. An alternate to ip_cidr_range. Can be set when trying to create an IPv4 reservation that automatically finds a free range of the given size. If both ip_cidr_range and prefix_length are set, there is an error if the range sizes do not match. Can also be used during updates to change the range size. NOTE: For IPv6 this field only works if ip_cidr_range is set as well, and both fields must match. In other words, with IPv6 this field only works as a redundant parameter.

int32 prefix_length = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The prefixLength to set.

Returns
Type Description
InternalRange.Builder

This builder for chaining.

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

public InternalRange.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
InternalRange.Builder
Overrides

setTargetCidrRange(int index, String value)

public InternalRange.Builder setTargetCidrRange(int index, String value)

Optional. Can be set to narrow down or pick a different address space while searching for a free range. If not set, defaults to the "10.0.0.0/8" address space. This can be used to search in other rfc-1918 address spaces like "172.16.0.0/12" and "192.168.0.0/16" or non-rfc-1918 address spaces used in the VPC.

repeated string target_cidr_range = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The targetCidrRange to set.

Returns
Type Description
InternalRange.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final InternalRange.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InternalRange.Builder
Overrides

setUpdateTime(Timestamp value)

public InternalRange.Builder setUpdateTime(Timestamp value)

Time when the internal range was updated.

.google.protobuf.Timestamp update_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
InternalRange.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public InternalRange.Builder setUpdateTime(Timestamp.Builder builderForValue)

Time when the internal range was updated.

.google.protobuf.Timestamp update_time = 3;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
InternalRange.Builder

setUsage(InternalRange.Usage value)

public InternalRange.Builder setUsage(InternalRange.Usage value)

Optional. The type of usage set for this InternalRange.

.google.cloud.networkconnectivity.v1.InternalRange.Usage usage = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value InternalRange.Usage

The usage to set.

Returns
Type Description
InternalRange.Builder

This builder for chaining.

setUsageValue(int value)

public InternalRange.Builder setUsageValue(int value)

Optional. The type of usage set for this InternalRange.

.google.cloud.networkconnectivity.v1.InternalRange.Usage usage = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for usage to set.

Returns
Type Description
InternalRange.Builder

This builder for chaining.

setUsers(int index, String value)

public InternalRange.Builder setUsers(int index, String value)

Output only. The list of resources that refer to this internal range. Resources that use the internal range for their range allocation are referred to as users of the range. Other resources mark themselves as users while doing so by creating a reference to this internal range. Having a user, based on this reference, prevents deletion of the internal range referred to. Can be empty.

repeated string users = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int

The index to set the value at.

value String

The users to set.

Returns
Type Description
InternalRange.Builder

This builder for chaining.