Class CertificateRawData.Builder (2.16.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CertificateRawData.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CertificateRawData.Builder
Overrides

build()

public CertificateRawData build()
Returns
TypeDescription
CertificateRawData

buildPartial()

public CertificateRawData buildPartial()
Returns
TypeDescription
CertificateRawData

clear()

public CertificateRawData.Builder clear()
Returns
TypeDescription
CertificateRawData.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CertificateRawData.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CertificateRawData.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CertificateRawData.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
CertificateRawData.Builder

This builder for chaining.

clone()

public CertificateRawData.Builder clone()
Returns
TypeDescription
CertificateRawData.Builder
Overrides

getDefaultInstanceForType()

public CertificateRawData getDefaultInstanceForType()
Returns
TypeDescription
CertificateRawData

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for publicCertificate.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CertificateRawData other)

public CertificateRawData.Builder mergeFrom(CertificateRawData other)
Parameter
NameDescription
otherCertificateRawData
Returns
TypeDescription
CertificateRawData.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CertificateRawData.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CertificateRawData.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CertificateRawData.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CertificateRawData.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CertificateRawData.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CertificateRawData.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CertificateRawData.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The privateKey to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for privateKey to set.

Returns
TypeDescription
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
NameDescription
valueString

The publicCertificate to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for publicCertificate to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CertificateRawData.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CertificateRawData.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CertificateRawData.Builder
Overrides