- 1.63.0 (latest)
- 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.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 Subnetwork.Builder extends GeneratedMessageV3.Builder<Subnetwork.Builder> implements SubnetworkOrBuilder
Represents a Subnetwork resource. A subnetwork (also known as a subnet) is a logical partition of a Virtual Private Cloud network with one primary IP range and zero or more secondary IP ranges. For more information, read Virtual Private Cloud (VPC) Network.
Protobuf type google.cloud.compute.v1.Subnetwork
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Subnetwork.BuilderImplements
SubnetworkOrBuilderMethods
addAllSecondaryIpRanges(Iterable<? extends SubnetworkSecondaryRange> values)
public Subnetwork.Builder addAllSecondaryIpRanges(Iterable<? extends SubnetworkSecondaryRange> values)
An array of configurations for secondary IP ranges for VM instances contained in this subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. The alias IPs may belong to either primary or secondary ranges. This field can be updated with a patch request.
repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915;
Name | Description |
values | Iterable<? extends com.google.cloud.compute.v1.SubnetworkSecondaryRange> |
Type | Description |
Subnetwork.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Subnetwork.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Subnetwork.Builder |
addSecondaryIpRanges(SubnetworkSecondaryRange value)
public Subnetwork.Builder addSecondaryIpRanges(SubnetworkSecondaryRange value)
An array of configurations for secondary IP ranges for VM instances contained in this subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. The alias IPs may belong to either primary or secondary ranges. This field can be updated with a patch request.
repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915;
Name | Description |
value | SubnetworkSecondaryRange |
Type | Description |
Subnetwork.Builder |
addSecondaryIpRanges(SubnetworkSecondaryRange.Builder builderForValue)
public Subnetwork.Builder addSecondaryIpRanges(SubnetworkSecondaryRange.Builder builderForValue)
An array of configurations for secondary IP ranges for VM instances contained in this subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. The alias IPs may belong to either primary or secondary ranges. This field can be updated with a patch request.
repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915;
Name | Description |
builderForValue | SubnetworkSecondaryRange.Builder |
Type | Description |
Subnetwork.Builder |
addSecondaryIpRanges(int index, SubnetworkSecondaryRange value)
public Subnetwork.Builder addSecondaryIpRanges(int index, SubnetworkSecondaryRange value)
An array of configurations for secondary IP ranges for VM instances contained in this subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. The alias IPs may belong to either primary or secondary ranges. This field can be updated with a patch request.
repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915;
Name | Description |
index | int |
value | SubnetworkSecondaryRange |
Type | Description |
Subnetwork.Builder |
addSecondaryIpRanges(int index, SubnetworkSecondaryRange.Builder builderForValue)
public Subnetwork.Builder addSecondaryIpRanges(int index, SubnetworkSecondaryRange.Builder builderForValue)
An array of configurations for secondary IP ranges for VM instances contained in this subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. The alias IPs may belong to either primary or secondary ranges. This field can be updated with a patch request.
repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915;
Name | Description |
index | int |
builderForValue | SubnetworkSecondaryRange.Builder |
Type | Description |
Subnetwork.Builder |
addSecondaryIpRangesBuilder()
public SubnetworkSecondaryRange.Builder addSecondaryIpRangesBuilder()
An array of configurations for secondary IP ranges for VM instances contained in this subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. The alias IPs may belong to either primary or secondary ranges. This field can be updated with a patch request.
repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915;
Type | Description |
SubnetworkSecondaryRange.Builder |
addSecondaryIpRangesBuilder(int index)
public SubnetworkSecondaryRange.Builder addSecondaryIpRangesBuilder(int index)
An array of configurations for secondary IP ranges for VM instances contained in this subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. The alias IPs may belong to either primary or secondary ranges. This field can be updated with a patch request.
repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915;
Name | Description |
index | int |
Type | Description |
SubnetworkSecondaryRange.Builder |
build()
public Subnetwork build()
Type | Description |
Subnetwork |
buildPartial()
public Subnetwork buildPartial()
Type | Description |
Subnetwork |
clear()
public Subnetwork.Builder clear()
Type | Description |
Subnetwork.Builder |
clearCreationTimestamp()
public Subnetwork.Builder clearCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
Type | Description |
Subnetwork.Builder | This builder for chaining. |
clearDescription()
public Subnetwork.Builder clearDescription()
An optional description of this resource. Provide this property when you create the resource. This field can be set only at resource creation time.
optional string description = 422937596;
Type | Description |
Subnetwork.Builder | This builder for chaining. |
clearEnableFlowLogs()
public Subnetwork.Builder clearEnableFlowLogs()
Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is to disable flow logging. This field isn't supported with the purpose field set to INTERNAL_HTTPS_LOAD_BALANCER.
optional bool enable_flow_logs = 151544420;
Type | Description |
Subnetwork.Builder | This builder for chaining. |
clearExternalIpv6Prefix()
public Subnetwork.Builder clearExternalIpv6Prefix()
[Output Only] The range of external IPv6 addresses that are owned by this subnetwork.
optional string external_ipv6_prefix = 139299190;
Type | Description |
Subnetwork.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Subnetwork.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Subnetwork.Builder |
clearFingerprint()
public Subnetwork.Builder clearFingerprint()
Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a Subnetwork. An up-to-date fingerprint must be provided in order to update the Subnetwork, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a Subnetwork.
optional string fingerprint = 234678500;
Type | Description |
Subnetwork.Builder | This builder for chaining. |
clearGatewayAddress()
public Subnetwork.Builder clearGatewayAddress()
[Output Only] The gateway address for default routes to reach destination addresses outside this subnetwork.
optional string gateway_address = 459867385;
Type | Description |
Subnetwork.Builder | This builder for chaining. |
clearId()
public Subnetwork.Builder clearId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
Type | Description |
Subnetwork.Builder | This builder for chaining. |
clearIpCidrRange()
public Subnetwork.Builder clearIpCidrRange()
The range of internal addresses that are owned by this subnetwork. Provide this property when you create the subnetwork. For example, 10.0.0.0/8 or 100.64.0.0/10. Ranges must be unique and non-overlapping within a network. Only IPv4 is supported. This field is set at resource creation time. The range can be any range listed in the Valid ranges list. The range can be expanded after creation using expandIpCidrRange.
optional string ip_cidr_range = 98117322;
Type | Description |
Subnetwork.Builder | This builder for chaining. |
clearIpv6AccessType()
public Subnetwork.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. If the ipv6_type is EXTERNAL then this subnet cannot enable direct path. Check the Ipv6AccessType enum for the list of possible values.
optional string ipv6_access_type = 504658653;
Type | Description |
Subnetwork.Builder | This builder for chaining. |
clearIpv6CidrRange()
public Subnetwork.Builder clearIpv6CidrRange()
[Output Only] The range of internal IPv6 addresses that are owned by this subnetwork.
optional string ipv6_cidr_range = 273141258;
Type | Description |
Subnetwork.Builder | This builder for chaining. |
clearKind()
public Subnetwork.Builder clearKind()
[Output Only] Type of the resource. Always compute#subnetwork for Subnetwork resources.
optional string kind = 3292052;
Type | Description |
Subnetwork.Builder | This builder for chaining. |
clearLogConfig()
public Subnetwork.Builder clearLogConfig()
This field denotes the VPC flow logging options for this subnetwork. If logging is enabled, logs are exported to Cloud Logging.
optional .google.cloud.compute.v1.SubnetworkLogConfig log_config = 351299741;
Type | Description |
Subnetwork.Builder |
clearName()
public Subnetwork.Builder clearName()
The name of the resource, provided by the client when initially creating the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;
Type | Description |
Subnetwork.Builder | This builder for chaining. |
clearNetwork()
public Subnetwork.Builder clearNetwork()
The URL of the network to which this subnetwork belongs, provided by the client when initially creating the subnetwork. This field can be set only at resource creation time.
optional string network = 232872494;
Type | Description |
Subnetwork.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Subnetwork.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Subnetwork.Builder |
clearPrivateIpGoogleAccess()
public Subnetwork.Builder clearPrivateIpGoogleAccess()
Whether the VMs in this subnet can access Google services without assigned external IP addresses. This field can be both set at resource creation time and updated using setPrivateIpGoogleAccess.
optional bool private_ip_google_access = 421491790;
Type | Description |
Subnetwork.Builder | This builder for chaining. |
clearPrivateIpv6GoogleAccess()
public Subnetwork.Builder clearPrivateIpv6GoogleAccess()
The private IPv6 google access type for the VMs in this subnet. This is an expanded field of enablePrivateV6Access. If both fields are set, privateIpv6GoogleAccess will take priority. This field can be both set at resource creation time and updated using patch. Check the PrivateIpv6GoogleAccess enum for the list of possible values.
optional string private_ipv6_google_access = 48277006;
Type | Description |
Subnetwork.Builder | This builder for chaining. |
clearPurpose()
public Subnetwork.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 |
Subnetwork.Builder | This builder for chaining. |
clearRegion()
public Subnetwork.Builder clearRegion()
URL of the region where the Subnetwork resides. This field can be set only at resource creation time.
optional string region = 138946292;
Type | Description |
Subnetwork.Builder | This builder for chaining. |
clearRole()
public Subnetwork.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 |
Subnetwork.Builder | This builder for chaining. |
clearSecondaryIpRanges()
public Subnetwork.Builder clearSecondaryIpRanges()
An array of configurations for secondary IP ranges for VM instances contained in this subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. The alias IPs may belong to either primary or secondary ranges. This field can be updated with a patch request.
repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915;
Type | Description |
Subnetwork.Builder |
clearSelfLink()
public Subnetwork.Builder clearSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
Type | Description |
Subnetwork.Builder | This builder for chaining. |
clearStackType()
public Subnetwork.Builder clearStackType()
The stack type for this subnet to identify whether the IPv6 feature is enabled or not. If not specified IPV4_ONLY will be 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 |
Subnetwork.Builder | This builder for chaining. |
clearState()
public Subnetwork.Builder clearState()
[Output Only] The state of the subnetwork, which can be one of the following values: READY: Subnetwork is created and ready to use DRAINING: only applicable to subnetworks that have the purpose set to INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the load balancer are being drained. A subnetwork that is draining cannot be used or modified until it reaches a status of READY Check the State enum for the list of possible values.
optional string state = 109757585;
Type | Description |
Subnetwork.Builder | This builder for chaining. |
clone()
public Subnetwork.Builder clone()
Type | Description |
Subnetwork.Builder |
getCreationTimestamp()
public String getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
Type | Description |
String | The creationTimestamp. |
getCreationTimestampBytes()
public ByteString getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
Type | Description |
ByteString | The bytes for creationTimestamp. |
getDefaultInstanceForType()
public Subnetwork getDefaultInstanceForType()
Type | Description |
Subnetwork |
getDescription()
public String getDescription()
An optional description of this resource. Provide this property when you create the resource. This field can be set only at resource creation time.
optional string description = 422937596;
Type | Description |
String | The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()
An optional description of this resource. Provide this property when you create the resource. This field can be set only at resource creation time.
optional string description = 422937596;
Type | Description |
ByteString | The bytes for description. |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getEnableFlowLogs()
public boolean getEnableFlowLogs()
Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is to disable flow logging. This field isn't supported with the purpose field set to INTERNAL_HTTPS_LOAD_BALANCER.
optional bool enable_flow_logs = 151544420;
Type | Description |
boolean | The enableFlowLogs. |
getExternalIpv6Prefix()
public String getExternalIpv6Prefix()
[Output Only] The range of external IPv6 addresses that are owned by this subnetwork.
optional string external_ipv6_prefix = 139299190;
Type | Description |
String | The externalIpv6Prefix. |
getExternalIpv6PrefixBytes()
public ByteString getExternalIpv6PrefixBytes()
[Output Only] The range of external IPv6 addresses that are owned by this subnetwork.
optional string external_ipv6_prefix = 139299190;
Type | Description |
ByteString | The bytes for externalIpv6Prefix. |
getFingerprint()
public String getFingerprint()
Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a Subnetwork. An up-to-date fingerprint must be provided in order to update the Subnetwork, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a Subnetwork.
optional string fingerprint = 234678500;
Type | Description |
String | The fingerprint. |
getFingerprintBytes()
public ByteString getFingerprintBytes()
Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a Subnetwork. An up-to-date fingerprint must be provided in order to update the Subnetwork, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a Subnetwork.
optional string fingerprint = 234678500;
Type | Description |
ByteString | The bytes for fingerprint. |
getGatewayAddress()
public String getGatewayAddress()
[Output Only] The gateway address for default routes to reach destination addresses outside this subnetwork.
optional string gateway_address = 459867385;
Type | Description |
String | The gatewayAddress. |
getGatewayAddressBytes()
public ByteString getGatewayAddressBytes()
[Output Only] The gateway address for default routes to reach destination addresses outside this subnetwork.
optional string gateway_address = 459867385;
Type | Description |
ByteString | The bytes for gatewayAddress. |
getId()
public long getId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
Type | Description |
long | The id. |
getIpCidrRange()
public String getIpCidrRange()
The range of internal addresses that are owned by this subnetwork. Provide this property when you create the subnetwork. For example, 10.0.0.0/8 or 100.64.0.0/10. Ranges must be unique and non-overlapping within a network. Only IPv4 is supported. This field is set at resource creation time. The range can be any range listed in the Valid ranges list. The range can be expanded after creation using expandIpCidrRange.
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. Provide this property when you create the subnetwork. For example, 10.0.0.0/8 or 100.64.0.0/10. Ranges must be unique and non-overlapping within a network. Only IPv4 is supported. This field is set at resource creation time. The range can be any range listed in the Valid ranges list. The range can be expanded after creation using expandIpCidrRange.
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. If the ipv6_type is EXTERNAL then this subnet cannot enable direct path. 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. If the ipv6_type is EXTERNAL then this subnet cannot enable direct path. Check the Ipv6AccessType enum for the list of possible values.
optional string ipv6_access_type = 504658653;
Type | Description |
ByteString | The bytes for ipv6AccessType. |
getIpv6CidrRange()
public String getIpv6CidrRange()
[Output Only] The range of internal IPv6 addresses that are owned by this subnetwork.
optional string ipv6_cidr_range = 273141258;
Type | Description |
String | The ipv6CidrRange. |
getIpv6CidrRangeBytes()
public ByteString getIpv6CidrRangeBytes()
[Output Only] The range of internal IPv6 addresses that are owned by this subnetwork.
optional string ipv6_cidr_range = 273141258;
Type | Description |
ByteString | The bytes for ipv6CidrRange. |
getKind()
public String getKind()
[Output Only] Type of the resource. Always compute#subnetwork for Subnetwork resources.
optional string kind = 3292052;
Type | Description |
String | The kind. |
getKindBytes()
public ByteString getKindBytes()
[Output Only] Type of the resource. Always compute#subnetwork for Subnetwork resources.
optional string kind = 3292052;
Type | Description |
ByteString | The bytes for kind. |
getLogConfig()
public SubnetworkLogConfig getLogConfig()
This field denotes the VPC flow logging options for this subnetwork. If logging is enabled, logs are exported to Cloud Logging.
optional .google.cloud.compute.v1.SubnetworkLogConfig log_config = 351299741;
Type | Description |
SubnetworkLogConfig | The logConfig. |
getLogConfigBuilder()
public SubnetworkLogConfig.Builder getLogConfigBuilder()
This field denotes the VPC flow logging options for this subnetwork. If logging is enabled, logs are exported to Cloud Logging.
optional .google.cloud.compute.v1.SubnetworkLogConfig log_config = 351299741;
Type | Description |
SubnetworkLogConfig.Builder |
getLogConfigOrBuilder()
public SubnetworkLogConfigOrBuilder getLogConfigOrBuilder()
This field denotes the VPC flow logging options for this subnetwork. If logging is enabled, logs are exported to Cloud Logging.
optional .google.cloud.compute.v1.SubnetworkLogConfig log_config = 351299741;
Type | Description |
SubnetworkLogConfigOrBuilder |
getName()
public String getName()
The name of the resource, provided by the client when initially creating the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
The name of the resource, provided by the client when initially creating the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;
Type | Description |
ByteString | The bytes for name. |
getNetwork()
public String getNetwork()
The URL of the network to which this subnetwork belongs, provided by the client when initially creating the subnetwork. This field can be set only at resource creation time.
optional string network = 232872494;
Type | Description |
String | The network. |
getNetworkBytes()
public ByteString getNetworkBytes()
The URL of the network to which this subnetwork belongs, provided by the client when initially creating the subnetwork. This field can be set only at resource creation time.
optional string network = 232872494;
Type | Description |
ByteString | The bytes for network. |
getPrivateIpGoogleAccess()
public boolean getPrivateIpGoogleAccess()
Whether the VMs in this subnet can access Google services without assigned external IP addresses. This field can be both set at resource creation time and updated using setPrivateIpGoogleAccess.
optional bool private_ip_google_access = 421491790;
Type | Description |
boolean | The privateIpGoogleAccess. |
getPrivateIpv6GoogleAccess()
public String getPrivateIpv6GoogleAccess()
The private IPv6 google access type for the VMs in this subnet. This is an expanded field of enablePrivateV6Access. If both fields are set, privateIpv6GoogleAccess will take priority. This field can be both set at resource creation time and updated using patch. Check the PrivateIpv6GoogleAccess enum for the list of possible values.
optional string private_ipv6_google_access = 48277006;
Type | Description |
String | The privateIpv6GoogleAccess. |
getPrivateIpv6GoogleAccessBytes()
public ByteString getPrivateIpv6GoogleAccessBytes()
The private IPv6 google access type for the VMs in this subnet. This is an expanded field of enablePrivateV6Access. If both fields are set, privateIpv6GoogleAccess will take priority. This field can be both set at resource creation time and updated using patch. Check the PrivateIpv6GoogleAccess enum for the list of possible values.
optional string private_ipv6_google_access = 48277006;
Type | Description |
ByteString | The bytes for privateIpv6GoogleAccess. |
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. |
getRegion()
public String getRegion()
URL of the region where the Subnetwork resides. This field can be set only at resource creation time.
optional string region = 138946292;
Type | Description |
String | The region. |
getRegionBytes()
public ByteString getRegionBytes()
URL of the region where the Subnetwork resides. This field can be set only at resource creation time.
optional string region = 138946292;
Type | Description |
ByteString | The bytes for region. |
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 SubnetworkSecondaryRange getSecondaryIpRanges(int index)
An array of configurations for secondary IP ranges for VM instances contained in this subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. The alias IPs may belong to either primary or secondary ranges. This field can be updated with a patch request.
repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915;
Name | Description |
index | int |
Type | Description |
SubnetworkSecondaryRange |
getSecondaryIpRangesBuilder(int index)
public SubnetworkSecondaryRange.Builder getSecondaryIpRangesBuilder(int index)
An array of configurations for secondary IP ranges for VM instances contained in this subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. The alias IPs may belong to either primary or secondary ranges. This field can be updated with a patch request.
repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915;
Name | Description |
index | int |
Type | Description |
SubnetworkSecondaryRange.Builder |
getSecondaryIpRangesBuilderList()
public List<SubnetworkSecondaryRange.Builder> getSecondaryIpRangesBuilderList()
An array of configurations for secondary IP ranges for VM instances contained in this subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. The alias IPs may belong to either primary or secondary ranges. This field can be updated with a patch request.
repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915;
Type | Description |
List<Builder> |
getSecondaryIpRangesCount()
public int getSecondaryIpRangesCount()
An array of configurations for secondary IP ranges for VM instances contained in this subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. The alias IPs may belong to either primary or secondary ranges. This field can be updated with a patch request.
repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915;
Type | Description |
int |
getSecondaryIpRangesList()
public List<SubnetworkSecondaryRange> getSecondaryIpRangesList()
An array of configurations for secondary IP ranges for VM instances contained in this subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. The alias IPs may belong to either primary or secondary ranges. This field can be updated with a patch request.
repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915;
Type | Description |
List<SubnetworkSecondaryRange> |
getSecondaryIpRangesOrBuilder(int index)
public SubnetworkSecondaryRangeOrBuilder getSecondaryIpRangesOrBuilder(int index)
An array of configurations for secondary IP ranges for VM instances contained in this subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. The alias IPs may belong to either primary or secondary ranges. This field can be updated with a patch request.
repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915;
Name | Description |
index | int |
Type | Description |
SubnetworkSecondaryRangeOrBuilder |
getSecondaryIpRangesOrBuilderList()
public List<? extends SubnetworkSecondaryRangeOrBuilder> getSecondaryIpRangesOrBuilderList()
An array of configurations for secondary IP ranges for VM instances contained in this subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. The alias IPs may belong to either primary or secondary ranges. This field can be updated with a patch request.
repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915;
Type | Description |
List<? extends com.google.cloud.compute.v1.SubnetworkSecondaryRangeOrBuilder> |
getSelfLink()
public String getSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
Type | Description |
String | The selfLink. |
getSelfLinkBytes()
public ByteString getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
Type | Description |
ByteString | The bytes for selfLink. |
getStackType()
public String getStackType()
The stack type for this subnet to identify whether the IPv6 feature is enabled or not. If not specified IPV4_ONLY will be 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 this subnet to identify whether the IPv6 feature is enabled or not. If not specified IPV4_ONLY will be 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. |
getState()
public String getState()
[Output Only] The state of the subnetwork, which can be one of the following values: READY: Subnetwork is created and ready to use DRAINING: only applicable to subnetworks that have the purpose set to INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the load balancer are being drained. A subnetwork that is draining cannot be used or modified until it reaches a status of READY Check the State enum for the list of possible values.
optional string state = 109757585;
Type | Description |
String | The state. |
getStateBytes()
public ByteString getStateBytes()
[Output Only] The state of the subnetwork, which can be one of the following values: READY: Subnetwork is created and ready to use DRAINING: only applicable to subnetworks that have the purpose set to INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the load balancer are being drained. A subnetwork that is draining cannot be used or modified until it reaches a status of READY Check the State enum for the list of possible values.
optional string state = 109757585;
Type | Description |
ByteString | The bytes for state. |
hasCreationTimestamp()
public boolean hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
Type | Description |
boolean | Whether the creationTimestamp field is set. |
hasDescription()
public boolean hasDescription()
An optional description of this resource. Provide this property when you create the resource. This field can be set only at resource creation time.
optional string description = 422937596;
Type | Description |
boolean | Whether the description field is set. |
hasEnableFlowLogs()
public boolean hasEnableFlowLogs()
Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is to disable flow logging. This field isn't supported with the purpose field set to INTERNAL_HTTPS_LOAD_BALANCER.
optional bool enable_flow_logs = 151544420;
Type | Description |
boolean | Whether the enableFlowLogs field is set. |
hasExternalIpv6Prefix()
public boolean hasExternalIpv6Prefix()
[Output Only] The range of external IPv6 addresses that are owned by this subnetwork.
optional string external_ipv6_prefix = 139299190;
Type | Description |
boolean | Whether the externalIpv6Prefix field is set. |
hasFingerprint()
public boolean hasFingerprint()
Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a Subnetwork. An up-to-date fingerprint must be provided in order to update the Subnetwork, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a Subnetwork.
optional string fingerprint = 234678500;
Type | Description |
boolean | Whether the fingerprint field is set. |
hasGatewayAddress()
public boolean hasGatewayAddress()
[Output Only] The gateway address for default routes to reach destination addresses outside this subnetwork.
optional string gateway_address = 459867385;
Type | Description |
boolean | Whether the gatewayAddress field is set. |
hasId()
public boolean hasId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
Type | Description |
boolean | Whether the id field is set. |
hasIpCidrRange()
public boolean hasIpCidrRange()
The range of internal addresses that are owned by this subnetwork. Provide this property when you create the subnetwork. For example, 10.0.0.0/8 or 100.64.0.0/10. Ranges must be unique and non-overlapping within a network. Only IPv4 is supported. This field is set at resource creation time. The range can be any range listed in the Valid ranges list. The range can be expanded after creation using expandIpCidrRange.
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. If the ipv6_type is EXTERNAL then this subnet cannot enable direct path. 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. |
hasIpv6CidrRange()
public boolean hasIpv6CidrRange()
[Output Only] The range of internal IPv6 addresses that are owned by this subnetwork.
optional string ipv6_cidr_range = 273141258;
Type | Description |
boolean | Whether the ipv6CidrRange field is set. |
hasKind()
public boolean hasKind()
[Output Only] Type of the resource. Always compute#subnetwork for Subnetwork resources.
optional string kind = 3292052;
Type | Description |
boolean | Whether the kind field is set. |
hasLogConfig()
public boolean hasLogConfig()
This field denotes the VPC flow logging options for this subnetwork. If logging is enabled, logs are exported to Cloud Logging.
optional .google.cloud.compute.v1.SubnetworkLogConfig log_config = 351299741;
Type | Description |
boolean | Whether the logConfig field is set. |
hasName()
public boolean hasName()
The name of the resource, provided by the client when initially creating the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;
Type | Description |
boolean | Whether the name field is set. |
hasNetwork()
public boolean hasNetwork()
The URL of the network to which this subnetwork belongs, provided by the client when initially creating the subnetwork. This field can be set only at resource creation time.
optional string network = 232872494;
Type | Description |
boolean | Whether the network field is set. |
hasPrivateIpGoogleAccess()
public boolean hasPrivateIpGoogleAccess()
Whether the VMs in this subnet can access Google services without assigned external IP addresses. This field can be both set at resource creation time and updated using setPrivateIpGoogleAccess.
optional bool private_ip_google_access = 421491790;
Type | Description |
boolean | Whether the privateIpGoogleAccess field is set. |
hasPrivateIpv6GoogleAccess()
public boolean hasPrivateIpv6GoogleAccess()
The private IPv6 google access type for the VMs in this subnet. This is an expanded field of enablePrivateV6Access. If both fields are set, privateIpv6GoogleAccess will take priority. This field can be both set at resource creation time and updated using patch. Check the PrivateIpv6GoogleAccess enum for the list of possible values.
optional string private_ipv6_google_access = 48277006;
Type | Description |
boolean | Whether the privateIpv6GoogleAccess 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. |
hasRegion()
public boolean hasRegion()
URL of the region where the Subnetwork resides. This field can be set only at resource creation time.
optional string region = 138946292;
Type | Description |
boolean | Whether the region 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. |
hasSelfLink()
public boolean hasSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
Type | Description |
boolean | Whether the selfLink field is set. |
hasStackType()
public boolean hasStackType()
The stack type for this subnet to identify whether the IPv6 feature is enabled or not. If not specified IPV4_ONLY will be 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. |
hasState()
public boolean hasState()
[Output Only] The state of the subnetwork, which can be one of the following values: READY: Subnetwork is created and ready to use DRAINING: only applicable to subnetworks that have the purpose set to INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the load balancer are being drained. A subnetwork that is draining cannot be used or modified until it reaches a status of READY Check the State enum for the list of possible values.
optional string state = 109757585;
Type | Description |
boolean | Whether the state field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(Subnetwork other)
public Subnetwork.Builder mergeFrom(Subnetwork other)
Name | Description |
other | Subnetwork |
Type | Description |
Subnetwork.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Subnetwork.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Subnetwork.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Subnetwork.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Subnetwork.Builder |
mergeLogConfig(SubnetworkLogConfig value)
public Subnetwork.Builder mergeLogConfig(SubnetworkLogConfig value)
This field denotes the VPC flow logging options for this subnetwork. If logging is enabled, logs are exported to Cloud Logging.
optional .google.cloud.compute.v1.SubnetworkLogConfig log_config = 351299741;
Name | Description |
value | SubnetworkLogConfig |
Type | Description |
Subnetwork.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Subnetwork.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Subnetwork.Builder |
removeSecondaryIpRanges(int index)
public Subnetwork.Builder removeSecondaryIpRanges(int index)
An array of configurations for secondary IP ranges for VM instances contained in this subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. The alias IPs may belong to either primary or secondary ranges. This field can be updated with a patch request.
repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915;
Name | Description |
index | int |
Type | Description |
Subnetwork.Builder |
setCreationTimestamp(String value)
public Subnetwork.Builder setCreationTimestamp(String value)
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
Name | Description |
value | String The creationTimestamp to set. |
Type | Description |
Subnetwork.Builder | This builder for chaining. |
setCreationTimestampBytes(ByteString value)
public Subnetwork.Builder setCreationTimestampBytes(ByteString value)
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
Name | Description |
value | ByteString The bytes for creationTimestamp to set. |
Type | Description |
Subnetwork.Builder | This builder for chaining. |
setDescription(String value)
public Subnetwork.Builder setDescription(String value)
An optional description of this resource. Provide this property when you create the resource. This field can be set only at resource creation time.
optional string description = 422937596;
Name | Description |
value | String The description to set. |
Type | Description |
Subnetwork.Builder | This builder for chaining. |
setDescriptionBytes(ByteString value)
public Subnetwork.Builder setDescriptionBytes(ByteString value)
An optional description of this resource. Provide this property when you create the resource. This field can be set only at resource creation time.
optional string description = 422937596;
Name | Description |
value | ByteString The bytes for description to set. |
Type | Description |
Subnetwork.Builder | This builder for chaining. |
setEnableFlowLogs(boolean value)
public Subnetwork.Builder setEnableFlowLogs(boolean value)
Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is to disable flow logging. This field isn't supported with the purpose field set to INTERNAL_HTTPS_LOAD_BALANCER.
optional bool enable_flow_logs = 151544420;
Name | Description |
value | boolean The enableFlowLogs to set. |
Type | Description |
Subnetwork.Builder | This builder for chaining. |
setExternalIpv6Prefix(String value)
public Subnetwork.Builder setExternalIpv6Prefix(String value)
[Output Only] The range of external IPv6 addresses that are owned by this subnetwork.
optional string external_ipv6_prefix = 139299190;
Name | Description |
value | String The externalIpv6Prefix to set. |
Type | Description |
Subnetwork.Builder | This builder for chaining. |
setExternalIpv6PrefixBytes(ByteString value)
public Subnetwork.Builder setExternalIpv6PrefixBytes(ByteString value)
[Output Only] The range of external IPv6 addresses that are owned by this subnetwork.
optional string external_ipv6_prefix = 139299190;
Name | Description |
value | ByteString The bytes for externalIpv6Prefix to set. |
Type | Description |
Subnetwork.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Subnetwork.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Subnetwork.Builder |
setFingerprint(String value)
public Subnetwork.Builder setFingerprint(String value)
Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a Subnetwork. An up-to-date fingerprint must be provided in order to update the Subnetwork, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a Subnetwork.
optional string fingerprint = 234678500;
Name | Description |
value | String The fingerprint to set. |
Type | Description |
Subnetwork.Builder | This builder for chaining. |
setFingerprintBytes(ByteString value)
public Subnetwork.Builder setFingerprintBytes(ByteString value)
Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a Subnetwork. An up-to-date fingerprint must be provided in order to update the Subnetwork, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a Subnetwork.
optional string fingerprint = 234678500;
Name | Description |
value | ByteString The bytes for fingerprint to set. |
Type | Description |
Subnetwork.Builder | This builder for chaining. |
setGatewayAddress(String value)
public Subnetwork.Builder setGatewayAddress(String value)
[Output Only] The gateway address for default routes to reach destination addresses outside this subnetwork.
optional string gateway_address = 459867385;
Name | Description |
value | String The gatewayAddress to set. |
Type | Description |
Subnetwork.Builder | This builder for chaining. |
setGatewayAddressBytes(ByteString value)
public Subnetwork.Builder setGatewayAddressBytes(ByteString value)
[Output Only] The gateway address for default routes to reach destination addresses outside this subnetwork.
optional string gateway_address = 459867385;
Name | Description |
value | ByteString The bytes for gatewayAddress to set. |
Type | Description |
Subnetwork.Builder | This builder for chaining. |
setId(long value)
public Subnetwork.Builder setId(long value)
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
Name | Description |
value | long The id to set. |
Type | Description |
Subnetwork.Builder | This builder for chaining. |
setIpCidrRange(String value)
public Subnetwork.Builder setIpCidrRange(String value)
The range of internal addresses that are owned by this subnetwork. Provide this property when you create the subnetwork. For example, 10.0.0.0/8 or 100.64.0.0/10. Ranges must be unique and non-overlapping within a network. Only IPv4 is supported. This field is set at resource creation time. The range can be any range listed in the Valid ranges list. The range can be expanded after creation using expandIpCidrRange.
optional string ip_cidr_range = 98117322;
Name | Description |
value | String The ipCidrRange to set. |
Type | Description |
Subnetwork.Builder | This builder for chaining. |
setIpCidrRangeBytes(ByteString value)
public Subnetwork.Builder setIpCidrRangeBytes(ByteString value)
The range of internal addresses that are owned by this subnetwork. Provide this property when you create the subnetwork. For example, 10.0.0.0/8 or 100.64.0.0/10. Ranges must be unique and non-overlapping within a network. Only IPv4 is supported. This field is set at resource creation time. The range can be any range listed in the Valid ranges list. The range can be expanded after creation using expandIpCidrRange.
optional string ip_cidr_range = 98117322;
Name | Description |
value | ByteString The bytes for ipCidrRange to set. |
Type | Description |
Subnetwork.Builder | This builder for chaining. |
setIpv6AccessType(String value)
public Subnetwork.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. If the ipv6_type is EXTERNAL then this subnet cannot enable direct path. 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 |
Subnetwork.Builder | This builder for chaining. |
setIpv6AccessTypeBytes(ByteString value)
public Subnetwork.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. If the ipv6_type is EXTERNAL then this subnet cannot enable direct path. 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 |
Subnetwork.Builder | This builder for chaining. |
setIpv6CidrRange(String value)
public Subnetwork.Builder setIpv6CidrRange(String value)
[Output Only] The range of internal IPv6 addresses that are owned by this subnetwork.
optional string ipv6_cidr_range = 273141258;
Name | Description |
value | String The ipv6CidrRange to set. |
Type | Description |
Subnetwork.Builder | This builder for chaining. |
setIpv6CidrRangeBytes(ByteString value)
public Subnetwork.Builder setIpv6CidrRangeBytes(ByteString value)
[Output Only] The range of internal IPv6 addresses that are owned by this subnetwork.
optional string ipv6_cidr_range = 273141258;
Name | Description |
value | ByteString The bytes for ipv6CidrRange to set. |
Type | Description |
Subnetwork.Builder | This builder for chaining. |
setKind(String value)
public Subnetwork.Builder setKind(String value)
[Output Only] Type of the resource. Always compute#subnetwork for Subnetwork resources.
optional string kind = 3292052;
Name | Description |
value | String The kind to set. |
Type | Description |
Subnetwork.Builder | This builder for chaining. |
setKindBytes(ByteString value)
public Subnetwork.Builder setKindBytes(ByteString value)
[Output Only] Type of the resource. Always compute#subnetwork for Subnetwork resources.
optional string kind = 3292052;
Name | Description |
value | ByteString The bytes for kind to set. |
Type | Description |
Subnetwork.Builder | This builder for chaining. |
setLogConfig(SubnetworkLogConfig value)
public Subnetwork.Builder setLogConfig(SubnetworkLogConfig value)
This field denotes the VPC flow logging options for this subnetwork. If logging is enabled, logs are exported to Cloud Logging.
optional .google.cloud.compute.v1.SubnetworkLogConfig log_config = 351299741;
Name | Description |
value | SubnetworkLogConfig |
Type | Description |
Subnetwork.Builder |
setLogConfig(SubnetworkLogConfig.Builder builderForValue)
public Subnetwork.Builder setLogConfig(SubnetworkLogConfig.Builder builderForValue)
This field denotes the VPC flow logging options for this subnetwork. If logging is enabled, logs are exported to Cloud Logging.
optional .google.cloud.compute.v1.SubnetworkLogConfig log_config = 351299741;
Name | Description |
builderForValue | SubnetworkLogConfig.Builder |
Type | Description |
Subnetwork.Builder |
setName(String value)
public Subnetwork.Builder setName(String value)
The name of the resource, provided by the client when initially creating the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;
Name | Description |
value | String The name to set. |
Type | Description |
Subnetwork.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public Subnetwork.Builder setNameBytes(ByteString value)
The name of the resource, provided by the client when initially creating the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
Subnetwork.Builder | This builder for chaining. |
setNetwork(String value)
public Subnetwork.Builder setNetwork(String value)
The URL of the network to which this subnetwork belongs, provided by the client when initially creating the subnetwork. This field can be set only at resource creation time.
optional string network = 232872494;
Name | Description |
value | String The network to set. |
Type | Description |
Subnetwork.Builder | This builder for chaining. |
setNetworkBytes(ByteString value)
public Subnetwork.Builder setNetworkBytes(ByteString value)
The URL of the network to which this subnetwork belongs, provided by the client when initially creating the subnetwork. This field can be set only at resource creation time.
optional string network = 232872494;
Name | Description |
value | ByteString The bytes for network to set. |
Type | Description |
Subnetwork.Builder | This builder for chaining. |
setPrivateIpGoogleAccess(boolean value)
public Subnetwork.Builder setPrivateIpGoogleAccess(boolean value)
Whether the VMs in this subnet can access Google services without assigned external IP addresses. This field can be both set at resource creation time and updated using setPrivateIpGoogleAccess.
optional bool private_ip_google_access = 421491790;
Name | Description |
value | boolean The privateIpGoogleAccess to set. |
Type | Description |
Subnetwork.Builder | This builder for chaining. |
setPrivateIpv6GoogleAccess(String value)
public Subnetwork.Builder setPrivateIpv6GoogleAccess(String value)
The private IPv6 google access type for the VMs in this subnet. This is an expanded field of enablePrivateV6Access. If both fields are set, privateIpv6GoogleAccess will take priority. This field can be both set at resource creation time and updated using patch. Check the PrivateIpv6GoogleAccess enum for the list of possible values.
optional string private_ipv6_google_access = 48277006;
Name | Description |
value | String The privateIpv6GoogleAccess to set. |
Type | Description |
Subnetwork.Builder | This builder for chaining. |
setPrivateIpv6GoogleAccessBytes(ByteString value)
public Subnetwork.Builder setPrivateIpv6GoogleAccessBytes(ByteString value)
The private IPv6 google access type for the VMs in this subnet. This is an expanded field of enablePrivateV6Access. If both fields are set, privateIpv6GoogleAccess will take priority. This field can be both set at resource creation time and updated using patch. Check the PrivateIpv6GoogleAccess enum for the list of possible values.
optional string private_ipv6_google_access = 48277006;
Name | Description |
value | ByteString The bytes for privateIpv6GoogleAccess to set. |
Type | Description |
Subnetwork.Builder | This builder for chaining. |
setPurpose(String value)
public Subnetwork.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 |
Subnetwork.Builder | This builder for chaining. |
setPurposeBytes(ByteString value)
public Subnetwork.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 |
Subnetwork.Builder | This builder for chaining. |
setRegion(String value)
public Subnetwork.Builder setRegion(String value)
URL of the region where the Subnetwork resides. This field can be set only at resource creation time.
optional string region = 138946292;
Name | Description |
value | String The region to set. |
Type | Description |
Subnetwork.Builder | This builder for chaining. |
setRegionBytes(ByteString value)
public Subnetwork.Builder setRegionBytes(ByteString value)
URL of the region where the Subnetwork resides. This field can be set only at resource creation time.
optional string region = 138946292;
Name | Description |
value | ByteString The bytes for region to set. |
Type | Description |
Subnetwork.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Subnetwork.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Subnetwork.Builder |
setRole(String value)
public Subnetwork.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 |
Subnetwork.Builder | This builder for chaining. |
setRoleBytes(ByteString value)
public Subnetwork.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 |
Subnetwork.Builder | This builder for chaining. |
setSecondaryIpRanges(int index, SubnetworkSecondaryRange value)
public Subnetwork.Builder setSecondaryIpRanges(int index, SubnetworkSecondaryRange value)
An array of configurations for secondary IP ranges for VM instances contained in this subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. The alias IPs may belong to either primary or secondary ranges. This field can be updated with a patch request.
repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915;
Name | Description |
index | int |
value | SubnetworkSecondaryRange |
Type | Description |
Subnetwork.Builder |
setSecondaryIpRanges(int index, SubnetworkSecondaryRange.Builder builderForValue)
public Subnetwork.Builder setSecondaryIpRanges(int index, SubnetworkSecondaryRange.Builder builderForValue)
An array of configurations for secondary IP ranges for VM instances contained in this subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. The alias IPs may belong to either primary or secondary ranges. This field can be updated with a patch request.
repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915;
Name | Description |
index | int |
builderForValue | SubnetworkSecondaryRange.Builder |
Type | Description |
Subnetwork.Builder |
setSelfLink(String value)
public Subnetwork.Builder setSelfLink(String value)
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
Name | Description |
value | String The selfLink to set. |
Type | Description |
Subnetwork.Builder | This builder for chaining. |
setSelfLinkBytes(ByteString value)
public Subnetwork.Builder setSelfLinkBytes(ByteString value)
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
Name | Description |
value | ByteString The bytes for selfLink to set. |
Type | Description |
Subnetwork.Builder | This builder for chaining. |
setStackType(String value)
public Subnetwork.Builder setStackType(String value)
The stack type for this subnet to identify whether the IPv6 feature is enabled or not. If not specified IPV4_ONLY will be 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 |
Subnetwork.Builder | This builder for chaining. |
setStackTypeBytes(ByteString value)
public Subnetwork.Builder setStackTypeBytes(ByteString value)
The stack type for this subnet to identify whether the IPv6 feature is enabled or not. If not specified IPV4_ONLY will be 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 |
Subnetwork.Builder | This builder for chaining. |
setState(String value)
public Subnetwork.Builder setState(String value)
[Output Only] The state of the subnetwork, which can be one of the following values: READY: Subnetwork is created and ready to use DRAINING: only applicable to subnetworks that have the purpose set to INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the load balancer are being drained. A subnetwork that is draining cannot be used or modified until it reaches a status of READY Check the State enum for the list of possible values.
optional string state = 109757585;
Name | Description |
value | String The state to set. |
Type | Description |
Subnetwork.Builder | This builder for chaining. |
setStateBytes(ByteString value)
public Subnetwork.Builder setStateBytes(ByteString value)
[Output Only] The state of the subnetwork, which can be one of the following values: READY: Subnetwork is created and ready to use DRAINING: only applicable to subnetworks that have the purpose set to INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the load balancer are being drained. A subnetwork that is draining cannot be used or modified until it reaches a status of READY Check the State enum for the list of possible values.
optional string state = 109757585;
Name | Description |
value | ByteString The bytes for state to set. |
Type | Description |
Subnetwork.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Subnetwork.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Subnetwork.Builder |