Class Certificate.SelfManagedCertificate.Builder (0.19.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Certificate.SelfManagedCertificate build()
Returns
TypeDescription
Certificate.SelfManagedCertificate

buildPartial()

public Certificate.SelfManagedCertificate buildPartial()
Returns
TypeDescription
Certificate.SelfManagedCertificate

clear()

public Certificate.SelfManagedCertificate.Builder clear()
Returns
TypeDescription
Certificate.SelfManagedCertificate.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

public Certificate.SelfManagedCertificate.Builder clone()
Returns
TypeDescription
Certificate.SelfManagedCertificate.Builder
Overrides

getDefaultInstanceForType()

public Certificate.SelfManagedCertificate getDefaultInstanceForType()
Returns
TypeDescription
Certificate.SelfManagedCertificate

getDescriptorForType()

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

The bytes for pemPrivateKey.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Certificate.SelfManagedCertificate other)

public Certificate.SelfManagedCertificate.Builder mergeFrom(Certificate.SelfManagedCertificate other)
Parameter
NameDescription
otherCertificate.SelfManagedCertificate
Returns
TypeDescription
Certificate.SelfManagedCertificate.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The pemCertificate to set.

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

The bytes for pemCertificate to set.

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

The pemPrivateKey to set.

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

The bytes for pemPrivateKey to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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