Class Subnet.Builder (0.49.0)

public static final class Subnet.Builder extends GeneratedMessageV3.Builder<Subnet.Builder> 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

Implements

SubnetOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Subnet.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Subnet.Builder
Overrides

build()

public Subnet build()
Returns
Type Description
Subnet

buildPartial()

public Subnet buildPartial()
Returns
Type Description
Subnet

clear()

public Subnet.Builder clear()
Returns
Type Description
Subnet.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Subnet.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Subnet.Builder
Overrides

clearGatewayIp()

public Subnet.Builder clearGatewayIp()

The IP address of the gateway of this subnet. Must fall within the IP prefix defined above.

string gateway_ip = 8;

Returns
Type Description
Subnet.Builder

This builder for chaining.

clearIpCidrRange()

public Subnet.Builder clearIpCidrRange()

The IP address range of the subnet in CIDR format '10.0.0.0/24'.

string ip_cidr_range = 7;

Returns
Type Description
Subnet.Builder

This builder for chaining.

clearName()

public Subnet.Builder clearName()

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-central1-a/privateClouds/my-cloud/subnets/my-subnet

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Subnet.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Subnet.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Subnet.Builder
Overrides

clearState()

public Subnet.Builder clearState()

Output only. The state of the resource.

.google.cloud.vmwareengine.v1.Subnet.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Subnet.Builder

This builder for chaining.

clearType()

public Subnet.Builder clearType()

Output only. The type of the subnet. For example "management" or "userDefined".

string type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Subnet.Builder

This builder for chaining.

clearVlanId()

public Subnet.Builder clearVlanId()

Output only. VLAN ID of the VLAN on which the subnet is configured

int32 vlan_id = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Subnet.Builder

This builder for chaining.

clone()

public Subnet.Builder clone()
Returns
Type Description
Subnet.Builder
Overrides

getDefaultInstanceForType()

public Subnet getDefaultInstanceForType()
Returns
Type Description
Subnet

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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
Type Description
ByteString

The bytes for gatewayIp.

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()

public String 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-central1-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-central1-a/privateClouds/my-cloud/subnets/my-subnet

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

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
Type Description
Subnet.State

The state.

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()

public String 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
Type Description
ByteString

The bytes for type.

getVlanId()

public int getVlanId()

Output only. VLAN ID of the VLAN on which the subnet is configured

int32 vlan_id = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The vlanId.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Subnet other)

public Subnet.Builder mergeFrom(Subnet other)
Parameter
Name Description
other Subnet
Returns
Type Description
Subnet.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Subnet.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Subnet.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Subnet.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Subnet.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Subnet.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Subnet.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Subnet.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Subnet.Builder
Overrides

setGatewayIp(String value)

public Subnet.Builder setGatewayIp(String value)

The IP address of the gateway of this subnet. Must fall within the IP prefix defined above.

string gateway_ip = 8;

Parameter
Name Description
value String

The gatewayIp to set.

Returns
Type Description
Subnet.Builder

This builder for chaining.

setGatewayIpBytes(ByteString value)

public Subnet.Builder setGatewayIpBytes(ByteString value)

The IP address of the gateway of this subnet. Must fall within the IP prefix defined above.

string gateway_ip = 8;

Parameter
Name Description
value ByteString

The bytes for gatewayIp to set.

Returns
Type Description
Subnet.Builder

This builder for chaining.

setIpCidrRange(String value)

public Subnet.Builder setIpCidrRange(String value)

The IP address range of the subnet in CIDR format '10.0.0.0/24'.

string ip_cidr_range = 7;

Parameter
Name Description
value String

The ipCidrRange to set.

Returns
Type Description
Subnet.Builder

This builder for chaining.

setIpCidrRangeBytes(ByteString value)

public Subnet.Builder setIpCidrRangeBytes(ByteString value)

The IP address range of the subnet in CIDR format '10.0.0.0/24'.

string ip_cidr_range = 7;

Parameter
Name Description
value ByteString

The bytes for ipCidrRange to set.

Returns
Type Description
Subnet.Builder

This builder for chaining.

setName(String value)

public Subnet.Builder setName(String value)

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-central1-a/privateClouds/my-cloud/subnets/my-subnet

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Subnet.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Subnet.Builder setNameBytes(ByteString value)

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-central1-a/privateClouds/my-cloud/subnets/my-subnet

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Subnet.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Subnet.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Subnet.Builder
Overrides

setState(Subnet.State value)

public Subnet.Builder setState(Subnet.State value)

Output only. The state of the resource.

.google.cloud.vmwareengine.v1.Subnet.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Subnet.State

The state to set.

Returns
Type Description
Subnet.Builder

This builder for chaining.

setStateValue(int value)

public Subnet.Builder setStateValue(int value)

Output only. The state of the resource.

.google.cloud.vmwareengine.v1.Subnet.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
Subnet.Builder

This builder for chaining.

setType(String value)

public Subnet.Builder setType(String value)

Output only. The type of the subnet. For example "management" or "userDefined".

string type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The type to set.

Returns
Type Description
Subnet.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public Subnet.Builder setTypeBytes(ByteString value)

Output only. The type of the subnet. For example "management" or "userDefined".

string type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
Subnet.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Subnet.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Subnet.Builder
Overrides

setVlanId(int value)

public Subnet.Builder setVlanId(int value)

Output only. VLAN ID of the VLAN on which the subnet is configured

int32 vlan_id = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The vlanId to set.

Returns
Type Description
Subnet.Builder

This builder for chaining.