Class 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.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
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Subnet.Builder>
      • clear

        public Subnet.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Subnet.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Subnet.Builder>
      • getDefaultInstanceForType

        public Subnet getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Subnet build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Subnet buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Subnet.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Subnet.Builder>
      • setField

        public Subnet.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                       Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Subnet.Builder>
      • clearField

        public Subnet.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Subnet.Builder>
      • clearOneof

        public Subnet.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Subnet.Builder>
      • setRepeatedField

        public Subnet.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               int index,
                                               Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Subnet.Builder>
      • addRepeatedField

        public Subnet.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Subnet.Builder>
      • mergeFrom

        public Subnet.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Subnet.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Subnet.Builder>
      • mergeFrom

        public Subnet.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                 throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Subnet.Builder>
        Throws:
        IOException
      • 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];
        Specified by:
        getName in interface SubnetOrBuilder
        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:
        getNameBytes in interface SubnetOrBuilder
        Returns:
        The bytes for name.
      • setName

        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];
        Parameters:
        value - The name to set.
        Returns:
        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:
        This builder for chaining.
      • setNameBytes

        public Subnet.Builder setNameBytes​(com.google.protobuf.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];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getIpCidrRange

        public String getIpCidrRange()
         The IP address range of the subnet in CIDR format '10.0.0.0/24'.
         
        string ip_cidr_range = 7;
        Specified by:
        getIpCidrRange in interface SubnetOrBuilder
        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:
        getIpCidrRangeBytes in interface SubnetOrBuilder
        Returns:
        The bytes for ipCidrRange.
      • setIpCidrRange

        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;
        Parameters:
        value - The ipCidrRange to set.
        Returns:
        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:
        This builder for chaining.
      • setIpCidrRangeBytes

        public Subnet.Builder setIpCidrRangeBytes​(com.google.protobuf.ByteString value)
         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

        public String getGatewayIp()
         The IP address of the gateway of this subnet.
         Must fall within the IP prefix defined above.
         
        string gateway_ip = 8;
        Specified by:
        getGatewayIp in interface SubnetOrBuilder
        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:
        getGatewayIpBytes in interface SubnetOrBuilder
        Returns:
        The bytes for gatewayIp.
      • setGatewayIp

        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;
        Parameters:
        value - The gatewayIp to set.
        Returns:
        This builder for chaining.
      • 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:
        This builder for chaining.
      • setGatewayIpBytes

        public Subnet.Builder setGatewayIpBytes​(com.google.protobuf.ByteString value)
         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

        public String getType()
         Output only. The type of the subnet. For example "management" or
         "userDefined".
         
        string type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getType in interface SubnetOrBuilder
        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:
        getTypeBytes in interface SubnetOrBuilder
        Returns:
        The bytes for type.
      • setType

        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];
        Parameters:
        value - The type to set.
        Returns:
        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:
        This builder for chaining.
      • setTypeBytes

        public Subnet.Builder setTypeBytes​(com.google.protobuf.ByteString value)
         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:
        getStateValue in interface SubnetOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • setStateValue

        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];
        Parameters:
        value - The enum numeric value on the wire for state to set.
        Returns:
        This builder for chaining.
      • 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];
        Specified by:
        getState in interface SubnetOrBuilder
        Returns:
        The state.
      • setState

        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];
        Parameters:
        value - The state to set.
        Returns:
        This builder for chaining.
      • 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:
        This builder for chaining.
      • setUnknownFields

        public final Subnet.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Subnet.Builder>
      • mergeUnknownFields

        public final Subnet.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Subnet.Builder>