Class CertificateRevocationList.RevokedCertificate.Builder (2.53.0)

public static final class CertificateRevocationList.RevokedCertificate.Builder extends GeneratedMessageV3.Builder<CertificateRevocationList.RevokedCertificate.Builder> implements CertificateRevocationList.RevokedCertificateOrBuilder

Describes a revoked Certificate.

Protobuf type google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CertificateRevocationList.RevokedCertificate build()
Returns
Type Description
CertificateRevocationList.RevokedCertificate

buildPartial()

public CertificateRevocationList.RevokedCertificate buildPartial()
Returns
Type Description
CertificateRevocationList.RevokedCertificate

clear()

public CertificateRevocationList.RevokedCertificate.Builder clear()
Returns
Type Description
CertificateRevocationList.RevokedCertificate.Builder
Overrides

clearCertificate()

public CertificateRevocationList.RevokedCertificate.Builder clearCertificate()

The resource path for the Certificate in the format projects/*/locations/*/certificateAuthorities/*/certificates/*.

string certificate = 1;

Returns
Type Description
CertificateRevocationList.RevokedCertificate.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearHexSerialNumber()

public CertificateRevocationList.RevokedCertificate.Builder clearHexSerialNumber()

The serial number of the Certificate.

string hex_serial_number = 2;

Returns
Type Description
CertificateRevocationList.RevokedCertificate.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CertificateRevocationList.RevokedCertificate.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CertificateRevocationList.RevokedCertificate.Builder
Overrides

clearRevocationReason()

public CertificateRevocationList.RevokedCertificate.Builder clearRevocationReason()

The reason the Certificate was revoked.

.google.cloud.security.privateca.v1beta1.RevocationReason revocation_reason = 3;

Returns
Type Description
CertificateRevocationList.RevokedCertificate.Builder

This builder for chaining.

clone()

public CertificateRevocationList.RevokedCertificate.Builder clone()
Returns
Type Description
CertificateRevocationList.RevokedCertificate.Builder
Overrides

getCertificate()

public String getCertificate()

The resource path for the Certificate in the format projects/*/locations/*/certificateAuthorities/*/certificates/*.

string certificate = 1;

Returns
Type Description
String

The certificate.

getCertificateBytes()

public ByteString getCertificateBytes()

The resource path for the Certificate in the format projects/*/locations/*/certificateAuthorities/*/certificates/*.

string certificate = 1;

Returns
Type Description
ByteString

The bytes for certificate.

getDefaultInstanceForType()

public CertificateRevocationList.RevokedCertificate getDefaultInstanceForType()
Returns
Type Description
CertificateRevocationList.RevokedCertificate

getDescriptorForType()

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

getHexSerialNumber()

public String getHexSerialNumber()

The serial number of the Certificate.

string hex_serial_number = 2;

Returns
Type Description
String

The hexSerialNumber.

getHexSerialNumberBytes()

public ByteString getHexSerialNumberBytes()

The serial number of the Certificate.

string hex_serial_number = 2;

Returns
Type Description
ByteString

The bytes for hexSerialNumber.

getRevocationReason()

public RevocationReason getRevocationReason()

The reason the Certificate was revoked.

.google.cloud.security.privateca.v1beta1.RevocationReason revocation_reason = 3;

Returns
Type Description
RevocationReason

The revocationReason.

getRevocationReasonValue()

public int getRevocationReasonValue()

The reason the Certificate was revoked.

.google.cloud.security.privateca.v1beta1.RevocationReason revocation_reason = 3;

Returns
Type Description
int

The enum numeric value on the wire for revocationReason.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CertificateRevocationList.RevokedCertificate other)

public CertificateRevocationList.RevokedCertificate.Builder mergeFrom(CertificateRevocationList.RevokedCertificate other)
Parameter
Name Description
other CertificateRevocationList.RevokedCertificate
Returns
Type Description
CertificateRevocationList.RevokedCertificate.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CertificateRevocationList.RevokedCertificate.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CertificateRevocationList.RevokedCertificate.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCertificate(String value)

public CertificateRevocationList.RevokedCertificate.Builder setCertificate(String value)

The resource path for the Certificate in the format projects/*/locations/*/certificateAuthorities/*/certificates/*.

string certificate = 1;

Parameter
Name Description
value String

The certificate to set.

Returns
Type Description
CertificateRevocationList.RevokedCertificate.Builder

This builder for chaining.

setCertificateBytes(ByteString value)

public CertificateRevocationList.RevokedCertificate.Builder setCertificateBytes(ByteString value)

The resource path for the Certificate in the format projects/*/locations/*/certificateAuthorities/*/certificates/*.

string certificate = 1;

Parameter
Name Description
value ByteString

The bytes for certificate to set.

Returns
Type Description
CertificateRevocationList.RevokedCertificate.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setHexSerialNumber(String value)

public CertificateRevocationList.RevokedCertificate.Builder setHexSerialNumber(String value)

The serial number of the Certificate.

string hex_serial_number = 2;

Parameter
Name Description
value String

The hexSerialNumber to set.

Returns
Type Description
CertificateRevocationList.RevokedCertificate.Builder

This builder for chaining.

setHexSerialNumberBytes(ByteString value)

public CertificateRevocationList.RevokedCertificate.Builder setHexSerialNumberBytes(ByteString value)

The serial number of the Certificate.

string hex_serial_number = 2;

Parameter
Name Description
value ByteString

The bytes for hexSerialNumber to set.

Returns
Type Description
CertificateRevocationList.RevokedCertificate.Builder

This builder for chaining.

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

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

setRevocationReason(RevocationReason value)

public CertificateRevocationList.RevokedCertificate.Builder setRevocationReason(RevocationReason value)

The reason the Certificate was revoked.

.google.cloud.security.privateca.v1beta1.RevocationReason revocation_reason = 3;

Parameter
Name Description
value RevocationReason

The revocationReason to set.

Returns
Type Description
CertificateRevocationList.RevokedCertificate.Builder

This builder for chaining.

setRevocationReasonValue(int value)

public CertificateRevocationList.RevokedCertificate.Builder setRevocationReasonValue(int value)

The reason the Certificate was revoked.

.google.cloud.security.privateca.v1beta1.RevocationReason revocation_reason = 3;

Parameter
Name Description
value int

The enum numeric value on the wire for revocationReason to set.

Returns
Type Description
CertificateRevocationList.RevokedCertificate.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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