Class TlsCertificate.Builder (2.57.0)

public static final class TlsCertificate.Builder extends GeneratedMessageV3.Builder<TlsCertificate.Builder> implements TlsCertificateOrBuilder

TlsCertificate Resource

Protobuf type google.cloud.redis.v1beta1.TlsCertificate

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TlsCertificate build()
Returns
Type Description
TlsCertificate

buildPartial()

public TlsCertificate buildPartial()
Returns
Type Description
TlsCertificate

clear()

public TlsCertificate.Builder clear()
Returns
Type Description
TlsCertificate.Builder
Overrides

clearCert()

public TlsCertificate.Builder clearCert()

PEM representation.

string cert = 2;

Returns
Type Description
TlsCertificate.Builder

This builder for chaining.

clearCreateTime()

public TlsCertificate.Builder clearCreateTime()

Output only. The time when the certificate was created in RFC 3339 format, for example 2020-05-18T00:00:00.094Z.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TlsCertificate.Builder

clearExpireTime()

public TlsCertificate.Builder clearExpireTime()

Output only. The time when the certificate expires in RFC 3339 format, for example 2020-05-18T00:00:00.094Z.

.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TlsCertificate.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSerialNumber()

public TlsCertificate.Builder clearSerialNumber()

Serial number, as extracted from the certificate.

string serial_number = 1;

Returns
Type Description
TlsCertificate.Builder

This builder for chaining.

clearSha1Fingerprint()

public TlsCertificate.Builder clearSha1Fingerprint()

Sha1 Fingerprint of the certificate.

string sha1_fingerprint = 5;

Returns
Type Description
TlsCertificate.Builder

This builder for chaining.

clone()

public TlsCertificate.Builder clone()
Returns
Type Description
TlsCertificate.Builder
Overrides

getCert()

public String getCert()

PEM representation.

string cert = 2;

Returns
Type Description
String

The cert.

getCertBytes()

public ByteString getCertBytes()

PEM representation.

string cert = 2;

Returns
Type Description
ByteString

The bytes for cert.

getCreateTime()

public Timestamp getCreateTime()

Output only. The time when the certificate was created in RFC 3339 format, for example 2020-05-18T00:00:00.094Z.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time when the certificate was created in RFC 3339 format, for example 2020-05-18T00:00:00.094Z.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time when the certificate was created in RFC 3339 format, for example 2020-05-18T00:00:00.094Z.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public TlsCertificate getDefaultInstanceForType()
Returns
Type Description
TlsCertificate

getDescriptorForType()

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

getExpireTime()

public Timestamp getExpireTime()

Output only. The time when the certificate expires in RFC 3339 format, for example 2020-05-18T00:00:00.094Z.

.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The expireTime.

getExpireTimeBuilder()

public Timestamp.Builder getExpireTimeBuilder()

Output only. The time when the certificate expires in RFC 3339 format, for example 2020-05-18T00:00:00.094Z.

.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getExpireTimeOrBuilder()

public TimestampOrBuilder getExpireTimeOrBuilder()

Output only. The time when the certificate expires in RFC 3339 format, for example 2020-05-18T00:00:00.094Z.

.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getSerialNumber()

public String getSerialNumber()

Serial number, as extracted from the certificate.

string serial_number = 1;

Returns
Type Description
String

The serialNumber.

getSerialNumberBytes()

public ByteString getSerialNumberBytes()

Serial number, as extracted from the certificate.

string serial_number = 1;

Returns
Type Description
ByteString

The bytes for serialNumber.

getSha1Fingerprint()

public String getSha1Fingerprint()

Sha1 Fingerprint of the certificate.

string sha1_fingerprint = 5;

Returns
Type Description
String

The sha1Fingerprint.

getSha1FingerprintBytes()

public ByteString getSha1FingerprintBytes()

Sha1 Fingerprint of the certificate.

string sha1_fingerprint = 5;

Returns
Type Description
ByteString

The bytes for sha1Fingerprint.

hasCreateTime()

public boolean hasCreateTime()

Output only. The time when the certificate was created in RFC 3339 format, for example 2020-05-18T00:00:00.094Z.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasExpireTime()

public boolean hasExpireTime()

Output only. The time when the certificate expires in RFC 3339 format, for example 2020-05-18T00:00:00.094Z.

.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the expireTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public TlsCertificate.Builder mergeCreateTime(Timestamp value)

Output only. The time when the certificate was created in RFC 3339 format, for example 2020-05-18T00:00:00.094Z.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
TlsCertificate.Builder

mergeExpireTime(Timestamp value)

public TlsCertificate.Builder mergeExpireTime(Timestamp value)

Output only. The time when the certificate expires in RFC 3339 format, for example 2020-05-18T00:00:00.094Z.

.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
TlsCertificate.Builder

mergeFrom(TlsCertificate other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCert(String value)

public TlsCertificate.Builder setCert(String value)

PEM representation.

string cert = 2;

Parameter
Name Description
value String

The cert to set.

Returns
Type Description
TlsCertificate.Builder

This builder for chaining.

setCertBytes(ByteString value)

public TlsCertificate.Builder setCertBytes(ByteString value)

PEM representation.

string cert = 2;

Parameter
Name Description
value ByteString

The bytes for cert to set.

Returns
Type Description
TlsCertificate.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public TlsCertificate.Builder setCreateTime(Timestamp value)

Output only. The time when the certificate was created in RFC 3339 format, for example 2020-05-18T00:00:00.094Z.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
TlsCertificate.Builder

setCreateTime(Timestamp.Builder builderForValue)

public TlsCertificate.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time when the certificate was created in RFC 3339 format, for example 2020-05-18T00:00:00.094Z.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
TlsCertificate.Builder

setExpireTime(Timestamp value)

public TlsCertificate.Builder setExpireTime(Timestamp value)

Output only. The time when the certificate expires in RFC 3339 format, for example 2020-05-18T00:00:00.094Z.

.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
TlsCertificate.Builder

setExpireTime(Timestamp.Builder builderForValue)

public TlsCertificate.Builder setExpireTime(Timestamp.Builder builderForValue)

Output only. The time when the certificate expires in RFC 3339 format, for example 2020-05-18T00:00:00.094Z.

.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
TlsCertificate.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSerialNumber(String value)

public TlsCertificate.Builder setSerialNumber(String value)

Serial number, as extracted from the certificate.

string serial_number = 1;

Parameter
Name Description
value String

The serialNumber to set.

Returns
Type Description
TlsCertificate.Builder

This builder for chaining.

setSerialNumberBytes(ByteString value)

public TlsCertificate.Builder setSerialNumberBytes(ByteString value)

Serial number, as extracted from the certificate.

string serial_number = 1;

Parameter
Name Description
value ByteString

The bytes for serialNumber to set.

Returns
Type Description
TlsCertificate.Builder

This builder for chaining.

setSha1Fingerprint(String value)

public TlsCertificate.Builder setSha1Fingerprint(String value)

Sha1 Fingerprint of the certificate.

string sha1_fingerprint = 5;

Parameter
Name Description
value String

The sha1Fingerprint to set.

Returns
Type Description
TlsCertificate.Builder

This builder for chaining.

setSha1FingerprintBytes(ByteString value)

public TlsCertificate.Builder setSha1FingerprintBytes(ByteString value)

Sha1 Fingerprint of the certificate.

string sha1_fingerprint = 5;

Parameter
Name Description
value ByteString

The bytes for sha1Fingerprint to set.

Returns
Type Description
TlsCertificate.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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