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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > GenerateClientCertificateRequest.BuilderImplements
GenerateClientCertificateRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GenerateClientCertificateRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field |
FieldDescriptor |
value |
Object |
Type | Description |
GenerateClientCertificateRequest.Builder |
build()
public GenerateClientCertificateRequest build()
Type | Description |
GenerateClientCertificateRequest |
buildPartial()
public GenerateClientCertificateRequest buildPartial()
Type | Description |
GenerateClientCertificateRequest |
clear()
public GenerateClientCertificateRequest.Builder clear()
Type | Description |
GenerateClientCertificateRequest.Builder |
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];
Type | Description |
GenerateClientCertificateRequest.Builder |
clearField(Descriptors.FieldDescriptor field)
public GenerateClientCertificateRequest.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field |
FieldDescriptor |
Type | Description |
GenerateClientCertificateRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public GenerateClientCertificateRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof |
OneofDescriptor |
Type | Description |
GenerateClientCertificateRequest.Builder |
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) = { ... }
Type | Description |
GenerateClientCertificateRequest.Builder |
This builder for chaining. |
clearPemCsr()
public GenerateClientCertificateRequest.Builder clearPemCsr()
Optional. A pem-encoded X.509 certificate signing request (CSR).
string pem_csr = 3 [(.google.api.field_behavior) = OPTIONAL];
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 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];
Type | Description |
GenerateClientCertificateRequest.Builder |
This builder for chaining. |
clone()
public GenerateClientCertificateRequest.Builder clone()
Type | Description |
GenerateClientCertificateRequest.Builder |
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];
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];
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];
Type | Description |
DurationOrBuilder |
getDefaultInstanceForType()
public GenerateClientCertificateRequest getDefaultInstanceForType()
Type | Description |
GenerateClientCertificateRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
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) = { ... }
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) = { ... }
Type | Description |
ByteString |
The bytes for parent. |
getPemCsr()
public String getPemCsr()
Optional. A pem-encoded X.509 certificate signing request (CSR).
string pem_csr = 3 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
String |
The pemCsr. |
getPemCsrBytes()
public ByteString getPemCsrBytes()
Optional. A pem-encoded X.509 certificate signing request (CSR).
string pem_csr = 3 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
ByteString |
The bytes for pemCsr. |
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];
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 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];
Type | Description |
ByteString |
The bytes for requestId. |
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];
Type | Description |
boolean |
Whether the certDuration field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
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];
Name | Description |
value |
Duration |
Type | Description |
GenerateClientCertificateRequest.Builder |
mergeFrom(GenerateClientCertificateRequest other)
public GenerateClientCertificateRequest.Builder mergeFrom(GenerateClientCertificateRequest other)
Name | Description |
other |
GenerateClientCertificateRequest |
Type | Description |
GenerateClientCertificateRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GenerateClientCertificateRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Type | Description |
GenerateClientCertificateRequest.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public GenerateClientCertificateRequest.Builder mergeFrom(Message other)
Name | Description |
other |
Message |
Type | Description |
GenerateClientCertificateRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GenerateClientCertificateRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields |
UnknownFieldSet |
Type | Description |
GenerateClientCertificateRequest.Builder |
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];
Name | Description |
value |
Duration |
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];
Name | Description |
builderForValue |
Builder |
Type | Description |
GenerateClientCertificateRequest.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public GenerateClientCertificateRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field |
FieldDescriptor |
value |
Object |
Type | Description |
GenerateClientCertificateRequest.Builder |
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) = { ... }
Name | Description |
value |
String The parent to set. |
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) = { ... }
Name | Description |
value |
ByteString The bytes for parent to set. |
Type | Description |
GenerateClientCertificateRequest.Builder |
This builder for chaining. |
setPemCsr(String value)
public GenerateClientCertificateRequest.Builder setPemCsr(String value)
Optional. A pem-encoded X.509 certificate signing request (CSR).
string pem_csr = 3 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value |
String The pemCsr to set. |
Type | Description |
GenerateClientCertificateRequest.Builder |
This builder for chaining. |
setPemCsrBytes(ByteString value)
public GenerateClientCertificateRequest.Builder setPemCsrBytes(ByteString value)
Optional. A pem-encoded X.509 certificate signing request (CSR).
string pem_csr = 3 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value |
ByteString The bytes for pemCsr to set. |
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)
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Type | Description |
GenerateClientCertificateRequest.Builder |
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];
Name | Description |
value |
String The requestId to set. |
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 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];
Name | Description |
value |
ByteString The bytes for requestId to set. |
Type | Description |
GenerateClientCertificateRequest.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final GenerateClientCertificateRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields |
UnknownFieldSet |
Type | Description |
GenerateClientCertificateRequest.Builder |