Class HcxActivationKey.Builder

  • All Implemented Interfaces:
    HcxActivationKeyOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    HcxActivationKey

    public static final class HcxActivationKey.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<HcxActivationKey.Builder>
    implements HcxActivationKeyOrBuilder
     HCX activation key. A default key is created during
     private cloud provisioning, but this behavior is subject to change
     and you should always verify active keys.
     Use
     [VmwareEngine.ListHcxActivationKeys][google.cloud.vmwareengine.v1.VmwareEngine.ListHcxActivationKeys]
     to retrieve existing keys and
     [VmwareEngine.CreateHcxActivationKey][google.cloud.vmwareengine.v1.VmwareEngine.CreateHcxActivationKey]
     to create new ones.
     
    Protobuf type google.cloud.vmwareengine.v1.HcxActivationKey
    • 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<HcxActivationKey.Builder>
      • clear

        public HcxActivationKey.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<HcxActivationKey.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<HcxActivationKey.Builder>
      • getDefaultInstanceForType

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

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

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

        public HcxActivationKey.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<HcxActivationKey.Builder>
      • setField

        public HcxActivationKey.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<HcxActivationKey.Builder>
      • clearField

        public HcxActivationKey.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<HcxActivationKey.Builder>
      • clearOneof

        public HcxActivationKey.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<HcxActivationKey.Builder>
      • setRepeatedField

        public HcxActivationKey.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<HcxActivationKey.Builder>
      • addRepeatedField

        public HcxActivationKey.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<HcxActivationKey.Builder>
      • mergeFrom

        public HcxActivationKey.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<HcxActivationKey.Builder>
      • isInitialized

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

        public HcxActivationKey.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<HcxActivationKey.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         Output only. The resource name of this HcxActivationKey.
         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/privateClouds/my-cloud/hcxActivationKeys/my-key`
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getName in interface HcxActivationKeyOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Output only. The resource name of this HcxActivationKey.
         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/privateClouds/my-cloud/hcxActivationKeys/my-key`
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNameBytes in interface HcxActivationKeyOrBuilder
        Returns:
        The bytes for name.
      • setName

        public HcxActivationKey.Builder setName​(String value)
         Output only. The resource name of this HcxActivationKey.
         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/privateClouds/my-cloud/hcxActivationKeys/my-key`
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public HcxActivationKey.Builder clearName()
         Output only. The resource name of this HcxActivationKey.
         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/privateClouds/my-cloud/hcxActivationKeys/my-key`
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setNameBytes

        public HcxActivationKey.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Output only. The resource name of this HcxActivationKey.
         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/privateClouds/my-cloud/hcxActivationKeys/my-key`
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. Creation time of HCX activation key.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface HcxActivationKeyOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. Creation time of HCX activation key.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface HcxActivationKeyOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        public HcxActivationKey.Builder setCreateTime​(com.google.protobuf.Timestamp value)
         Output only. Creation time of HCX activation key.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setCreateTime

        public HcxActivationKey.Builder setCreateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. Creation time of HCX activation key.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeCreateTime

        public HcxActivationKey.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         Output only. Creation time of HCX activation key.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearCreateTime

        public HcxActivationKey.Builder clearCreateTime()
         Output only. Creation time of HCX activation key.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
         Output only. Creation time of HCX activation key.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. Creation time of HCX activation key.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface HcxActivationKeyOrBuilder
      • getStateValue

        public int getStateValue()
         Output only. State of HCX activation key.
         
        .google.cloud.vmwareengine.v1.HcxActivationKey.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateValue in interface HcxActivationKeyOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • setStateValue

        public HcxActivationKey.Builder setStateValue​(int value)
         Output only. State of HCX activation key.
         
        .google.cloud.vmwareengine.v1.HcxActivationKey.State state = 3 [(.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 HcxActivationKey.State getState()
         Output only. State of HCX activation key.
         
        .google.cloud.vmwareengine.v1.HcxActivationKey.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getState in interface HcxActivationKeyOrBuilder
        Returns:
        The state.
      • setState

        public HcxActivationKey.Builder setState​(HcxActivationKey.State value)
         Output only. State of HCX activation key.
         
        .google.cloud.vmwareengine.v1.HcxActivationKey.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The state to set.
        Returns:
        This builder for chaining.
      • clearState

        public HcxActivationKey.Builder clearState()
         Output only. State of HCX activation key.
         
        .google.cloud.vmwareengine.v1.HcxActivationKey.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getActivationKey

        public String getActivationKey()
         Output only. HCX activation key.
         
        string activation_key = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getActivationKey in interface HcxActivationKeyOrBuilder
        Returns:
        The activationKey.
      • getActivationKeyBytes

        public com.google.protobuf.ByteString getActivationKeyBytes()
         Output only. HCX activation key.
         
        string activation_key = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getActivationKeyBytes in interface HcxActivationKeyOrBuilder
        Returns:
        The bytes for activationKey.
      • setActivationKey

        public HcxActivationKey.Builder setActivationKey​(String value)
         Output only. HCX activation key.
         
        string activation_key = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The activationKey to set.
        Returns:
        This builder for chaining.
      • clearActivationKey

        public HcxActivationKey.Builder clearActivationKey()
         Output only. HCX activation key.
         
        string activation_key = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setActivationKeyBytes

        public HcxActivationKey.Builder setActivationKeyBytes​(com.google.protobuf.ByteString value)
         Output only. HCX activation key.
         
        string activation_key = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for activationKey to set.
        Returns:
        This builder for chaining.
      • getUid

        public String getUid()
         Output only. System-generated unique identifier for the resource.
         
        string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUid in interface HcxActivationKeyOrBuilder
        Returns:
        The uid.
      • getUidBytes

        public com.google.protobuf.ByteString getUidBytes()
         Output only. System-generated unique identifier for the resource.
         
        string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUidBytes in interface HcxActivationKeyOrBuilder
        Returns:
        The bytes for uid.
      • setUid

        public HcxActivationKey.Builder setUid​(String value)
         Output only. System-generated unique identifier for the resource.
         
        string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The uid to set.
        Returns:
        This builder for chaining.
      • clearUid

        public HcxActivationKey.Builder clearUid()
         Output only. System-generated unique identifier for the resource.
         
        string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setUidBytes

        public HcxActivationKey.Builder setUidBytes​(com.google.protobuf.ByteString value)
         Output only. System-generated unique identifier for the resource.
         
        string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for uid to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final HcxActivationKey.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<HcxActivationKey.Builder>
      • mergeUnknownFields

        public final HcxActivationKey.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<HcxActivationKey.Builder>