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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
HcxActivationKey
build()
HcxActivationKey
buildPartial()
HcxActivationKey.Builder
clear()
HcxActivationKey.Builder
clearActivationKey()
Output only.HcxActivationKey.Builder
clearCreateTime()
Output only.HcxActivationKey.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
HcxActivationKey.Builder
clearName()
Output only.HcxActivationKey.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
HcxActivationKey.Builder
clearState()
Output only.HcxActivationKey.Builder
clearUid()
Output only.HcxActivationKey.Builder
clone()
String
getActivationKey()
Output only.com.google.protobuf.ByteString
getActivationKeyBytes()
Output only.com.google.protobuf.Timestamp
getCreateTime()
Output only.com.google.protobuf.Timestamp.Builder
getCreateTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getCreateTimeOrBuilder()
Output only.HcxActivationKey
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getName()
Output only.com.google.protobuf.ByteString
getNameBytes()
Output only.HcxActivationKey.State
getState()
Output only.int
getStateValue()
Output only.String
getUid()
Output only.com.google.protobuf.ByteString
getUidBytes()
Output only.boolean
hasCreateTime()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
HcxActivationKey.Builder
mergeCreateTime(com.google.protobuf.Timestamp value)
Output only.HcxActivationKey.Builder
mergeFrom(HcxActivationKey other)
HcxActivationKey.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
HcxActivationKey.Builder
mergeFrom(com.google.protobuf.Message other)
HcxActivationKey.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
HcxActivationKey.Builder
setActivationKey(String value)
Output only.HcxActivationKey.Builder
setActivationKeyBytes(com.google.protobuf.ByteString value)
Output only.HcxActivationKey.Builder
setCreateTime(com.google.protobuf.Timestamp value)
Output only.HcxActivationKey.Builder
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.HcxActivationKey.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
HcxActivationKey.Builder
setName(String value)
Output only.HcxActivationKey.Builder
setNameBytes(com.google.protobuf.ByteString value)
Output only.HcxActivationKey.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
HcxActivationKey.Builder
setState(HcxActivationKey.State value)
Output only.HcxActivationKey.Builder
setStateValue(int value)
Output only.HcxActivationKey.Builder
setUid(String value)
Output only.HcxActivationKey.Builder
setUidBytes(com.google.protobuf.ByteString value)
Output only.HcxActivationKey.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<HcxActivationKey.Builder>
-
clear
public HcxActivationKey.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<HcxActivationKey.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<HcxActivationKey.Builder>
-
getDefaultInstanceForType
public HcxActivationKey getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public HcxActivationKey build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public HcxActivationKey buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public HcxActivationKey.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<HcxActivationKey.Builder>
-
setField
public HcxActivationKey.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<HcxActivationKey.Builder>
-
clearField
public HcxActivationKey.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<HcxActivationKey.Builder>
-
clearOneof
public HcxActivationKey.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<HcxActivationKey.Builder>
-
addRepeatedField
public HcxActivationKey.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<HcxActivationKey.Builder>
-
mergeFrom
public HcxActivationKey.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<HcxActivationKey.Builder>
-
mergeFrom
public HcxActivationKey.Builder mergeFrom(HcxActivationKey other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getName
in 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:
getNameBytes
in 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:
hasCreateTime
in 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:
getCreateTime
in 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:
getCreateTimeOrBuilder
in 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:
getStateValue
in 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:
getState
in 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:
getActivationKey
in 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:
getActivationKeyBytes
in 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:
getUid
in 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:
getUidBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<HcxActivationKey.Builder>
-
mergeUnknownFields
public final HcxActivationKey.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<HcxActivationKey.Builder>
-
-