- 1.57.0 (latest)
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.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.37.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.25.0
- 1.24.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.1
- 1.11.0
- 1.9.1
- 1.8.1
- 1.7.2
- 1.6.0-beta
public static final class UsableSubnetwork.Builder extends GeneratedMessageV3.Builder<UsableSubnetwork.Builder> implements UsableSubnetworkOrBuilder
Subnetwork which the current user has compute.subnetworks.use permission on.
Protobuf type google.cloud.compute.v1.UsableSubnetwork
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > UsableSubnetwork.BuilderImplements
UsableSubnetworkOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllSecondaryIpRanges(Iterable<? extends UsableSubnetworkSecondaryRange> values)
public UsableSubnetwork.Builder addAllSecondaryIpRanges(Iterable<? extends UsableSubnetworkSecondaryRange> values)
Secondary IP ranges.
repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;
Name | Description |
values | Iterable<? extends com.google.cloud.compute.v1.UsableSubnetworkSecondaryRange> |
Type | Description |
UsableSubnetwork.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public UsableSubnetwork.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
UsableSubnetwork.Builder |
addSecondaryIpRanges(UsableSubnetworkSecondaryRange value)
public UsableSubnetwork.Builder addSecondaryIpRanges(UsableSubnetworkSecondaryRange value)
Secondary IP ranges.
repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;
Name | Description |
value | UsableSubnetworkSecondaryRange |
Type | Description |
UsableSubnetwork.Builder |
addSecondaryIpRanges(UsableSubnetworkSecondaryRange.Builder builderForValue)
public UsableSubnetwork.Builder addSecondaryIpRanges(UsableSubnetworkSecondaryRange.Builder builderForValue)
Secondary IP ranges.
repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;
Name | Description |
builderForValue | UsableSubnetworkSecondaryRange.Builder |
Type | Description |
UsableSubnetwork.Builder |
addSecondaryIpRanges(int index, UsableSubnetworkSecondaryRange value)
public UsableSubnetwork.Builder addSecondaryIpRanges(int index, UsableSubnetworkSecondaryRange value)
Secondary IP ranges.
repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;
Name | Description |
index | int |
value | UsableSubnetworkSecondaryRange |
Type | Description |
UsableSubnetwork.Builder |
addSecondaryIpRanges(int index, UsableSubnetworkSecondaryRange.Builder builderForValue)
public UsableSubnetwork.Builder addSecondaryIpRanges(int index, UsableSubnetworkSecondaryRange.Builder builderForValue)
Secondary IP ranges.
repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;
Name | Description |
index | int |
builderForValue | UsableSubnetworkSecondaryRange.Builder |
Type | Description |
UsableSubnetwork.Builder |
addSecondaryIpRangesBuilder()
public UsableSubnetworkSecondaryRange.Builder addSecondaryIpRangesBuilder()
Secondary IP ranges.
repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;
Type | Description |
UsableSubnetworkSecondaryRange.Builder |
addSecondaryIpRangesBuilder(int index)
public UsableSubnetworkSecondaryRange.Builder addSecondaryIpRangesBuilder(int index)
Secondary IP ranges.
repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;
Name | Description |
index | int |
Type | Description |
UsableSubnetworkSecondaryRange.Builder |
build()
public UsableSubnetwork build()
Type | Description |
UsableSubnetwork |
buildPartial()
public UsableSubnetwork buildPartial()
Type | Description |
UsableSubnetwork |
clear()
public UsableSubnetwork.Builder clear()
Type | Description |
UsableSubnetwork.Builder |
clearExternalIpv6Prefix()
public UsableSubnetwork.Builder clearExternalIpv6Prefix()
[Output Only] The external IPv6 address range that is assigned to this subnetwork.
optional string external_ipv6_prefix = 139299190;
Type | Description |
UsableSubnetwork.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public UsableSubnetwork.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
UsableSubnetwork.Builder |
clearInternalIpv6Prefix()
public UsableSubnetwork.Builder clearInternalIpv6Prefix()
[Output Only] The internal IPv6 address range that is assigned to this subnetwork.
optional string internal_ipv6_prefix = 506270056;
Type | Description |
UsableSubnetwork.Builder | This builder for chaining. |
clearIpCidrRange()
public UsableSubnetwork.Builder clearIpCidrRange()
The range of internal addresses that are owned by this subnetwork.
optional string ip_cidr_range = 98117322;
Type | Description |
UsableSubnetwork.Builder | This builder for chaining. |
clearIpv6AccessType()
public UsableSubnetwork.Builder clearIpv6AccessType()
The access type of IPv6 address this subnet holds. It's immutable and can only be specified during creation or the first time the subnet is updated into IPV4_IPV6 dual stack. Check the Ipv6AccessType enum for the list of possible values.
optional string ipv6_access_type = 504658653;
Type | Description |
UsableSubnetwork.Builder | This builder for chaining. |
clearNetwork()
public UsableSubnetwork.Builder clearNetwork()
Network URL.
optional string network = 232872494;
Type | Description |
UsableSubnetwork.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public UsableSubnetwork.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
UsableSubnetwork.Builder |
clearPurpose()
public UsableSubnetwork.Builder clearPurpose()
The purpose of the resource. This field can be either PRIVATE_RFC_1918 or INTERNAL_HTTPS_LOAD_BALANCER. A subnetwork with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a user-created subnetwork that is reserved for Internal HTTP(S) Load Balancing. If unspecified, the purpose defaults to PRIVATE_RFC_1918. The enableFlowLogs field isn't supported with the purpose field set to INTERNAL_HTTPS_LOAD_BALANCER. Check the Purpose enum for the list of possible values.
optional string purpose = 316407070;
Type | Description |
UsableSubnetwork.Builder | This builder for chaining. |
clearRole()
public UsableSubnetwork.Builder clearRole()
The role of subnetwork. Currently, this field is only used when purpose = INTERNAL_HTTPS_LOAD_BALANCER. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Internal HTTP(S) Load Balancing. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request. Check the Role enum for the list of possible values.
optional string role = 3506294;
Type | Description |
UsableSubnetwork.Builder | This builder for chaining. |
clearSecondaryIpRanges()
public UsableSubnetwork.Builder clearSecondaryIpRanges()
Secondary IP ranges.
repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;
Type | Description |
UsableSubnetwork.Builder |
clearStackType()
public UsableSubnetwork.Builder clearStackType()
The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 addresses only. If set to IPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 addresses. If not specified, IPV4_ONLY is used. This field can be both set at resource creation time and updated using patch. Check the StackType enum for the list of possible values.
optional string stack_type = 425908881;
Type | Description |
UsableSubnetwork.Builder | This builder for chaining. |
clearSubnetwork()
public UsableSubnetwork.Builder clearSubnetwork()
Subnetwork URL.
optional string subnetwork = 307827694;
Type | Description |
UsableSubnetwork.Builder | This builder for chaining. |
clone()
public UsableSubnetwork.Builder clone()
Type | Description |
UsableSubnetwork.Builder |
getDefaultInstanceForType()
public UsableSubnetwork getDefaultInstanceForType()
Type | Description |
UsableSubnetwork |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getExternalIpv6Prefix()
public String getExternalIpv6Prefix()
[Output Only] The external IPv6 address range that is assigned to this subnetwork.
optional string external_ipv6_prefix = 139299190;
Type | Description |
String | The externalIpv6Prefix. |
getExternalIpv6PrefixBytes()
public ByteString getExternalIpv6PrefixBytes()
[Output Only] The external IPv6 address range that is assigned to this subnetwork.
optional string external_ipv6_prefix = 139299190;
Type | Description |
ByteString | The bytes for externalIpv6Prefix. |
getInternalIpv6Prefix()
public String getInternalIpv6Prefix()
[Output Only] The internal IPv6 address range that is assigned to this subnetwork.
optional string internal_ipv6_prefix = 506270056;
Type | Description |
String | The internalIpv6Prefix. |
getInternalIpv6PrefixBytes()
public ByteString getInternalIpv6PrefixBytes()
[Output Only] The internal IPv6 address range that is assigned to this subnetwork.
optional string internal_ipv6_prefix = 506270056;
Type | Description |
ByteString | The bytes for internalIpv6Prefix. |
getIpCidrRange()
public String getIpCidrRange()
The range of internal addresses that are owned by this subnetwork.
optional string ip_cidr_range = 98117322;
Type | Description |
String | The ipCidrRange. |
getIpCidrRangeBytes()
public ByteString getIpCidrRangeBytes()
The range of internal addresses that are owned by this subnetwork.
optional string ip_cidr_range = 98117322;
Type | Description |
ByteString | The bytes for ipCidrRange. |
getIpv6AccessType()
public String getIpv6AccessType()
The access type of IPv6 address this subnet holds. It's immutable and can only be specified during creation or the first time the subnet is updated into IPV4_IPV6 dual stack. Check the Ipv6AccessType enum for the list of possible values.
optional string ipv6_access_type = 504658653;
Type | Description |
String | The ipv6AccessType. |
getIpv6AccessTypeBytes()
public ByteString getIpv6AccessTypeBytes()
The access type of IPv6 address this subnet holds. It's immutable and can only be specified during creation or the first time the subnet is updated into IPV4_IPV6 dual stack. Check the Ipv6AccessType enum for the list of possible values.
optional string ipv6_access_type = 504658653;
Type | Description |
ByteString | The bytes for ipv6AccessType. |
getNetwork()
public String getNetwork()
Network URL.
optional string network = 232872494;
Type | Description |
String | The network. |
getNetworkBytes()
public ByteString getNetworkBytes()
Network URL.
optional string network = 232872494;
Type | Description |
ByteString | The bytes for network. |
getPurpose()
public String getPurpose()
The purpose of the resource. This field can be either PRIVATE_RFC_1918 or INTERNAL_HTTPS_LOAD_BALANCER. A subnetwork with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a user-created subnetwork that is reserved for Internal HTTP(S) Load Balancing. If unspecified, the purpose defaults to PRIVATE_RFC_1918. The enableFlowLogs field isn't supported with the purpose field set to INTERNAL_HTTPS_LOAD_BALANCER. Check the Purpose enum for the list of possible values.
optional string purpose = 316407070;
Type | Description |
String | The purpose. |
getPurposeBytes()
public ByteString getPurposeBytes()
The purpose of the resource. This field can be either PRIVATE_RFC_1918 or INTERNAL_HTTPS_LOAD_BALANCER. A subnetwork with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a user-created subnetwork that is reserved for Internal HTTP(S) Load Balancing. If unspecified, the purpose defaults to PRIVATE_RFC_1918. The enableFlowLogs field isn't supported with the purpose field set to INTERNAL_HTTPS_LOAD_BALANCER. Check the Purpose enum for the list of possible values.
optional string purpose = 316407070;
Type | Description |
ByteString | The bytes for purpose. |
getRole()
public String getRole()
The role of subnetwork. Currently, this field is only used when purpose = INTERNAL_HTTPS_LOAD_BALANCER. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Internal HTTP(S) Load Balancing. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request. Check the Role enum for the list of possible values.
optional string role = 3506294;
Type | Description |
String | The role. |
getRoleBytes()
public ByteString getRoleBytes()
The role of subnetwork. Currently, this field is only used when purpose = INTERNAL_HTTPS_LOAD_BALANCER. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Internal HTTP(S) Load Balancing. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request. Check the Role enum for the list of possible values.
optional string role = 3506294;
Type | Description |
ByteString | The bytes for role. |
getSecondaryIpRanges(int index)
public UsableSubnetworkSecondaryRange getSecondaryIpRanges(int index)
Secondary IP ranges.
repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;
Name | Description |
index | int |
Type | Description |
UsableSubnetworkSecondaryRange |
getSecondaryIpRangesBuilder(int index)
public UsableSubnetworkSecondaryRange.Builder getSecondaryIpRangesBuilder(int index)
Secondary IP ranges.
repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;
Name | Description |
index | int |
Type | Description |
UsableSubnetworkSecondaryRange.Builder |
getSecondaryIpRangesBuilderList()
public List<UsableSubnetworkSecondaryRange.Builder> getSecondaryIpRangesBuilderList()
Secondary IP ranges.
repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;
Type | Description |
List<Builder> |
getSecondaryIpRangesCount()
public int getSecondaryIpRangesCount()
Secondary IP ranges.
repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;
Type | Description |
int |
getSecondaryIpRangesList()
public List<UsableSubnetworkSecondaryRange> getSecondaryIpRangesList()
Secondary IP ranges.
repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;
Type | Description |
List<UsableSubnetworkSecondaryRange> |
getSecondaryIpRangesOrBuilder(int index)
public UsableSubnetworkSecondaryRangeOrBuilder getSecondaryIpRangesOrBuilder(int index)
Secondary IP ranges.
repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;
Name | Description |
index | int |
Type | Description |
UsableSubnetworkSecondaryRangeOrBuilder |
getSecondaryIpRangesOrBuilderList()
public List<? extends UsableSubnetworkSecondaryRangeOrBuilder> getSecondaryIpRangesOrBuilderList()
Secondary IP ranges.
repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;
Type | Description |
List<? extends com.google.cloud.compute.v1.UsableSubnetworkSecondaryRangeOrBuilder> |
getStackType()
public String getStackType()
The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 addresses only. If set to IPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 addresses. If not specified, IPV4_ONLY is used. This field can be both set at resource creation time and updated using patch. Check the StackType enum for the list of possible values.
optional string stack_type = 425908881;
Type | Description |
String | The stackType. |
getStackTypeBytes()
public ByteString getStackTypeBytes()
The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 addresses only. If set to IPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 addresses. If not specified, IPV4_ONLY is used. This field can be both set at resource creation time and updated using patch. Check the StackType enum for the list of possible values.
optional string stack_type = 425908881;
Type | Description |
ByteString | The bytes for stackType. |
getSubnetwork()
public String getSubnetwork()
Subnetwork URL.
optional string subnetwork = 307827694;
Type | Description |
String | The subnetwork. |
getSubnetworkBytes()
public ByteString getSubnetworkBytes()
Subnetwork URL.
optional string subnetwork = 307827694;
Type | Description |
ByteString | The bytes for subnetwork. |
hasExternalIpv6Prefix()
public boolean hasExternalIpv6Prefix()
[Output Only] The external IPv6 address range that is assigned to this subnetwork.
optional string external_ipv6_prefix = 139299190;
Type | Description |
boolean | Whether the externalIpv6Prefix field is set. |
hasInternalIpv6Prefix()
public boolean hasInternalIpv6Prefix()
[Output Only] The internal IPv6 address range that is assigned to this subnetwork.
optional string internal_ipv6_prefix = 506270056;
Type | Description |
boolean | Whether the internalIpv6Prefix field is set. |
hasIpCidrRange()
public boolean hasIpCidrRange()
The range of internal addresses that are owned by this subnetwork.
optional string ip_cidr_range = 98117322;
Type | Description |
boolean | Whether the ipCidrRange field is set. |
hasIpv6AccessType()
public boolean hasIpv6AccessType()
The access type of IPv6 address this subnet holds. It's immutable and can only be specified during creation or the first time the subnet is updated into IPV4_IPV6 dual stack. Check the Ipv6AccessType enum for the list of possible values.
optional string ipv6_access_type = 504658653;
Type | Description |
boolean | Whether the ipv6AccessType field is set. |
hasNetwork()
public boolean hasNetwork()
Network URL.
optional string network = 232872494;
Type | Description |
boolean | Whether the network field is set. |
hasPurpose()
public boolean hasPurpose()
The purpose of the resource. This field can be either PRIVATE_RFC_1918 or INTERNAL_HTTPS_LOAD_BALANCER. A subnetwork with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a user-created subnetwork that is reserved for Internal HTTP(S) Load Balancing. If unspecified, the purpose defaults to PRIVATE_RFC_1918. The enableFlowLogs field isn't supported with the purpose field set to INTERNAL_HTTPS_LOAD_BALANCER. Check the Purpose enum for the list of possible values.
optional string purpose = 316407070;
Type | Description |
boolean | Whether the purpose field is set. |
hasRole()
public boolean hasRole()
The role of subnetwork. Currently, this field is only used when purpose = INTERNAL_HTTPS_LOAD_BALANCER. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Internal HTTP(S) Load Balancing. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request. Check the Role enum for the list of possible values.
optional string role = 3506294;
Type | Description |
boolean | Whether the role field is set. |
hasStackType()
public boolean hasStackType()
The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 addresses only. If set to IPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 addresses. If not specified, IPV4_ONLY is used. This field can be both set at resource creation time and updated using patch. Check the StackType enum for the list of possible values.
optional string stack_type = 425908881;
Type | Description |
boolean | Whether the stackType field is set. |
hasSubnetwork()
public boolean hasSubnetwork()
Subnetwork URL.
optional string subnetwork = 307827694;
Type | Description |
boolean | Whether the subnetwork field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(UsableSubnetwork other)
public UsableSubnetwork.Builder mergeFrom(UsableSubnetwork other)
Name | Description |
other | UsableSubnetwork |
Type | Description |
UsableSubnetwork.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public UsableSubnetwork.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
UsableSubnetwork.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public UsableSubnetwork.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
UsableSubnetwork.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final UsableSubnetwork.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
UsableSubnetwork.Builder |
removeSecondaryIpRanges(int index)
public UsableSubnetwork.Builder removeSecondaryIpRanges(int index)
Secondary IP ranges.
repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;
Name | Description |
index | int |
Type | Description |
UsableSubnetwork.Builder |
setExternalIpv6Prefix(String value)
public UsableSubnetwork.Builder setExternalIpv6Prefix(String value)
[Output Only] The external IPv6 address range that is assigned to this subnetwork.
optional string external_ipv6_prefix = 139299190;
Name | Description |
value | String The externalIpv6Prefix to set. |
Type | Description |
UsableSubnetwork.Builder | This builder for chaining. |
setExternalIpv6PrefixBytes(ByteString value)
public UsableSubnetwork.Builder setExternalIpv6PrefixBytes(ByteString value)
[Output Only] The external IPv6 address range that is assigned to this subnetwork.
optional string external_ipv6_prefix = 139299190;
Name | Description |
value | ByteString The bytes for externalIpv6Prefix to set. |
Type | Description |
UsableSubnetwork.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public UsableSubnetwork.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
UsableSubnetwork.Builder |
setInternalIpv6Prefix(String value)
public UsableSubnetwork.Builder setInternalIpv6Prefix(String value)
[Output Only] The internal IPv6 address range that is assigned to this subnetwork.
optional string internal_ipv6_prefix = 506270056;
Name | Description |
value | String The internalIpv6Prefix to set. |
Type | Description |
UsableSubnetwork.Builder | This builder for chaining. |
setInternalIpv6PrefixBytes(ByteString value)
public UsableSubnetwork.Builder setInternalIpv6PrefixBytes(ByteString value)
[Output Only] The internal IPv6 address range that is assigned to this subnetwork.
optional string internal_ipv6_prefix = 506270056;
Name | Description |
value | ByteString The bytes for internalIpv6Prefix to set. |
Type | Description |
UsableSubnetwork.Builder | This builder for chaining. |
setIpCidrRange(String value)
public UsableSubnetwork.Builder setIpCidrRange(String value)
The range of internal addresses that are owned by this subnetwork.
optional string ip_cidr_range = 98117322;
Name | Description |
value | String The ipCidrRange to set. |
Type | Description |
UsableSubnetwork.Builder | This builder for chaining. |
setIpCidrRangeBytes(ByteString value)
public UsableSubnetwork.Builder setIpCidrRangeBytes(ByteString value)
The range of internal addresses that are owned by this subnetwork.
optional string ip_cidr_range = 98117322;
Name | Description |
value | ByteString The bytes for ipCidrRange to set. |
Type | Description |
UsableSubnetwork.Builder | This builder for chaining. |
setIpv6AccessType(String value)
public UsableSubnetwork.Builder setIpv6AccessType(String value)
The access type of IPv6 address this subnet holds. It's immutable and can only be specified during creation or the first time the subnet is updated into IPV4_IPV6 dual stack. Check the Ipv6AccessType enum for the list of possible values.
optional string ipv6_access_type = 504658653;
Name | Description |
value | String The ipv6AccessType to set. |
Type | Description |
UsableSubnetwork.Builder | This builder for chaining. |
setIpv6AccessTypeBytes(ByteString value)
public UsableSubnetwork.Builder setIpv6AccessTypeBytes(ByteString value)
The access type of IPv6 address this subnet holds. It's immutable and can only be specified during creation or the first time the subnet is updated into IPV4_IPV6 dual stack. Check the Ipv6AccessType enum for the list of possible values.
optional string ipv6_access_type = 504658653;
Name | Description |
value | ByteString The bytes for ipv6AccessType to set. |
Type | Description |
UsableSubnetwork.Builder | This builder for chaining. |
setNetwork(String value)
public UsableSubnetwork.Builder setNetwork(String value)
Network URL.
optional string network = 232872494;
Name | Description |
value | String The network to set. |
Type | Description |
UsableSubnetwork.Builder | This builder for chaining. |
setNetworkBytes(ByteString value)
public UsableSubnetwork.Builder setNetworkBytes(ByteString value)
Network URL.
optional string network = 232872494;
Name | Description |
value | ByteString The bytes for network to set. |
Type | Description |
UsableSubnetwork.Builder | This builder for chaining. |
setPurpose(String value)
public UsableSubnetwork.Builder setPurpose(String value)
The purpose of the resource. This field can be either PRIVATE_RFC_1918 or INTERNAL_HTTPS_LOAD_BALANCER. A subnetwork with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a user-created subnetwork that is reserved for Internal HTTP(S) Load Balancing. If unspecified, the purpose defaults to PRIVATE_RFC_1918. The enableFlowLogs field isn't supported with the purpose field set to INTERNAL_HTTPS_LOAD_BALANCER. Check the Purpose enum for the list of possible values.
optional string purpose = 316407070;
Name | Description |
value | String The purpose to set. |
Type | Description |
UsableSubnetwork.Builder | This builder for chaining. |
setPurposeBytes(ByteString value)
public UsableSubnetwork.Builder setPurposeBytes(ByteString value)
The purpose of the resource. This field can be either PRIVATE_RFC_1918 or INTERNAL_HTTPS_LOAD_BALANCER. A subnetwork with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a user-created subnetwork that is reserved for Internal HTTP(S) Load Balancing. If unspecified, the purpose defaults to PRIVATE_RFC_1918. The enableFlowLogs field isn't supported with the purpose field set to INTERNAL_HTTPS_LOAD_BALANCER. Check the Purpose enum for the list of possible values.
optional string purpose = 316407070;
Name | Description |
value | ByteString The bytes for purpose to set. |
Type | Description |
UsableSubnetwork.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public UsableSubnetwork.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
UsableSubnetwork.Builder |
setRole(String value)
public UsableSubnetwork.Builder setRole(String value)
The role of subnetwork. Currently, this field is only used when purpose = INTERNAL_HTTPS_LOAD_BALANCER. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Internal HTTP(S) Load Balancing. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request. Check the Role enum for the list of possible values.
optional string role = 3506294;
Name | Description |
value | String The role to set. |
Type | Description |
UsableSubnetwork.Builder | This builder for chaining. |
setRoleBytes(ByteString value)
public UsableSubnetwork.Builder setRoleBytes(ByteString value)
The role of subnetwork. Currently, this field is only used when purpose = INTERNAL_HTTPS_LOAD_BALANCER. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Internal HTTP(S) Load Balancing. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request. Check the Role enum for the list of possible values.
optional string role = 3506294;
Name | Description |
value | ByteString The bytes for role to set. |
Type | Description |
UsableSubnetwork.Builder | This builder for chaining. |
setSecondaryIpRanges(int index, UsableSubnetworkSecondaryRange value)
public UsableSubnetwork.Builder setSecondaryIpRanges(int index, UsableSubnetworkSecondaryRange value)
Secondary IP ranges.
repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;
Name | Description |
index | int |
value | UsableSubnetworkSecondaryRange |
Type | Description |
UsableSubnetwork.Builder |
setSecondaryIpRanges(int index, UsableSubnetworkSecondaryRange.Builder builderForValue)
public UsableSubnetwork.Builder setSecondaryIpRanges(int index, UsableSubnetworkSecondaryRange.Builder builderForValue)
Secondary IP ranges.
repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;
Name | Description |
index | int |
builderForValue | UsableSubnetworkSecondaryRange.Builder |
Type | Description |
UsableSubnetwork.Builder |
setStackType(String value)
public UsableSubnetwork.Builder setStackType(String value)
The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 addresses only. If set to IPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 addresses. If not specified, IPV4_ONLY is used. This field can be both set at resource creation time and updated using patch. Check the StackType enum for the list of possible values.
optional string stack_type = 425908881;
Name | Description |
value | String The stackType to set. |
Type | Description |
UsableSubnetwork.Builder | This builder for chaining. |
setStackTypeBytes(ByteString value)
public UsableSubnetwork.Builder setStackTypeBytes(ByteString value)
The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 addresses only. If set to IPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 addresses. If not specified, IPV4_ONLY is used. This field can be both set at resource creation time and updated using patch. Check the StackType enum for the list of possible values.
optional string stack_type = 425908881;
Name | Description |
value | ByteString The bytes for stackType to set. |
Type | Description |
UsableSubnetwork.Builder | This builder for chaining. |
setSubnetwork(String value)
public UsableSubnetwork.Builder setSubnetwork(String value)
Subnetwork URL.
optional string subnetwork = 307827694;
Name | Description |
value | String The subnetwork to set. |
Type | Description |
UsableSubnetwork.Builder | This builder for chaining. |
setSubnetworkBytes(ByteString value)
public UsableSubnetwork.Builder setSubnetworkBytes(ByteString value)
Subnetwork URL.
optional string subnetwork = 307827694;
Name | Description |
value | ByteString The bytes for subnetwork to set. |
Type | Description |
UsableSubnetwork.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final UsableSubnetwork.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
UsableSubnetwork.Builder |