Class HcxActivationKey.Builder (0.27.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public HcxActivationKey.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
HcxActivationKey.Builder
Overrides

build()

public HcxActivationKey build()
Returns
TypeDescription
HcxActivationKey

buildPartial()

public HcxActivationKey buildPartial()
Returns
TypeDescription
HcxActivationKey

clear()

public HcxActivationKey.Builder clear()
Returns
TypeDescription
HcxActivationKey.Builder
Overrides

clearActivationKey()

public HcxActivationKey.Builder clearActivationKey()

Output only. HCX activation key.

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

Returns
TypeDescription
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
TypeDescription
HcxActivationKey.Builder

clearField(Descriptors.FieldDescriptor field)

public HcxActivationKey.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
HcxActivationKey.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public HcxActivationKey.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
HcxActivationKey.Builder

This builder for chaining.

clone()

public HcxActivationKey.Builder clone()
Returns
TypeDescription
HcxActivationKey.Builder
Overrides

getActivationKey()

public String getActivationKey()

Output only. HCX activation key.

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

Returns
TypeDescription
String

The activationKey.

getActivationKeyBytes()

public ByteString getActivationKeyBytes()

Output only. HCX activation key.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public HcxActivationKey getDefaultInstanceForType()
Returns
TypeDescription
HcxActivationKey

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the createTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
HcxActivationKey.Builder

mergeFrom(HcxActivationKey other)

public HcxActivationKey.Builder mergeFrom(HcxActivationKey other)
Parameter
NameDescription
otherHcxActivationKey
Returns
TypeDescription
HcxActivationKey.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public HcxActivationKey.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HcxActivationKey.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public HcxActivationKey.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
HcxActivationKey.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final HcxActivationKey.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The activationKey to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for activationKey to set.

Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
HcxActivationKey.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public HcxActivationKey.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueHcxActivationKey.State

The state to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueString

The uid to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for uid to set.

Returns
TypeDescription
HcxActivationKey.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final HcxActivationKey.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
HcxActivationKey.Builder
Overrides