Class CreateHcxActivationKeyRequest.Builder (0.38.0)

public static final class CreateHcxActivationKeyRequest.Builder extends GeneratedMessageV3.Builder<CreateHcxActivationKeyRequest.Builder> implements CreateHcxActivationKeyRequestOrBuilder

Request message for VmwareEngine.CreateHcxActivationKey

Protobuf type google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateHcxActivationKeyRequest build()
Returns
Type Description
CreateHcxActivationKeyRequest

buildPartial()

public CreateHcxActivationKeyRequest buildPartial()
Returns
Type Description
CreateHcxActivationKeyRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearHcxActivationKey()

public CreateHcxActivationKeyRequest.Builder clearHcxActivationKey()

Required. The initial description of a new HCX activation key. When creating a new key, this field must be an empty object.

.google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_key = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateHcxActivationKeyRequest.Builder

clearHcxActivationKeyId()

public CreateHcxActivationKeyRequest.Builder clearHcxActivationKeyId()

Required. The user-provided identifier of the HcxActivationKey to be created. This identifier must be unique among HcxActivationKey resources within the parent and becomes the final token in the name URI. The identifier must meet the following requirements:

  • Only contains 1-63 alphanumeric characters and hyphens
  • Begins with an alphabetical character
  • Ends with a non-hyphen character
  • Not formatted as a UUID
  • Complies with RFC 1034 (section 3.5)

string hcx_activation_key_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateHcxActivationKeyRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateHcxActivationKeyRequest.Builder clearParent()

Required. The resource name of the private cloud to create the key for. 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

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateHcxActivationKeyRequest.Builder

This builder for chaining.

clearRequestId()

public CreateHcxActivationKeyRequest.Builder clearRequestId()

A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server guarantees that a request doesn't result in creation of duplicate commitments for at least 60 minutes.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4;

Returns
Type Description
CreateHcxActivationKeyRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateHcxActivationKeyRequest getDefaultInstanceForType()
Returns
Type Description
CreateHcxActivationKeyRequest

getDescriptorForType()

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

getHcxActivationKey()

public HcxActivationKey getHcxActivationKey()

Required. The initial description of a new HCX activation key. When creating a new key, this field must be an empty object.

.google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_key = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
HcxActivationKey

The hcxActivationKey.

getHcxActivationKeyBuilder()

public HcxActivationKey.Builder getHcxActivationKeyBuilder()

Required. The initial description of a new HCX activation key. When creating a new key, this field must be an empty object.

.google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_key = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
HcxActivationKey.Builder

getHcxActivationKeyId()

public String getHcxActivationKeyId()

Required. The user-provided identifier of the HcxActivationKey to be created. This identifier must be unique among HcxActivationKey resources within the parent and becomes the final token in the name URI. The identifier must meet the following requirements:

  • Only contains 1-63 alphanumeric characters and hyphens
  • Begins with an alphabetical character
  • Ends with a non-hyphen character
  • Not formatted as a UUID
  • Complies with RFC 1034 (section 3.5)

string hcx_activation_key_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The hcxActivationKeyId.

getHcxActivationKeyIdBytes()

public ByteString getHcxActivationKeyIdBytes()

Required. The user-provided identifier of the HcxActivationKey to be created. This identifier must be unique among HcxActivationKey resources within the parent and becomes the final token in the name URI. The identifier must meet the following requirements:

  • Only contains 1-63 alphanumeric characters and hyphens
  • Begins with an alphabetical character
  • Ends with a non-hyphen character
  • Not formatted as a UUID
  • Complies with RFC 1034 (section 3.5)

string hcx_activation_key_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for hcxActivationKeyId.

getHcxActivationKeyOrBuilder()

public HcxActivationKeyOrBuilder getHcxActivationKeyOrBuilder()

Required. The initial description of a new HCX activation key. When creating a new key, this field must be an empty object.

.google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_key = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
HcxActivationKeyOrBuilder

getParent()

public String getParent()

Required. The resource name of the private cloud to create the key for. 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

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The resource name of the private cloud to create the key for. 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

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getRequestId()

public String getRequestId()

