Class GenerateClientCertificateRequest.Builder (0.30.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.v1beta.GenerateClientCertificateRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GenerateClientCertificateRequest build()
Returns
TypeDescription
GenerateClientCertificateRequest

buildPartial()

public GenerateClientCertificateRequest buildPartial()
Returns
TypeDescription
GenerateClientCertificateRequest

clear()

public GenerateClientCertificateRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
GenerateClientCertificateRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public GenerateClientCertificateRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
GenerateClientCertificateRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clearPemCsr() (deprecated)

public GenerateClientCertificateRequest.Builder clearPemCsr()

Deprecated. google.cloud.alloydb.v1beta.GenerateClientCertificateRequest.pem_csr is deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1360

Optional. A pem-encoded X.509 certificate signing request (CSR). It is recommended to use public_key instead.

string pem_csr = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
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
TypeDescription
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 will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after 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 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 = 2 [(.google.api.field_behavior) = OPTIONAL];

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

This builder for chaining.

clone()

public GenerateClientCertificateRequest.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
DurationOrBuilder

getDefaultInstanceForType()

public GenerateClientCertificateRequest getDefaultInstanceForType()
Returns
TypeDescription
GenerateClientCertificateRequest

getDescriptorForType()

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

The bytes for parent.

getPemCsr() (deprecated)

public String getPemCsr()

Deprecated. google.cloud.alloydb.v1beta.GenerateClientCertificateRequest.pem_csr is deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1360

Optional. A pem-encoded X.509 certificate signing request (CSR). It is recommended to use public_key instead.

string pem_csr = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The pemCsr.

getPemCsrBytes() (deprecated)

public ByteString getPemCsrBytes()

Deprecated. google.cloud.alloydb.v1beta.GenerateClientCertificateRequest.pem_csr is deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1360

Optional. A pem-encoded X.509 certificate signing request (CSR). It is recommended to use public_key instead.

string pem_csr = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for pemCsr.

getPublicKey()

public String getPublicKey()

Optional. The public key from the client.

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

Returns
TypeDescription
String

The publicKey.

getPublicKeyBytes()

public ByteString getPublicKeyBytes()

Optional. The public key from the client.

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

Returns
TypeDescription
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 will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after 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 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 = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
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 will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after 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 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 = 2 [(.google.api.field_behavior) = OPTIONAL];

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

Whether the certDuration field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

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

mergeFrom(GenerateClientCertificateRequest other)

public GenerateClientCertificateRequest.Builder mergeFrom(GenerateClientCertificateRequest other)
Parameter
NameDescription
otherGenerateClientCertificateRequest
Returns
TypeDescription
GenerateClientCertificateRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The parent to set.

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

The bytes for parent to set.

Returns
TypeDescription
GenerateClientCertificateRequest.Builder

This builder for chaining.

setPemCsr(String value) (deprecated)

public GenerateClientCertificateRequest.Builder setPemCsr(String value)

Deprecated. google.cloud.alloydb.v1beta.GenerateClientCertificateRequest.pem_csr is deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1360

Optional. A pem-encoded X.509 certificate signing request (CSR). It is recommended to use public_key instead.

string pem_csr = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The pemCsr to set.

Returns
TypeDescription
GenerateClientCertificateRequest.Builder

This builder for chaining.

setPemCsrBytes(ByteString value) (deprecated)

public GenerateClientCertificateRequest.Builder setPemCsrBytes(ByteString value)

Deprecated. google.cloud.alloydb.v1beta.GenerateClientCertificateRequest.pem_csr is deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1360

Optional. A pem-encoded X.509 certificate signing request (CSR). It is recommended to use public_key instead.

string pem_csr = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for pemCsr to set.

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

The publicKey to set.

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

The bytes for publicKey to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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 will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after 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 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 = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The requestId to set.

Returns
TypeDescription
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 will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after 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 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 = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for requestId to set.

Returns
TypeDescription
GenerateClientCertificateRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final GenerateClientCertificateRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The useMetadataExchange to set.

Returns
TypeDescription
GenerateClientCertificateRequest.Builder

This builder for chaining.