Class CertificateRevocationList.RevokedCertificate.Builder (2.15.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CertificateRevocationList.RevokedCertificate build()
Returns
TypeDescription
CertificateRevocationList.RevokedCertificate

buildPartial()

public CertificateRevocationList.RevokedCertificate buildPartial()
Returns
TypeDescription
CertificateRevocationList.RevokedCertificate

clear()

public CertificateRevocationList.RevokedCertificate.Builder clear()
Returns
TypeDescription
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
TypeDescription
CertificateRevocationList.RevokedCertificate.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearHexSerialNumber()

public CertificateRevocationList.RevokedCertificate.Builder clearHexSerialNumber()

The serial number of the Certificate.

string hex_serial_number = 2;

Returns
TypeDescription
CertificateRevocationList.RevokedCertificate.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

public CertificateRevocationList.RevokedCertificate.Builder clone()
Returns
TypeDescription
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
TypeDescription
String

The certificate.

getCertificateBytes()

public ByteString getCertificateBytes()

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

string certificate = 1;

Returns
TypeDescription
ByteString

The bytes for certificate.

getDefaultInstanceForType()

public CertificateRevocationList.RevokedCertificate getDefaultInstanceForType()
Returns
TypeDescription
CertificateRevocationList.RevokedCertificate

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getHexSerialNumber()

public String getHexSerialNumber()

The serial number of the Certificate.

string hex_serial_number = 2;

Returns
TypeDescription
String

The hexSerialNumber.

getHexSerialNumberBytes()

public ByteString getHexSerialNumberBytes()

The serial number of the Certificate.

string hex_serial_number = 2;

Returns
TypeDescription
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
TypeDescription
RevocationReason

The revocationReason.

getRevocationReasonValue()

public int getRevocationReasonValue()

The reason the Certificate was revoked.

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

Returns
TypeDescription
int

The enum numeric value on the wire for revocationReason.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CertificateRevocationList.RevokedCertificate other)

public CertificateRevocationList.RevokedCertificate.Builder mergeFrom(CertificateRevocationList.RevokedCertificate other)
Parameter
NameDescription
otherCertificateRevocationList.RevokedCertificate
Returns
TypeDescription
CertificateRevocationList.RevokedCertificate.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CertificateRevocationList.RevokedCertificate.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The certificate to set.

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

The bytes for certificate to set.

Returns
TypeDescription
CertificateRevocationList.RevokedCertificate.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The hexSerialNumber to set.

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

The bytes for hexSerialNumber to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueRevocationReason

The revocationReason to set.

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

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

Returns
TypeDescription
CertificateRevocationList.RevokedCertificate.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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