Class GenerateClientCertificateResponse.Builder (0.21.0)

public static final class GenerateClientCertificateResponse.Builder extends GeneratedMessageV3.Builder<GenerateClientCertificateResponse.Builder> implements GenerateClientCertificateResponseOrBuilder

Message returned by a GenerateClientCertificate operation.

Protobuf type google.cloud.alloydb.v1beta.GenerateClientCertificateResponse

Static Methods

getDescriptor()

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

Methods

addAllPemCertificateChain(Iterable<String> values)

public GenerateClientCertificateResponse.Builder addAllPemCertificateChain(Iterable<String> values)

Output only. The pem-encoded chain that may be used to verify the X.509 certificate. Expected to be in issuer-to-root order according to RFC 5246.

repeated string pem_certificate_chain = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<String>

The pemCertificateChain to add.

Returns
Type Description
GenerateClientCertificateResponse.Builder

This builder for chaining.

addPemCertificateChain(String value)

public GenerateClientCertificateResponse.Builder addPemCertificateChain(String value)

Output only. The pem-encoded chain that may be used to verify the X.509 certificate. Expected to be in issuer-to-root order according to RFC 5246.

repeated string pem_certificate_chain = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The pemCertificateChain to add.

Returns
Type Description
GenerateClientCertificateResponse.Builder

This builder for chaining.

addPemCertificateChainBytes(ByteString value)

public GenerateClientCertificateResponse.Builder addPemCertificateChainBytes(ByteString value)

Output only. The pem-encoded chain that may be used to verify the X.509 certificate. Expected to be in issuer-to-root order according to RFC 5246.

repeated string pem_certificate_chain = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes of the pemCertificateChain to add.

Returns
Type Description
GenerateClientCertificateResponse.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GenerateClientCertificateResponse build()
Returns
Type Description
GenerateClientCertificateResponse

buildPartial()

public GenerateClientCertificateResponse buildPartial()
Returns
Type Description
GenerateClientCertificateResponse

clear()

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

clearCaCert()

public GenerateClientCertificateResponse.Builder clearCaCert()

Optional. The pem-encoded cluster ca X.509 certificate.

string ca_cert = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GenerateClientCertificateResponse.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPemCertificate()

public GenerateClientCertificateResponse.Builder clearPemCertificate()

Output only. The pem-encoded, signed X.509 certificate.

string pem_certificate = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
GenerateClientCertificateResponse.Builder

This builder for chaining.

clearPemCertificateChain()

public GenerateClientCertificateResponse.Builder clearPemCertificateChain()

Output only. The pem-encoded chain that may be used to verify the X.509 certificate. Expected to be in issuer-to-root order according to RFC 5246.

repeated string pem_certificate_chain = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
GenerateClientCertificateResponse.Builder

This builder for chaining.

clone()

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

getCaCert()

public String getCaCert()

Optional. The pem-encoded cluster ca X.509 certificate.

string ca_cert = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The caCert.

getCaCertBytes()

public ByteString getCaCertBytes()

Optional. The pem-encoded cluster ca X.509 certificate.

string ca_cert = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for caCert.

getDefaultInstanceForType()

public GenerateClientCertificateResponse getDefaultInstanceForType()
Returns
Type Description
GenerateClientCertificateResponse

getDescriptorForType()

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

getPemCertificate()

public String getPemCertificate()

Output only. The pem-encoded, signed X.509 certificate.

string pem_certificate = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The pemCertificate.

getPemCertificateBytes()

public ByteString getPemCertificateBytes()

Output only. The pem-encoded, signed X.509 certificate.

string pem_certificate = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for pemCertificate.

getPemCertificateChain(int index)

public String getPemCertificateChain(int index)

Output only. The pem-encoded chain that may be used to verify the X.509 certificate. Expected to be in issuer-to-root order according to RFC 5246.

repeated string pem_certificate_chain = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The pemCertificateChain at the given index.

getPemCertificateChainBytes(int index)

public ByteString getPemCertificateChainBytes(int index)

Output only. The pem-encoded chain that may be used to verify the X.509 certificate. Expected to be in issuer-to-root order according to RFC 5246.

repeated string pem_certificate_chain = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the pemCertificateChain at the given index.

getPemCertificateChainCount()

public int getPemCertificateChainCount()

Output only. The pem-encoded chain that may be used to verify the X.509 certificate. Expected to be in issuer-to-root order according to RFC 5246.

repeated string pem_certificate_chain = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of pemCertificateChain.

getPemCertificateChainList()

public ProtocolStringList getPemCertificateChainList()

Output only. The pem-encoded chain that may be used to verify the X.509 certificate. Expected to be in issuer-to-root order according to RFC 5246.

repeated string pem_certificate_chain = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ProtocolStringList

A list containing the pemCertificateChain.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GenerateClientCertificateResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCaCert(String value)

public GenerateClientCertificateResponse.Builder setCaCert(String value)

Optional. The pem-encoded cluster ca X.509 certificate.

string ca_cert = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The caCert to set.

Returns
Type Description
GenerateClientCertificateResponse.Builder

This builder for chaining.

setCaCertBytes(ByteString value)

public GenerateClientCertificateResponse.Builder setCaCertBytes(ByteString value)

Optional. The pem-encoded cluster ca X.509 certificate.

string ca_cert = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for caCert to set.

Returns
Type Description
GenerateClientCertificateResponse.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setPemCertificate(String value)

public GenerateClientCertificateResponse.Builder setPemCertificate(String value)

Output only. The pem-encoded, signed X.509 certificate.

string pem_certificate = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The pemCertificate to set.

Returns
Type Description
GenerateClientCertificateResponse.Builder

This builder for chaining.

setPemCertificateBytes(ByteString value)

public GenerateClientCertificateResponse.Builder setPemCertificateBytes(ByteString value)

Output only. The pem-encoded, signed X.509 certificate.

string pem_certificate = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for pemCertificate to set.

Returns
Type Description
GenerateClientCertificateResponse.Builder

This builder for chaining.

setPemCertificateChain(int index, String value)

public GenerateClientCertificateResponse.Builder setPemCertificateChain(int index, String value)

Output only. The pem-encoded chain that may be used to verify the X.509 certificate. Expected to be in issuer-to-root order according to RFC 5246.

repeated string pem_certificate_chain = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int

The index to set the value at.

value String

The pemCertificateChain to set.

Returns
Type Description
GenerateClientCertificateResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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