Class CertificateRevocationList.RevokedCertificate.Builder (2.29.0)

See more code actions.
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

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

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
Overrides

build()

public CertificateRevocationList.RevokedCertificate build()

buildPartial()

public CertificateRevocationList.RevokedCertificate buildPartial()

clear()

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

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)

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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