Class TrustConfig.AllowlistedCertificate.Builder (0.106.0)

public static final class TrustConfig.AllowlistedCertificate.Builder extends GeneratedMessage.Builder<TrustConfig.AllowlistedCertificate.Builder> implements TrustConfig.AllowlistedCertificateOrBuilder

Defines an allowlisted certificate.

Protobuf type google.cloud.certificatemanager.v1.TrustConfig.AllowlistedCertificate

Static Methods

getDescriptor()

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

Methods

build()

public TrustConfig.AllowlistedCertificate build()
Returns
Type Description
TrustConfig.AllowlistedCertificate

buildPartial()

public TrustConfig.AllowlistedCertificate buildPartial()
Returns
Type Description
TrustConfig.AllowlistedCertificate

clear()

public TrustConfig.AllowlistedCertificate.Builder clear()
Returns
Type Description
TrustConfig.AllowlistedCertificate.Builder
Overrides

clearPemCertificate()

public TrustConfig.AllowlistedCertificate.Builder clearPemCertificate()

Required. PEM certificate that is allowlisted. The certificate can be up to 5k bytes, and must be a parseable X.509 certificate.

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

Returns
Type Description
TrustConfig.AllowlistedCertificate.Builder

This builder for chaining.

getDefaultInstanceForType()

public TrustConfig.AllowlistedCertificate getDefaultInstanceForType()
Returns
Type Description
TrustConfig.AllowlistedCertificate

getDescriptorForType()

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

getPemCertificate()

public String getPemCertificate()

Required. PEM certificate that is allowlisted. The certificate can be up to 5k bytes, and must be a parseable X.509 certificate.

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

Returns
Type Description
String

The pemCertificate.

getPemCertificateBytes()

public ByteString getPemCertificateBytes()

Required. PEM certificate that is allowlisted. The certificate can be up to 5k bytes, and must be a parseable X.509 certificate.

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

Returns
Type Description
ByteString

The bytes for pemCertificate.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TrustConfig.AllowlistedCertificate other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setPemCertificate(String value)

public TrustConfig.AllowlistedCertificate.Builder setPemCertificate(String value)

Required. PEM certificate that is allowlisted. The certificate can be up to 5k bytes, and must be a parseable X.509 certificate.

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

Parameter
Name Description
value String

The pemCertificate to set.

Returns
Type Description
TrustConfig.AllowlistedCertificate.Builder

This builder for chaining.

setPemCertificateBytes(ByteString value)

public TrustConfig.AllowlistedCertificate.Builder setPemCertificateBytes(ByteString value)

Required. PEM certificate that is allowlisted. The certificate can be up to 5k bytes, and must be a parseable X.509 certificate.

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

Parameter
Name Description
value ByteString

The bytes for pemCertificate to set.

Returns
Type Description
TrustConfig.AllowlistedCertificate.Builder

This builder for chaining.