A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server guarantees that a request doesn't result in creation of duplicate commitments for at least 60 minutes.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4;

Returns
Type Description
String

The requestId.

getRequestIdBytes()

public ByteString getRequestIdBytes()

A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server guarantees that a request doesn't result in creation of duplicate commitments for at least 60 minutes.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4;

Returns
Type Description
ByteString

The bytes for requestId.

hasHcxActivationKey()

public boolean hasHcxActivationKey()

Required. The initial description of a new HCX activation key. When creating a new key, this field must be an empty object.

.google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_key = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the hcxActivationKey field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateHcxActivationKeyRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeHcxActivationKey(HcxActivationKey value)

public CreateHcxActivationKeyRequest.Builder mergeHcxActivationKey(HcxActivationKey value)

Required. The initial description of a new HCX activation key. When creating a new key, this field must be an empty object.

.google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_key = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value HcxActivationKey
Returns
Type Description
CreateHcxActivationKeyRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setHcxActivationKey(HcxActivationKey value)

public CreateHcxActivationKeyRequest.Builder setHcxActivationKey(HcxActivationKey value)

Required. The initial description of a new HCX activation key. When creating a new key, this field must be an empty object.

.google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_key = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value HcxActivationKey
Returns
Type Description
CreateHcxActivationKeyRequest.Builder

setHcxActivationKey(HcxActivationKey.Builder builderForValue)

public CreateHcxActivationKeyRequest.Builder setHcxActivationKey(HcxActivationKey.Builder builderForValue)

Required. The initial description of a new HCX activation key. When creating a new key, this field must be an empty object.

.google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_key = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue HcxActivationKey.Builder
Returns
Type Description
CreateHcxActivationKeyRequest.Builder

setHcxActivationKeyId(String value)

public CreateHcxActivationKeyRequest.Builder setHcxActivationKeyId(String value)

Required. The user-provided identifier of the HcxActivationKey to be created. This identifier must be unique among HcxActivationKey resources within the parent and becomes the final token in the name URI. The identifier must meet the following requirements:

  • Only contains 1-63 alphanumeric characters and hyphens
  • Begins with an alphabetical character
  • Ends with a non-hyphen character
  • Not formatted as a UUID
  • Complies with RFC 1034 (section 3.5)

string hcx_activation_key_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The hcxActivationKeyId to set.

Returns
Type Description
CreateHcxActivationKeyRequest.Builder

This builder for chaining.

setHcxActivationKeyIdBytes(ByteString value)

public CreateHcxActivationKeyRequest.Builder setHcxActivationKeyIdBytes(ByteString value)

Required. The user-provided identifier of the HcxActivationKey to be created. This identifier must be unique among HcxActivationKey resources within the parent and becomes the final token in the name URI. The identifier must meet the following requirements:

  • Only contains 1-63 alphanumeric characters and hyphens
  • Begins with an alphabetical character
  • Ends with a non-hyphen character
  • Not formatted as a UUID
  • Complies with RFC 1034 (section 3.5)

string hcx_activation_key_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for hcxActivationKeyId to set.

Returns
Type Description
CreateHcxActivationKeyRequest.Builder

This builder for chaining.

setParent(String value)

public CreateHcxActivationKeyRequest.Builder setParent(String value)

Required. The resource name of the private cloud to create the key for. 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

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateHcxActivationKeyRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateHcxActivationKeyRequest.Builder setParentBytes(ByteString value)

Required. The resource name of the private cloud to create the key for. 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

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateHcxActivationKeyRequest.Builder

This builder for chaining.

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

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

setRequestId(String value)

public CreateHcxActivationKeyRequest.Builder setRequestId(String value)

A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server guarantees that a request doesn't result in creation of duplicate commitments for at least 60 minutes.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4;

Parameter
Name Description
value String

The requestId to set.

Returns
Type Description
CreateHcxActivationKeyRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public CreateHcxActivationKeyRequest.Builder setRequestIdBytes(ByteString value)

A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server guarantees that a request doesn't result in creation of duplicate commitments for at least 60 minutes.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4;

Parameter
Name Description
value ByteString

The bytes for requestId to set.

Returns
Type Description
CreateHcxActivationKeyRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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