Class GenerateClientCertificateResponse (0.28.0)

public final class GenerateClientCertificateResponse extends GeneratedMessageV3 implements GenerateClientCertificateResponseOrBuilder

Message returned by a GenerateClientCertificate operation.

Protobuf type google.cloud.alloydb.v1alpha.GenerateClientCertificateResponse

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > GenerateClientCertificateResponse

Static Fields

CA_CERT_FIELD_NUMBER

public static final int CA_CERT_FIELD_NUMBER
Field Value
Type Description
int

PEM_CERTIFICATE_CHAIN_FIELD_NUMBER

public static final int PEM_CERTIFICATE_CHAIN_FIELD_NUMBER
Field Value
Type Description
int

PEM_CERTIFICATE_FIELD_NUMBER

public static final int PEM_CERTIFICATE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static GenerateClientCertificateResponse getDefaultInstance()
Returns
Type Description
GenerateClientCertificateResponse

getDescriptor()

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

newBuilder()

public static GenerateClientCertificateResponse.Builder newBuilder()
Returns
Type Description
GenerateClientCertificateResponse.Builder

newBuilder(GenerateClientCertificateResponse prototype)

public static GenerateClientCertificateResponse.Builder newBuilder(GenerateClientCertificateResponse prototype)
Parameter
Name Description
prototype GenerateClientCertificateResponse
Returns
Type Description
GenerateClientCertificateResponse.Builder

parseDelimitedFrom(InputStream input)

public static GenerateClientCertificateResponse parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
GenerateClientCertificateResponse
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GenerateClientCertificateResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerateClientCertificateResponse
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static GenerateClientCertificateResponse parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
GenerateClientCertificateResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static GenerateClientCertificateResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerateClientCertificateResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static GenerateClientCertificateResponse parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
GenerateClientCertificateResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static GenerateClientCertificateResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerateClientCertificateResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static GenerateClientCertificateResponse parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
GenerateClientCertificateResponse
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static GenerateClientCertificateResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerateClientCertificateResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static GenerateClientCertificateResponse parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
GenerateClientCertificateResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GenerateClientCertificateResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerateClientCertificateResponse
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static GenerateClientCertificateResponse parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
GenerateClientCertificateResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static GenerateClientCertificateResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerateClientCertificateResponse
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<GenerateClientCertificateResponse> parser()
Returns
Type Description
Parser<GenerateClientCertificateResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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

getParserForType()

public Parser<GenerateClientCertificateResponse> getParserForType()
Returns
Type Description
Parser<GenerateClientCertificateResponse>
Overrides

getPemCertificate() (deprecated)

public String getPemCertificate()

Deprecated. google.cloud.alloydb.v1alpha.GenerateClientCertificateResponse.pem_certificate is deprecated. See google/cloud/alloydb/v1alpha/service.proto;l=1383

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

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

Returns
Type Description
String

The pemCertificate.

getPemCertificateBytes() (deprecated)

public ByteString getPemCertificateBytes()

Deprecated. google.cloud.alloydb.v1alpha.GenerateClientCertificateResponse.pem_certificate is deprecated. See google/cloud/alloydb/v1alpha/service.proto;l=1383

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

string pem_certificate = 1 [deprecated = true, (.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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public GenerateClientCertificateResponse.Builder newBuilderForType()
Returns
Type Description
GenerateClientCertificateResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected GenerateClientCertificateResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
GenerateClientCertificateResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public GenerateClientCertificateResponse.Builder toBuilder()
Returns
Type Description
GenerateClientCertificateResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException