Class GenerateClientCertificateRequest.Builder (0.43.0)

public static final class GenerateClientCertificateRequest.Builder extends GeneratedMessageV3.Builder<GenerateClientCertificateRequest.Builder> implements GenerateClientCertificateRequestOrBuilder

Message for requests to generate a client certificate signed by the Cluster CA.

Protobuf type google.cloud.alloydb.v1.GenerateClientCertificateRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GenerateClientCertificateRequest build()
Returns
Type Description
GenerateClientCertificateRequest

buildPartial()

public GenerateClientCertificateRequest buildPartial()
Returns
Type Description
GenerateClientCertificateRequest

clear()

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

clearCertDuration()

public GenerateClientCertificateRequest.Builder clearCertDuration()

Optional. An optional hint to the endpoint to generate the client certificate with the requested duration. The duration can be from 1 hour to 24 hours. The endpoint may or may not honor the hint. If the hint is left unspecified or is not honored, then the endpoint will pick an appropriate default duration.

.google.protobuf.Duration cert_duration = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GenerateClientCertificateRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public GenerateClientCertificateRequest.Builder clearParent()

Required. The name of the parent resource. The required format is:

  • projects/{project}/locations/{location}/clusters/{cluster}

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

Returns
Type Description
GenerateClientCertificateRequest.Builder

This builder for chaining.

clearPublicKey()

public GenerateClientCertificateRequest.Builder clearPublicKey()

Optional. The public key from the client.

string public_key = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GenerateClientCertificateRequest.Builder

This builder for chaining.

clearRequestId()

public GenerateClientCertificateRequest.Builder clearRequestId()

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since the first request.

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 the original operation with the same request ID was received, and if so, ignores 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 = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GenerateClientCertificateRequest.Builder

This builder for chaining.

clearUseMetadataExchange()

public GenerateClientCertificateRequest.Builder clearUseMetadataExchange()

Optional. An optional hint to the endpoint to generate a client ceritificate that can be used by AlloyDB connectors to exchange additional metadata with the server after TLS handshake.

bool use_metadata_exchange = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GenerateClientCertificateRequest.Builder

This builder for chaining.

clone()

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

getCertDuration()

public Duration getCertDuration()

Optional. An optional hint to the endpoint to generate the client certificate with the requested duration. The duration can be from 1 hour to 24 hours. The endpoint may or may not honor the hint. If the hint is left unspecified or is not honored, then the endpoint will pick an appropriate default duration.

.google.protobuf.Duration cert_duration = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Duration

The certDuration.

getCertDurationBuilder()

public Duration.Builder getCertDurationBuilder()

Optional. An optional hint to the endpoint to generate the client certificate with the requested duration. The duration can be from 1 hour to 24 hours. The endpoint may or may not honor the hint. If the hint is left unspecified or is not honored, then the endpoint will pick an appropriate default duration.

.google.protobuf.Duration cert_duration = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getCertDurationOrBuilder()

public DurationOrBuilder getCertDurationOrBuilder()

Optional. An optional hint to the endpoint to generate the client certificate with the requested duration. The duration can be from 1 hour to 24 hours. The endpoint may or may not honor the hint. If the hint is left unspecified or is not honored, then the endpoint will pick an appropriate default duration.

.google.protobuf.Duration cert_duration = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DurationOrBuilder

getDefaultInstanceForType()

public GenerateClientCertificateRequest getDefaultInstanceForType()
Returns
Type Description
GenerateClientCertificateRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The name of the parent resource. The required format is:

  • projects/{project}/locations/{location}/clusters/{cluster}

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The name of the parent resource. The required format is:

  • projects/{project}/locations/{location}/clusters/{cluster}

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

Returns
Type Description
ByteString

The bytes for parent.

getPublicKey()

public String getPublicKey()

Optional. The public key from the client.

string public_key = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The publicKey.

getPublicKeyBytes()

public ByteString getPublicKeyBytes()

Optional. The public key from the client.

string public_key = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for publicKey.

getRequestId()

public String getRequestId()

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since the first request.

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 the original operation with the same request ID was received, and if so, ignores 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 = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The requestId.

getRequestIdBytes()

