Package com.google.cloud.vmwareengine.v1
Class Subnet.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Subnet.Builder>
com.google.cloud.vmwareengine.v1.Subnet.Builder
- All Implemented Interfaces:
SubnetOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Subnet
public static final class Subnet.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The IP address of the gateway of this subnet.The IP address range of the subnet in CIDR format '10.0.0.0/24'.Output only.Output only.Output only.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe IP address of the gateway of this subnet.com.google.protobuf.ByteStringThe IP address of the gateway of this subnet.The IP address range of the subnet in CIDR format '10.0.0.0/24'.com.google.protobuf.ByteStringThe IP address range of the subnet in CIDR format '10.0.0.0/24'.getName()Output only.com.google.protobuf.ByteStringOutput only.getState()Output only.intOutput only.getType()Output only.com.google.protobuf.ByteStringOutput only.intOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setGatewayIp(String value) The IP address of the gateway of this subnet.setGatewayIpBytes(com.google.protobuf.ByteString value) The IP address of the gateway of this subnet.setIpCidrRange(String value) The IP address range of the subnet in CIDR format '10.0.0.0/24'.setIpCidrRangeBytes(com.google.protobuf.ByteString value) The IP address range of the subnet in CIDR format '10.0.0.0/24'.Output only.setNameBytes(com.google.protobuf.ByteString value) Output only.setState(Subnet.State value) Output only.setStateValue(int value) Output only.Output only.setTypeBytes(com.google.protobuf.ByteString value) Output only.setVlanId(int value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Subnet.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Subnet.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Subnet.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Subnet.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Subnet.Builder>
-
mergeFrom
public Subnet.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Subnet.Builder>- Throws:
IOException
-
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];- Specified by:
getNamein interfaceSubnetOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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];- Specified by:
getNameBytesin interfaceSubnetOrBuilder- Returns:
- The bytes for name.
-
setName
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];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setNameBytes
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];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getIpCidrRange
The IP address range of the subnet in CIDR format '10.0.0.0/24'.
string ip_cidr_range = 7;- Specified by:
getIpCidrRangein interfaceSubnetOrBuilder- Returns:
- The ipCidrRange.
-
getIpCidrRangeBytes
public com.google.protobuf.ByteString getIpCidrRangeBytes()The IP address range of the subnet in CIDR format '10.0.0.0/24'.
string ip_cidr_range = 7;- Specified by:
getIpCidrRangeBytesin interfaceSubnetOrBuilder- Returns:
- The bytes for ipCidrRange.
-
setIpCidrRange
The IP address range of the subnet in CIDR format '10.0.0.0/24'.
string ip_cidr_range = 7;- Parameters:
value- The ipCidrRange to set.- Returns:
- This builder for chaining.
-
clearIpCidrRange
The IP address range of the subnet in CIDR format '10.0.0.0/24'.
string ip_cidr_range = 7;- Returns:
- This builder for chaining.
-
setIpCidrRangeBytes
The IP address range of the subnet in CIDR format '10.0.0.0/24'.
string ip_cidr_range = 7;- Parameters:
value- The bytes for ipCidrRange to set.- Returns:
- This builder for chaining.
-
getGatewayIp
The IP address of the gateway of this subnet. Must fall within the IP prefix defined above.
string gateway_ip = 8;- Specified by:
getGatewayIpin interfaceSubnetOrBuilder- Returns:
- The gatewayIp.
-
getGatewayIpBytes
public com.google.protobuf.ByteString getGatewayIpBytes()The IP address of the gateway of this subnet. Must fall within the IP prefix defined above.
string gateway_ip = 8;- Specified by:
getGatewayIpBytesin interfaceSubnetOrBuilder- Returns:
- The bytes for gatewayIp.
-
setGatewayIp
The IP address of the gateway of this subnet. Must fall within the IP prefix defined above.
string gateway_ip = 8;- Parameters:
value- The gatewayIp to set.- Returns:
- This builder for chaining.
-
clearGatewayIp
The IP address of the gateway of this subnet. Must fall within the IP prefix defined above.
string gateway_ip = 8;- Returns:
- This builder for chaining.
-
setGatewayIpBytes
The IP address of the gateway of this subnet. Must fall within the IP prefix defined above.
string gateway_ip = 8;- Parameters:
value- The bytes for gatewayIp to set.- Returns:
- This builder for chaining.
-
getType
Output only. The type of the subnet. For example "management" or "userDefined".
string type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTypein interfaceSubnetOrBuilder- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()Output only. The type of the subnet. For example "management" or "userDefined".
string type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTypeBytesin interfaceSubnetOrBuilder- Returns:
- The bytes for type.
-
setType
Output only. The type of the subnet. For example "management" or "userDefined".
string type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
Output only. The type of the subnet. For example "management" or "userDefined".
string type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setTypeBytes
Output only. The type of the subnet. For example "management" or "userDefined".
string type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for type to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getStateValuein interfaceSubnetOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
Output only. The state of the resource.
.google.cloud.vmwareengine.v1.Subnet.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
Output only. The state of the resource.
.google.cloud.vmwareengine.v1.Subnet.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatein interfaceSubnetOrBuilder- Returns:
- The state.
-
setState
Output only. The state of the resource.
.google.cloud.vmwareengine.v1.Subnet.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
Output only. The state of the resource.
.google.cloud.vmwareengine.v1.Subnet.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
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];- Specified by:
getVlanIdin interfaceSubnetOrBuilder- Returns:
- The vlanId.
-
setVlanId
Output only. VLAN ID of the VLAN on which the subnet is configured
int32 vlan_id = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The vlanId to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-