Class CertificateRawData.Builder (2.83.0)

public static final class CertificateRawData.Builder extends GeneratedMessage.Builder<CertificateRawData.Builder> implements CertificateRawDataOrBuilder

An SSL certificate obtained from a certificate authority.

Protobuf type google.appengine.v1.CertificateRawData

Static Methods

getDescriptor()

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

Methods

build()

public CertificateRawData build()
Returns
Type Description
CertificateRawData

buildPartial()

public CertificateRawData buildPartial()
Returns
Type Description
CertificateRawData

clear()

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

clearPrivateKey()

public CertificateRawData.Builder clearPrivateKey()

Unencrypted PEM encoded RSA private key. This field is set once on certificate creation and then encrypted. The key size must be 2048 bits or fewer. Must include the header and footer. Example: <pre> -----BEGIN RSA PRIVATE KEY----- <unencrypted_key_value> -----END RSA PRIVATE KEY----- </pre> @InputOnly

string private_key = 2;

Returns
Type Description
CertificateRawData.Builder

This builder for chaining.

clearPublicCertificate()

public CertificateRawData.Builder clearPublicCertificate()

PEM encoded x.509 public key certificate. This field is set once on certificate creation. Must include the header and footer. Example: <pre> -----BEGIN CERTIFICATE----- <certificate_value> -----END CERTIFICATE----- </pre>

string public_certificate = 1;

Returns
Type Description
CertificateRawData.Builder

This builder for chaining.

getDefaultInstanceForType()

public CertificateRawData getDefaultInstanceForType()
Returns
Type Description
CertificateRawData

getDescriptorForType()

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

getPrivateKey()

public String getPrivateKey()

Unencrypted PEM encoded RSA private key. This field is set once on certificate creation and then encrypted. The key size must be 2048 bits or fewer. Must include the header and footer. Example: <pre> -----BEGIN RSA PRIVATE KEY----- <unencrypted_key_value> -----END RSA PRIVATE KEY----- </pre> @InputOnly

string private_key = 2;

Returns
Type Description
String

The privateKey.

getPrivateKeyBytes()

public ByteString getPrivateKeyBytes()

Unencrypted PEM encoded RSA private key. This field is set once on certificate creation and then encrypted. The key size must be 2048 bits or fewer. Must include the header and footer. Example: <pre> -----BEGIN RSA PRIVATE KEY----- <unencrypted_key_value> -----END RSA PRIVATE KEY----- </pre> @InputOnly

string private_key = 2;

Returns
Type Description
ByteString

The bytes for privateKey.

getPublicCertificate()

public String getPublicCertificate()

PEM encoded x.509 public key certificate. This field is set once on certificate creation. Must include the header and footer. Example: <pre> -----BEGIN CERTIFICATE----- <certificate_value> -----END CERTIFICATE----- </pre>

string public_certificate = 1;

Returns
Type Description
String

The publicCertificate.

getPublicCertificateBytes()

public ByteString getPublicCertificateBytes()

PEM encoded x.509 public key certificate. This field is set once on certificate creation. Must include the header and footer. Example: <pre> -----BEGIN CERTIFICATE----- <certificate_value> -----END CERTIFICATE----- </pre>

string public_certificate = 1;

Returns
Type Description
ByteString

The bytes for publicCertificate.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CertificateRawData other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setPrivateKey(String value)

public CertificateRawData.Builder setPrivateKey(String value)

Unencrypted PEM encoded RSA private key. This field is set once on certificate creation and then encrypted. The key size must be 2048 bits or fewer. Must include the header and footer. Example: <pre> -----BEGIN RSA PRIVATE KEY----- <unencrypted_key_value> -----END RSA PRIVATE KEY----- </pre> @InputOnly

string private_key = 2;

Parameter
Name Description
value String

The privateKey to set.

Returns
Type Description
CertificateRawData.Builder

This builder for chaining.

setPrivateKeyBytes(ByteString value)

public CertificateRawData.Builder setPrivateKeyBytes(ByteString value)

Unencrypted PEM encoded RSA private key. This field is set once on certificate creation and then encrypted. The key size must be 2048 bits or fewer. Must include the header and footer. Example: <pre> -----BEGIN RSA PRIVATE KEY----- <unencrypted_key_value> -----END RSA PRIVATE KEY----- </pre> @InputOnly

string private_key = 2;

Parameter
Name Description
value ByteString

The bytes for privateKey to set.

Returns
Type Description
CertificateRawData.Builder

This builder for chaining.

setPublicCertificate(String value)

public CertificateRawData.Builder setPublicCertificate(String value)

PEM encoded x.509 public key certificate. This field is set once on certificate creation. Must include the header and footer. Example: <pre> -----BEGIN CERTIFICATE----- <certificate_value> -----END CERTIFICATE----- </pre>

string public_certificate = 1;

Parameter
Name Description
value String

The publicCertificate to set.

Returns
Type Description
CertificateRawData.Builder

This builder for chaining.

setPublicCertificateBytes(ByteString value)

public CertificateRawData.Builder setPublicCertificateBytes(ByteString value)

PEM encoded x.509 public key certificate. This field is set once on certificate creation. Must include the header and footer. Example: <pre> -----BEGIN CERTIFICATE----- <certificate_value> -----END CERTIFICATE----- </pre>

string public_certificate = 1;

Parameter
Name Description
value ByteString

The bytes for publicCertificate to set.

Returns
Type Description
CertificateRawData.Builder

This builder for chaining.