public ByteString getRequestIdBytes()

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since the first request.

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 the original operation with the same request ID was received, and if so, ignores 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 = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for requestId.

getUseMetadataExchange()

public boolean getUseMetadataExchange()

Optional. An optional hint to the endpoint to generate a client ceritificate that can be used by AlloyDB connectors to exchange additional metadata with the server after TLS handshake.

bool use_metadata_exchange = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The useMetadataExchange.

hasCertDuration()

public boolean hasCertDuration()

Optional. An optional hint to the endpoint to generate the client certificate with the requested duration. The duration can be from 1 hour to 24 hours. The endpoint may or may not honor the hint. If the hint is left unspecified or is not honored, then the endpoint will pick an appropriate default duration.

.google.protobuf.Duration cert_duration = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the certDuration field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCertDuration(Duration value)

public GenerateClientCertificateRequest.Builder mergeCertDuration(Duration value)

Optional. An optional hint to the endpoint to generate the client certificate with the requested duration. The duration can be from 1 hour to 24 hours. The endpoint may or may not honor the hint. If the hint is left unspecified or is not honored, then the endpoint will pick an appropriate default duration.

.google.protobuf.Duration cert_duration = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Duration
Returns
Type Description
GenerateClientCertificateRequest.Builder

mergeFrom(GenerateClientCertificateRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCertDuration(Duration value)

public GenerateClientCertificateRequest.Builder setCertDuration(Duration value)

Optional. An optional hint to the endpoint to generate the client certificate with the requested duration. The duration can be from 1 hour to 24 hours. The endpoint may or may not honor the hint. If the hint is left unspecified or is not honored, then the endpoint will pick an appropriate default duration.

.google.protobuf.Duration cert_duration = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Duration
Returns
Type Description
GenerateClientCertificateRequest.Builder

setCertDuration(Duration.Builder builderForValue)

public GenerateClientCertificateRequest.Builder setCertDuration(Duration.Builder builderForValue)

Optional. An optional hint to the endpoint to generate the client certificate with the requested duration. The duration can be from 1 hour to 24 hours. The endpoint may or may not honor the hint. If the hint is left unspecified or is not honored, then the endpoint will pick an appropriate default duration.

.google.protobuf.Duration cert_duration = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
GenerateClientCertificateRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public GenerateClientCertificateRequest.Builder setParent(String value)

Required. The name of the parent resource. The required format is:

  • projects/{project}/locations/{location}/clusters/{cluster}

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
GenerateClientCertificateRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public GenerateClientCertificateRequest.Builder setParentBytes(ByteString value)

Required. The name of the parent resource. The required format is:

  • projects/{project}/locations/{location}/clusters/{cluster}

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
GenerateClientCertificateRequest.Builder

This builder for chaining.

setPublicKey(String value)

public GenerateClientCertificateRequest.Builder setPublicKey(String value)

Optional. The public key from the client.

string public_key = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The publicKey to set.

Returns
Type Description
GenerateClientCertificateRequest.Builder

This builder for chaining.

setPublicKeyBytes(ByteString value)

public GenerateClientCertificateRequest.Builder setPublicKeyBytes(ByteString value)

Optional. The public key from the client.

string public_key = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for publicKey to set.

Returns
Type Description
GenerateClientCertificateRequest.Builder

This builder for chaining.

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

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

setRequestId(String value)

public GenerateClientCertificateRequest.Builder setRequestId(String value)

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since the first request.

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 the original operation with the same request ID was received, and if so, ignores 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 = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The requestId to set.

Returns
Type Description
GenerateClientCertificateRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public GenerateClientCertificateRequest.Builder setRequestIdBytes(ByteString value)

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since the first request.

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 the original operation with the same request ID was received, and if so, ignores 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 = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for requestId to set.

Returns
Type Description
GenerateClientCertificateRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUseMetadataExchange(boolean value)

public GenerateClientCertificateRequest.Builder setUseMetadataExchange(boolean value)

Optional. An optional hint to the endpoint to generate a client ceritificate that can be used by AlloyDB connectors to exchange additional metadata with the server after TLS handshake.

bool use_metadata_exchange = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The useMetadataExchange to set.

Returns
Type Description
GenerateClientCertificateRequest.Builder

This builder for chaining.