public final class UsableSubnetwork extends GeneratedMessageV3 implements UsableSubnetworkOrBuilder
Subnetwork which the current user has compute.subnetworks.use permission on.
Protobuf type google.cloud.compute.v1.UsableSubnetwork
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
EXTERNAL_IPV6_PREFIX_FIELD_NUMBER
public static final int EXTERNAL_IPV6_PREFIX_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
INTERNAL_IPV6_PREFIX_FIELD_NUMBER
public static final int INTERNAL_IPV6_PREFIX_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
IPV6_ACCESS_TYPE_FIELD_NUMBER
public static final int IPV6_ACCESS_TYPE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
IP_CIDR_RANGE_FIELD_NUMBER
public static final int IP_CIDR_RANGE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
NETWORK_FIELD_NUMBER
public static final int NETWORK_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
PURPOSE_FIELD_NUMBER
public static final int PURPOSE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
ROLE_FIELD_NUMBER
public static final int ROLE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
SECONDARY_IP_RANGES_FIELD_NUMBER
public static final int SECONDARY_IP_RANGES_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
STACK_TYPE_FIELD_NUMBER
public static final int STACK_TYPE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
SUBNETWORK_FIELD_NUMBER
public static final int SUBNETWORK_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static UsableSubnetwork getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static UsableSubnetwork.Builder newBuilder()
newBuilder(UsableSubnetwork prototype)
public static UsableSubnetwork.Builder newBuilder(UsableSubnetwork prototype)
public static UsableSubnetwork parseDelimitedFrom(InputStream input)
public static UsableSubnetwork parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static UsableSubnetwork parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static UsableSubnetwork parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static UsableSubnetwork parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static UsableSubnetwork parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static UsableSubnetwork parseFrom(CodedInputStream input)
public static UsableSubnetwork parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static UsableSubnetwork parseFrom(InputStream input)
public static UsableSubnetwork parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static UsableSubnetwork parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static UsableSubnetwork parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<UsableSubnetwork> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getDefaultInstanceForType()
public UsableSubnetwork getDefaultInstanceForType()
getExternalIpv6Prefix()
public 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 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 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 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 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 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 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 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 String getNetwork()
Network URL.
optional string network = 232872494;
Returns |
---|
Type | Description |
String | The network.
|
getNetworkBytes()
public ByteString getNetworkBytes()
Network URL.
optional string network = 232872494;
Returns |
---|
Type | Description |
ByteString | The bytes for network.
|
getParserForType()
public Parser<UsableSubnetwork> getParserForType()
Overrides
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;
Returns |
---|
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;
Returns |
---|
Type | Description |
ByteString | The bytes for purpose.
|
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;
Returns |
---|
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;
Returns |
---|
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;
Parameter |
---|
Name | Description |
index | int
|
getSecondaryIpRangesCount()
public int getSecondaryIpRangesCount()
Secondary IP ranges.
repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;
Returns |
---|
Type | Description |
int | |
getSecondaryIpRangesList()
public List<UsableSubnetworkSecondaryRange> getSecondaryIpRangesList()
Secondary IP ranges.
repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;
getSecondaryIpRangesOrBuilder(int index)
public UsableSubnetworkSecondaryRangeOrBuilder getSecondaryIpRangesOrBuilder(int index)
Secondary IP ranges.
repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;
Parameter |
---|
Name | Description |
index | int
|
getSecondaryIpRangesOrBuilderList()
public 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> | |
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
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;
Returns |
---|
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;
Returns |
---|
Type | Description |
ByteString | The bytes for stackType.
|
getSubnetwork()
public String getSubnetwork()
Subnetwork URL.
optional string subnetwork = 307827694;
Returns |
---|
Type | Description |
String | The subnetwork.
|
getSubnetworkBytes()
public ByteString getSubnetworkBytes()
Subnetwork URL.
optional string subnetwork = 307827694;
Returns |
---|
Type | Description |
ByteString | The bytes for subnetwork.
|
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Overrides
hasExternalIpv6Prefix()
public 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 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 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 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 boolean hasNetwork()
Network URL.
optional string network = 232872494;
Returns |
---|
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;
Returns |
---|
Type | Description |
boolean | Whether the purpose field is set.
|
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;
Returns |
---|
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;
Returns |
---|
Type | Description |
boolean | Whether the stackType field is set.
|
hasSubnetwork()
public boolean hasSubnetwork()
Subnetwork URL.
optional string subnetwork = 307827694;
Returns |
---|
Type | Description |
boolean | Whether the subnetwork field is set.
|
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public UsableSubnetwork.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected UsableSubnetwork.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public UsableSubnetwork.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides