Class Certificate.SelfManagedCertificate.Builder (0.57.0)

public static final class Certificate.SelfManagedCertificate.Builder extends GeneratedMessageV3.Builder<Certificate.SelfManagedCertificate.Builder> implements Certificate.SelfManagedCertificateOrBuilder

Certificate data for a SelfManaged Certificate. SelfManaged Certificates are uploaded by the user. Updating such certificates before they expire remains the user's responsibility.

Protobuf type google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Certificate.SelfManagedCertificate build()
Returns
Type Description
Certificate.SelfManagedCertificate

buildPartial()

public Certificate.SelfManagedCertificate buildPartial()
Returns
Type Description
Certificate.SelfManagedCertificate

clear()

public Certificate.SelfManagedCertificate.Builder clear()
Returns
Type Description
Certificate.SelfManagedCertificate.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPemCertificate()

public Certificate.SelfManagedCertificate.Builder clearPemCertificate()

Input only. The PEM-encoded certificate chain. Leaf certificate comes first, followed by intermediate ones if any.

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

Returns
Type Description
Certificate.SelfManagedCertificate.Builder

This builder for chaining.

clearPemPrivateKey()

public Certificate.SelfManagedCertificate.Builder clearPemPrivateKey()

Input only. The PEM-encoded private key of the leaf certificate.

string pem_private_key = 2 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
Certificate.SelfManagedCertificate.Builder

This builder for chaining.

clone()

public Certificate.SelfManagedCertificate.Builder clone()
Returns
Type Description
Certificate.SelfManagedCertificate.Builder
Overrides

getDefaultInstanceForType()

public Certificate.SelfManagedCertificate getDefaultInstanceForType()
Returns
Type Description
Certificate.SelfManagedCertificate

getDescriptorForType()

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

getPemCertificate()

public String getPemCertificate()

Input only. The PEM-encoded certificate chain. Leaf certificate comes first, followed by intermediate ones if any.

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

Returns
Type Description
String

The pemCertificate.

getPemCertificateBytes()

public ByteString getPemCertificateBytes()

Input only. The PEM-encoded certificate chain. Leaf certificate comes first, followed by intermediate ones if any.

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

Returns
Type Description
ByteString

The bytes for pemCertificate.

getPemPrivateKey()

public String getPemPrivateKey()

Input only. The PEM-encoded private key of the leaf certificate.

string pem_private_key = 2 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
String

The pemPrivateKey.

getPemPrivateKeyBytes()

public ByteString getPemPrivateKeyBytes()

Input only. The PEM-encoded private key of the leaf certificate.

string pem_private_key = 2 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
ByteString

The bytes for pemPrivateKey.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Certificate.SelfManagedCertificate other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPemCertificate(String value)

public Certificate.SelfManagedCertificate.Builder setPemCertificate(String value)

Input only. The PEM-encoded certificate chain. Leaf certificate comes first, followed by intermediate ones if any.

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

Parameter
Name Description
value String

The pemCertificate to set.

Returns
Type Description
Certificate.SelfManagedCertificate.Builder

This builder for chaining.

setPemCertificateBytes(ByteString value)

public Certificate.SelfManagedCertificate.Builder setPemCertificateBytes(ByteString value)

Input only. The PEM-encoded certificate chain. Leaf certificate comes first, followed by intermediate ones if any.

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

Parameter
Name Description
value ByteString

The bytes for pemCertificate to set.

Returns
Type Description
Certificate.SelfManagedCertificate.Builder

This builder for chaining.

setPemPrivateKey(String value)

public Certificate.SelfManagedCertificate.Builder setPemPrivateKey(String value)

Input only. The PEM-encoded private key of the leaf certificate.

string pem_private_key = 2 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
value String

The pemPrivateKey to set.

Returns
Type Description
Certificate.SelfManagedCertificate.Builder

This builder for chaining.

setPemPrivateKeyBytes(ByteString value)

public Certificate.SelfManagedCertificate.Builder setPemPrivateKeyBytes(ByteString value)

Input only. The PEM-encoded private key of the leaf certificate.

string pem_private_key = 2 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for pemPrivateKey to set.

Returns
Type Description
Certificate.SelfManagedCertificate.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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