Class HcxActivationKey.Builder (0.43.0)

public static final class HcxActivationKey.Builder extends 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 to retrieve existing keys and VmwareEngine.CreateHcxActivationKey to create new ones.

Protobuf type google.cloud.vmwareengine.v1.HcxActivationKey

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public HcxActivationKey.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
HcxActivationKey.Builder
Overrides

build()

public HcxActivationKey build()
Returns
Type Description
HcxActivationKey

buildPartial()

public HcxActivationKey buildPartial()
Returns
Type Description
HcxActivationKey

clear()

public HcxActivationKey.Builder clear()
Returns
Type Description
HcxActivationKey.Builder
Overrides

clearActivationKey()

public HcxActivationKey.Builder clearActivationKey()

Output only. HCX activation key.

string activation_key = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
HcxActivationKey.Builder

This builder for chaining.

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];

Returns
Type Description
HcxActivationKey.Builder

clearField(Descriptors.FieldDescriptor field)

public HcxActivationKey.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
HcxActivationKey.Builder
Overrides

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
Type Description
HcxActivationKey.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public HcxActivationKey.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
HcxActivationKey.Builder
Overrides

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
Type Description
HcxActivationKey.Builder

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
Type Description
HcxActivationKey.Builder

This builder for chaining.

clone()

public HcxActivationKey.Builder clone()
Returns
Type Description
HcxActivationKey.Builder
Overrides

getActivationKey()

public String getActivationKey()

Output only. HCX activation key.

string activation_key = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The activationKey.

getActivationKeyBytes()

public ByteString getActivationKeyBytes()

Output only. HCX activation key.

string activation_key = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for activationKey.

getCreateTime()

public Timestamp getCreateTime()

Output only. Creation time of HCX activation key.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Creation time of HCX activation key.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Creation time of HCX activation key.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public HcxActivationKey getDefaultInstanceForType()
Returns
Type Description
HcxActivationKey

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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];

Returns
Type Description
String

The name.

getNameBytes()

public 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];

Returns
Type Description
ByteString

The bytes for name.

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];

Returns
Type Description
HcxActivationKey.State

The state.

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];

Returns
Type Description
int

The enum numeric value on the wire for state.

getUid()

public String getUid()

Output only. System-generated unique identifier for the resource.

string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The uid.

getUidBytes()

public ByteString getUidBytes()

Output only. System-generated unique identifier for the resource.

string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for uid.

hasCreateTime()

public boolean hasCreateTime()

Output only. Creation time of HCX activation key.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public HcxActivationKey.Builder mergeCreateTime(Timestamp value)

Output only. Creation time of HCX activation key.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
HcxActivationKey.Builder

mergeFrom(HcxActivationKey other)

public HcxActivationKey.Builder mergeFrom(HcxActivationKey other)
Parameter
Name Description
other HcxActivationKey
Returns
Type Description
HcxActivationKey.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public HcxActivationKey.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HcxActivationKey.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public HcxActivationKey.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
HcxActivationKey.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final HcxActivationKey.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
HcxActivationKey.Builder
Overrides

setActivationKey(String value)

public HcxActivationKey.Builder setActivationKey(String value)

Output only. HCX activation key.

string activation_key = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The activationKey to set.

Returns
Type Description
HcxActivationKey.Builder

This builder for chaining.

setActivationKeyBytes(ByteString value)

public HcxActivationKey.Builder setActivationKeyBytes(ByteString value)

Output only. HCX activation key.

string activation_key = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for activationKey to set.

Returns
Type Description
HcxActivationKey.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public HcxActivationKey.Builder setCreateTime(Timestamp value)

Output only. Creation time of HCX activation key.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
HcxActivationKey.Builder

setCreateTime(Timestamp.Builder builderForValue)

public HcxActivationKey.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Creation time of HCX activation key.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
HcxActivationKey.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public HcxActivationKey.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
HcxActivationKey.Builder
Overrides

setName(String value)

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];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
HcxActivationKey.Builder

This builder for chaining.

setNameBytes(ByteString value)

public HcxActivationKey.Builder setNameBytes(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];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
HcxActivationKey.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public HcxActivationKey.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
HcxActivationKey.Builder
Overrides

setState(HcxActivationKey.State value)

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];

Parameter
Name Description
value HcxActivationKey.State

The state to set.

Returns
Type Description
HcxActivationKey.Builder

This builder for chaining.

setStateValue(int value)

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];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
HcxActivationKey.Builder

This builder for chaining.

setUid(String value)

public HcxActivationKey.Builder setUid(String value)

Output only. System-generated unique identifier for the resource.

string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The uid to set.

Returns
Type Description
HcxActivationKey.Builder

This builder for chaining.

setUidBytes(ByteString value)

public HcxActivationKey.Builder setUidBytes(ByteString value)

Output only. System-generated unique identifier for the resource.

string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for uid to set.

Returns
Type Description
HcxActivationKey.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final HcxActivationKey.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
HcxActivationKey.Builder
Overrides