Package com.google.cloud.vmwareengine.v1
Class HcxActivationKey.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<HcxActivationKey.Builder>
-
- com.google.cloud.vmwareengine.v1.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 typegoogle.cloud.vmwareengine.v1.HcxActivationKey
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HcxActivationKey.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)HcxActivationKeybuild()HcxActivationKeybuildPartial()HcxActivationKey.Builderclear()HcxActivationKey.BuilderclearActivationKey()Output only.HcxActivationKey.BuilderclearCreateTime()Output only.HcxActivationKey.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)HcxActivationKey.BuilderclearName()Output only.HcxActivationKey.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)HcxActivationKey.BuilderclearState()Output only.HcxActivationKey.BuilderclearUid()Output only.HcxActivationKey.Builderclone()StringgetActivationKey()Output only.com.google.protobuf.ByteStringgetActivationKeyBytes()Output only.com.google.protobuf.TimestampgetCreateTime()Output only.com.google.protobuf.Timestamp.BuildergetCreateTimeBuilder()Output only.com.google.protobuf.TimestampOrBuildergetCreateTimeOrBuilder()Output only.HcxActivationKeygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetName()Output only.com.google.protobuf.ByteStringgetNameBytes()Output only.HcxActivationKey.StategetState()Output only.intgetStateValue()Output only.StringgetUid()Output only.com.google.protobuf.ByteStringgetUidBytes()Output only.booleanhasCreateTime()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()HcxActivationKey.BuildermergeCreateTime(com.google.protobuf.Timestamp value)Output only.HcxActivationKey.BuildermergeFrom(HcxActivationKey other)HcxActivationKey.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)HcxActivationKey.BuildermergeFrom(com.google.protobuf.Message other)HcxActivationKey.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)HcxActivationKey.BuildersetActivationKey(String value)Output only.HcxActivationKey.BuildersetActivationKeyBytes(com.google.protobuf.ByteString value)Output only.HcxActivationKey.BuildersetCreateTime(com.google.protobuf.Timestamp value)Output only.HcxActivationKey.BuildersetCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.HcxActivationKey.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)HcxActivationKey.BuildersetName(String value)Output only.HcxActivationKey.BuildersetNameBytes(com.google.protobuf.ByteString value)Output only.HcxActivationKey.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)HcxActivationKey.BuildersetState(HcxActivationKey.State value)Output only.HcxActivationKey.BuildersetStateValue(int value)Output only.HcxActivationKey.BuildersetUid(String value)Output only.HcxActivationKey.BuildersetUidBytes(com.google.protobuf.ByteString value)Output only.HcxActivationKey.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<HcxActivationKey.Builder>
-
clear
public HcxActivationKey.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<HcxActivationKey.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.GeneratedMessageV3.Builder<HcxActivationKey.Builder>
-
getDefaultInstanceForType
public HcxActivationKey getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public HcxActivationKey build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public HcxActivationKey buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public HcxActivationKey.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<HcxActivationKey.Builder>
-
setField
public HcxActivationKey.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<HcxActivationKey.Builder>
-
clearField
public HcxActivationKey.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<HcxActivationKey.Builder>
-
clearOneof
public HcxActivationKey.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<HcxActivationKey.Builder>
-
setRepeatedField
public HcxActivationKey.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<HcxActivationKey.Builder>
-
addRepeatedField
public HcxActivationKey.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<HcxActivationKey.Builder>
-
mergeFrom
public HcxActivationKey.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HcxActivationKey.Builder>
-
mergeFrom
public HcxActivationKey.Builder mergeFrom(HcxActivationKey other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getNamein interfaceHcxActivationKeyOrBuilder- 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:
getNameBytesin interfaceHcxActivationKeyOrBuilder- 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:
hasCreateTimein interfaceHcxActivationKeyOrBuilder- 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:
getCreateTimein interfaceHcxActivationKeyOrBuilder- 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:
getCreateTimeOrBuilderin interfaceHcxActivationKeyOrBuilder
-
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:
getStateValuein interfaceHcxActivationKeyOrBuilder- 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:
getStatein interfaceHcxActivationKeyOrBuilder- 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:
getActivationKeyin interfaceHcxActivationKeyOrBuilder- 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:
getActivationKeyBytesin interfaceHcxActivationKeyOrBuilder- 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:
getUidin interfaceHcxActivationKeyOrBuilder- 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:
getUidBytesin interfaceHcxActivationKeyOrBuilder- 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<HcxActivationKey.Builder>
-
mergeUnknownFields
public final HcxActivationKey.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<HcxActivationKey.Builder>
-
-