Class TlsCertificate.Builder (2.23.0)

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

TlsCertificate Resource

Protobuf type google.cloud.redis.v1.TlsCertificate

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TlsCertificate build()
Returns
TypeDescription
TlsCertificate

buildPartial()

public TlsCertificate buildPartial()
Returns
TypeDescription
TlsCertificate

clear()

public TlsCertificate.Builder clear()
Returns
TypeDescription
TlsCertificate.Builder
Overrides

clearCert()

public TlsCertificate.Builder clearCert()

PEM representation.

string cert = 2;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
TlsCertificate.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public TlsCertificate.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TlsCertificate.Builder
Overrides

clearSerialNumber()

public TlsCertificate.Builder clearSerialNumber()

Serial number, as extracted from the certificate.

string serial_number = 1;

Returns
TypeDescription
TlsCertificate.Builder

This builder for chaining.

clearSha1Fingerprint()

public TlsCertificate.Builder clearSha1Fingerprint()

Sha1 Fingerprint of the certificate.

string sha1_fingerprint = 5;

Returns
TypeDescription
TlsCertificate.Builder

This builder for chaining.

clone()

public TlsCertificate.Builder clone()
Returns
TypeDescription
TlsCertificate.Builder
Overrides

getCert()

public String getCert()

PEM representation.

string cert = 2;

Returns
TypeDescription
String

The cert.

getCertBytes()

public ByteString getCertBytes()

PEM representation.

string cert = 2;

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

getDefaultInstanceForType()

public TlsCertificate getDefaultInstanceForType()
Returns
TypeDescription
TlsCertificate

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getSerialNumber()

public String getSerialNumber()

Serial number, as extracted from the certificate.

string serial_number = 1;

Returns
TypeDescription
String

The serialNumber.

getSerialNumberBytes()

public ByteString getSerialNumberBytes()

Serial number, as extracted from the certificate.

string serial_number = 1;

Returns
TypeDescription
ByteString

The bytes for serialNumber.

getSha1Fingerprint()

public String getSha1Fingerprint()

Sha1 Fingerprint of the certificate.

string sha1_fingerprint = 5;

Returns
TypeDescription
String

The sha1Fingerprint.

getSha1FingerprintBytes()

public ByteString getSha1FingerprintBytes()

Sha1 Fingerprint of the certificate.

string sha1_fingerprint = 5;

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

Whether the expireTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
TlsCertificate.Builder

mergeFrom(TlsCertificate other)

public TlsCertificate.Builder mergeFrom(TlsCertificate other)
Parameter
NameDescription
otherTlsCertificate
Returns
TypeDescription
TlsCertificate.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TlsCertificate.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TlsCertificate.Builder
Overrides

setCert(String value)

public TlsCertificate.Builder setCert(String value)

PEM representation.

string cert = 2;

Parameter
NameDescription
valueString

The cert to set.

Returns
TypeDescription
TlsCertificate.Builder

This builder for chaining.

setCertBytes(ByteString value)

public TlsCertificate.Builder setCertBytes(ByteString value)

PEM representation.

string cert = 2;

Parameter
NameDescription
valueByteString

The bytes for cert to set.

Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
TlsCertificate.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public TlsCertificate.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TlsCertificate.Builder
Overrides

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

public TlsCertificate.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TlsCertificate.Builder
Overrides

setSerialNumber(String value)

public TlsCertificate.Builder setSerialNumber(String value)

Serial number, as extracted from the certificate.

string serial_number = 1;

Parameter
NameDescription
valueString

The serialNumber to set.

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

The bytes for serialNumber to set.

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

The sha1Fingerprint to set.

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

The bytes for sha1Fingerprint to set.

Returns
TypeDescription
TlsCertificate.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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