Class CertificateRawData.Builder (2.45.0)

public static final class CertificateRawData.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CertificateRawData.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public CertificateRawData.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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