Class CreateHcxActivationKeyRequest.Builder (0.1.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateHcxActivationKeyRequest build()
Returns
TypeDescription
CreateHcxActivationKeyRequest

buildPartial()

public CreateHcxActivationKeyRequest buildPartial()
Returns
TypeDescription
CreateHcxActivationKeyRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateHcxActivationKeyRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateHcxActivationKeyRequest

getDescriptorForType()

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

Whether the hcxActivationKey field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateHcxActivationKeyRequest other)

public CreateHcxActivationKeyRequest.Builder mergeFrom(CreateHcxActivationKeyRequest other)
Parameter
NameDescription
otherCreateHcxActivationKeyRequest
Returns
TypeDescription
CreateHcxActivationKeyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CreateHcxActivationKeyRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueHcxActivationKey
Returns
TypeDescription
CreateHcxActivationKeyRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateHcxActivationKeyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateHcxActivationKeyRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

The hcxActivationKeyId to set.

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

The bytes for hcxActivationKeyId to set.

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

The parent to set.

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

The bytes for parent to set.

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

The requestId to set.

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

The bytes for requestId to set.

Returns
TypeDescription
CreateHcxActivationKeyRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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