Interface UsableSubnetworkOrBuilder (1.52.0)

public interface UsableSubnetworkOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getExternalIpv6Prefix()

public abstract String getExternalIpv6Prefix()

[Output Only] The external IPv6 address range that is assigned to this subnetwork.

optional string external_ipv6_prefix = 139299190;

Returns
Type Description
String

The externalIpv6Prefix.

getExternalIpv6PrefixBytes()

public abstract ByteString getExternalIpv6PrefixBytes()

[Output Only] The external IPv6 address range that is assigned to this subnetwork.

optional string external_ipv6_prefix = 139299190;

Returns
Type Description
ByteString

The bytes for externalIpv6Prefix.

getInternalIpv6Prefix()

public abstract String getInternalIpv6Prefix()

[Output Only] The internal IPv6 address range that is assigned to this subnetwork.

optional string internal_ipv6_prefix = 506270056;

Returns
Type Description
String

The internalIpv6Prefix.

getInternalIpv6PrefixBytes()

public abstract ByteString getInternalIpv6PrefixBytes()

[Output Only] The internal IPv6 address range that is assigned to this subnetwork.

optional string internal_ipv6_prefix = 506270056;

Returns
Type Description
ByteString

The bytes for internalIpv6Prefix.

getIpCidrRange()

public abstract String getIpCidrRange()

The range of internal addresses that are owned by this subnetwork.

optional string ip_cidr_range = 98117322;

Returns
Type Description
String

The ipCidrRange.

getIpCidrRangeBytes()

public abstract ByteString getIpCidrRangeBytes()

The range of internal addresses that are owned by this subnetwork.

optional string ip_cidr_range = 98117322;

Returns
Type Description
ByteString

The bytes for ipCidrRange.

getIpv6AccessType()

public abstract 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;

Returns
Type Description
String

The ipv6AccessType.

getIpv6AccessTypeBytes()

public abstract 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;

Returns
Type Description
ByteString

The bytes for ipv6AccessType.

getNetwork()

public abstract String getNetwork()

Network URL.

optional string network = 232872494;

Returns
Type Description
String

The network.

getNetworkBytes()

public abstract ByteString getNetworkBytes()

Network URL.

optional string network = 232872494;

Returns
Type Description
ByteString

The bytes for network.

getPurpose()

public abstract String getPurpose()

The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY. Check the Purpose enum for the list of possible values.

optional string purpose = 316407070;

Returns
Type Description
String

The purpose.

getPurposeBytes()

public abstract ByteString getPurposeBytes()

The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY. Check the Purpose enum for the list of possible values.

optional string purpose = 316407070;

Returns
Type Description
ByteString

The bytes for purpose.

getRole()

public abstract String getRole()

The role of subnetwork. Currently, this field is only used when purpose is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a region. 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;

Returns
Type Description
String

The role.

getRoleBytes()

public abstract ByteString getRoleBytes()

The role of subnetwork. Currently, this field is only used when purpose is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a region. 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;

Returns
Type Description
ByteString

The bytes for role.

getSecondaryIpRanges(int index)

public abstract UsableSubnetworkSecondaryRange getSecondaryIpRanges(int index)

Secondary IP ranges.

repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;

Parameter
Name Description
index int
Returns
Type Description
UsableSubnetworkSecondaryRange

getSecondaryIpRangesCount()

public abstract int getSecondaryIpRangesCount()

Secondary IP ranges.

repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;

Returns
Type Description
int

getSecondaryIpRangesList()

public abstract List<UsableSubnetworkSecondaryRange> getSecondaryIpRangesList()

Secondary IP ranges.

repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;

Returns
Type Description
List<UsableSubnetworkSecondaryRange>

getSecondaryIpRangesOrBuilder(int index)

public abstract UsableSubnetworkSecondaryRangeOrBuilder getSecondaryIpRangesOrBuilder(int index)

Secondary IP ranges.

repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;

Parameter
Name Description
index int
Returns
Type Description
UsableSubnetworkSecondaryRangeOrBuilder

getSecondaryIpRangesOrBuilderList()

public abstract List<? extends UsableSubnetworkSecondaryRangeOrBuilder> getSecondaryIpRangesOrBuilderList()

Secondary IP ranges.

repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;

Returns
Type Description
List<? extends com.google.cloud.compute.v1.UsableSubnetworkSecondaryRangeOrBuilder>

getStackType()

public abstract 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;

Returns
Type Description
String

The stackType.

getStackTypeBytes()

public abstract 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;

Returns
Type Description
ByteString

The bytes for stackType.

getSubnetwork()

public abstract String getSubnetwork()

Subnetwork URL.

optional string subnetwork = 307827694;

Returns
Type Description
String

The subnetwork.

getSubnetworkBytes()

public abstract ByteString getSubnetworkBytes()

Subnetwork URL.

optional string subnetwork = 307827694;

Returns
Type Description
ByteString

The bytes for subnetwork.

hasExternalIpv6Prefix()

public abstract boolean hasExternalIpv6Prefix()

[Output Only] The external IPv6 address range that is assigned to this subnetwork.

optional string external_ipv6_prefix = 139299190;

Returns
Type Description
boolean

Whether the externalIpv6Prefix field is set.

hasInternalIpv6Prefix()

public abstract boolean hasInternalIpv6Prefix()

[Output Only] The internal IPv6 address range that is assigned to this subnetwork.

optional string internal_ipv6_prefix = 506270056;

Returns
Type Description
boolean

Whether the internalIpv6Prefix field is set.

hasIpCidrRange()

public abstract boolean hasIpCidrRange()

The range of internal addresses that are owned by this subnetwork.

optional string ip_cidr_range = 98117322;

Returns
Type Description
boolean

Whether the ipCidrRange field is set.

hasIpv6AccessType()

public abstract 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;

Returns
Type Description
boolean

Whether the ipv6AccessType field is set.

hasNetwork()

public abstract boolean hasNetwork()

Network URL.

optional string network = 232872494;

Returns
Type Description
boolean

Whether the network field is set.

hasPurpose()

public abstract boolean hasPurpose()

The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY. Check the Purpose enum for the list of possible values.

optional string purpose = 316407070;

Returns
Type Description
boolean

Whether the purpose field is set.

hasRole()

public abstract boolean hasRole()

The role of subnetwork. Currently, this field is only used when purpose is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a region. 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;

Returns
Type Description
boolean

Whether the role field is set.

hasStackType()

public abstract 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;

Returns
Type Description
boolean

Whether the stackType field is set.

hasSubnetwork()

public abstract boolean hasSubnetwork()

Subnetwork URL.

optional string subnetwork = 307827694;

Returns
Type Description
boolean

Whether the subnetwork field is set.