Class Subnet.Builder (0.16.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Subnet.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Subnet.Builder
Overrides

build()

public Subnet build()
Returns
TypeDescription
Subnet

buildPartial()

public Subnet buildPartial()
Returns
TypeDescription
Subnet

clear()

public Subnet.Builder clear()
Returns
TypeDescription
Subnet.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Subnet.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Subnet.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Subnet.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Subnet.Builder

This builder for chaining.

clone()

public Subnet.Builder clone()
Returns
TypeDescription
Subnet.Builder
Overrides

getDefaultInstanceForType()

public Subnet getDefaultInstanceForType()
Returns
TypeDescription
Subnet

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for type.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Subnet other)

public Subnet.Builder mergeFrom(Subnet other)
Parameter
NameDescription
otherSubnet
Returns
TypeDescription
Subnet.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Subnet.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Subnet.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Subnet.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Subnet.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Subnet.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Subnet.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Subnet.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The gatewayIp to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for gatewayIp to set.

Returns
TypeDescription
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
NameDescription
valueString

The ipCidrRange to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for ipCidrRange to set.

Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueSubnet.State

The state to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueString

The type to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for type to set.

Returns
TypeDescription
Subnet.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Subnet.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Subnet.Builder
Overrides