- 1.69.0 (latest)
- 1.67.0
- 1.66.0
- 1.63.0
- 1.62.0
- 1.61.0
- 1.59.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.48.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.36.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.0
- 1.11.0
- 1.10.0
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.9
- 1.1.1
- 1.0.0
- 0.5.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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > InternalRange.BuilderImplements
InternalRangeOrBuilderStatic 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 |
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 |
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 |
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 |
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 |
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 |
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 |
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter | |
---|---|
Name | Description |
number |
int |
Returns | |
---|---|
Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter | |
---|---|
Name | Description |
number |
int |
Returns | |
---|---|
Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public InternalRange.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
InternalRange.Builder |
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 |
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 |
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 |
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 |
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. |