public final class Subnet extends GeneratedMessageV3 implements SubnetOrBuilder
Subnet in a private cloud. Either management
subnets (such as vMotion) that
are read-only, or userDefined
, which can also be updated.
Protobuf type google.cloud.vmwareengine.v1.Subnet
Static Fields
GATEWAY_IP_FIELD_NUMBER
public static final int GATEWAY_IP_FIELD_NUMBER
Field Value
IP_CIDR_RANGE_FIELD_NUMBER
public static final int IP_CIDR_RANGE_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
Field Value
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Subnet getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Subnet.Builder newBuilder()
Returns
newBuilder(Subnet prototype)
public static Subnet.Builder newBuilder(Subnet prototype)
Parameter
Name | Description |
prototype | Subnet
|
Returns
public static Subnet parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Subnet parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Subnet parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Subnet parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Subnet parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Subnet parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Subnet parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Subnet parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Subnet parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Subnet parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Subnet parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Subnet parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Subnet> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public Subnet getDefaultInstanceForType()
Returns
getGatewayIp()
public String getGatewayIp()
The IP address of the gateway of this subnet.
Must fall within the IP prefix defined above.
string gateway_ip = 8;
Returns
Type | Description |
String | The gatewayIp.
|
getGatewayIpBytes()
public ByteString getGatewayIpBytes()
The IP address of the gateway of this subnet.
Must fall within the IP prefix defined above.
string gateway_ip = 8;
Returns
getIpCidrRange()
public String getIpCidrRange()
The IP address range of the subnet in CIDR format '10.0.0.0/24'.
string ip_cidr_range = 7;
Returns
Type | Description |
String | The ipCidrRange.
|
getIpCidrRangeBytes()
public ByteString getIpCidrRangeBytes()
The IP address range of the subnet in CIDR format '10.0.0.0/24'.
string ip_cidr_range = 7;
Returns
Type | Description |
ByteString | The bytes for ipCidrRange.
|
getName()
Output only. The resource name of this subnet.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
projects/my-project/locations/us-west1-a/privateClouds/my-cloud/subnets/my-subnet
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
Output only. The resource name of this subnet.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
projects/my-project/locations/us-west1-a/privateClouds/my-cloud/subnets/my-subnet
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getParserForType()
public Parser<Subnet> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getState()
public Subnet.State getState()
Output only. The state of the resource.
.google.cloud.vmwareengine.v1.Subnet.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getStateValue()
public int getStateValue()
Output only. The state of the resource.
.google.cloud.vmwareengine.v1.Subnet.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
int | The enum numeric value on the wire for state.
|
getType()
Output only. The type of the subnet. For example "management" or "userDefined".
string type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
String | The type.
|
getTypeBytes()
public ByteString getTypeBytes()
Output only. The type of the subnet. For example "management" or "userDefined".
string type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Subnet.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Subnet.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Subnet.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions