- 2.56.0 (latest)
- 2.55.0
- 2.54.0
- 2.52.0
- 2.51.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.40.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.27.0
- 2.26.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.8
- 2.5.3
- 2.4.4
- 2.3.1
public static final class Certificate.Builder extends GeneratedMessageV3.Builder<Certificate.Builder> implements CertificateOrBuilder
A Certificate represents an X.509 certificate used to authenticate HTTPS connections to EKM replicas.
Protobuf type google.cloud.kms.v1.Certificate
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Certificate.BuilderImplements
CertificateOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllSubjectAlternativeDnsNames(Iterable<String> values)
public Certificate.Builder addAllSubjectAlternativeDnsNames(Iterable<String> values)
Output only. The subject Alternative DNS names. Only present if parsed is true.
repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
values | Iterable<String> The subjectAlternativeDnsNames to add. |
Type | Description |
Certificate.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Certificate.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Certificate.Builder |
addSubjectAlternativeDnsNames(String value)
public Certificate.Builder addSubjectAlternativeDnsNames(String value)
Output only. The subject Alternative DNS names. Only present if parsed is true.
repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | String The subjectAlternativeDnsNames to add. |
Type | Description |
Certificate.Builder | This builder for chaining. |
addSubjectAlternativeDnsNamesBytes(ByteString value)
public Certificate.Builder addSubjectAlternativeDnsNamesBytes(ByteString value)
Output only. The subject Alternative DNS names. Only present if parsed is true.
repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | ByteString The bytes of the subjectAlternativeDnsNames to add. |
Type | Description |
Certificate.Builder | This builder for chaining. |
build()
public Certificate build()
Type | Description |
Certificate |
buildPartial()
public Certificate buildPartial()
Type | Description |
Certificate |
clear()
public Certificate.Builder clear()
Type | Description |
Certificate.Builder |
clearField(Descriptors.FieldDescriptor field)
public Certificate.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Certificate.Builder |
clearIssuer()
public Certificate.Builder clearIssuer()
Output only. The issuer distinguished name in RFC 2253 format. Only present if parsed is true.
string issuer = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Certificate.Builder | This builder for chaining. |
clearNotAfterTime()
public Certificate.Builder clearNotAfterTime()
Output only. The certificate is not valid after this time. Only present if parsed is true.
.google.protobuf.Timestamp not_after_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Certificate.Builder |
clearNotBeforeTime()
public Certificate.Builder clearNotBeforeTime()
Output only. The certificate is not valid before this time. Only present if parsed is true.
.google.protobuf.Timestamp not_before_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Certificate.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public Certificate.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Certificate.Builder |
clearParsed()
public Certificate.Builder clearParsed()
Output only. True if the certificate was parsed successfully.
bool parsed = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Certificate.Builder | This builder for chaining. |
clearRawDer()
public Certificate.Builder clearRawDer()
Required. The raw certificate bytes in DER format.
bytes raw_der = 1 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
Certificate.Builder | This builder for chaining. |
clearSerialNumber()
public Certificate.Builder clearSerialNumber()
Output only. The certificate serial number as a hex string. Only present if parsed is true.
string serial_number = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Certificate.Builder | This builder for chaining. |
clearSha256Fingerprint()
public Certificate.Builder clearSha256Fingerprint()
Output only. The SHA-256 certificate fingerprint as a hex string. Only present if parsed is true.
string sha256_fingerprint = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Certificate.Builder | This builder for chaining. |
clearSubject()
public Certificate.Builder clearSubject()
Output only. The subject distinguished name in RFC 2253 format. Only present if parsed is true.
string subject = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Certificate.Builder | This builder for chaining. |
clearSubjectAlternativeDnsNames()
public Certificate.Builder clearSubjectAlternativeDnsNames()
Output only. The subject Alternative DNS names. Only present if parsed is true.
repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Certificate.Builder | This builder for chaining. |
clone()
public Certificate.Builder clone()
Type | Description |
Certificate.Builder |
getDefaultInstanceForType()
public Certificate getDefaultInstanceForType()
Type | Description |
Certificate |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getIssuer()
public String getIssuer()
Output only. The issuer distinguished name in RFC 2253 format. Only present if parsed is true.
string issuer = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
String | The issuer. |
getIssuerBytes()
public ByteString getIssuerBytes()
Output only. The issuer distinguished name in RFC 2253 format. Only present if parsed is true.
string issuer = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
ByteString | The bytes for issuer. |
getNotAfterTime()
public Timestamp getNotAfterTime()
Output only. The certificate is not valid after this time. Only present if parsed is true.
.google.protobuf.Timestamp not_after_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Timestamp | The notAfterTime. |
getNotAfterTimeBuilder()
public Timestamp.Builder getNotAfterTimeBuilder()
Output only. The certificate is not valid after this time. Only present if parsed is true.
.google.protobuf.Timestamp not_after_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Builder |
getNotAfterTimeOrBuilder()
public TimestampOrBuilder getNotAfterTimeOrBuilder()
Output only. The certificate is not valid after this time. Only present if parsed is true.
.google.protobuf.Timestamp not_after_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
TimestampOrBuilder |
getNotBeforeTime()
public Timestamp getNotBeforeTime()
Output only. The certificate is not valid before this time. Only present if parsed is true.
.google.protobuf.Timestamp not_before_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Timestamp | The notBeforeTime. |
getNotBeforeTimeBuilder()
public Timestamp.Builder getNotBeforeTimeBuilder()
Output only. The certificate is not valid before this time. Only present if parsed is true.
.google.protobuf.Timestamp not_before_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Builder |
getNotBeforeTimeOrBuilder()
public TimestampOrBuilder getNotBeforeTimeOrBuilder()
Output only. The certificate is not valid before this time. Only present if parsed is true.
.google.protobuf.Timestamp not_before_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
TimestampOrBuilder |
getParsed()
public boolean getParsed()
Output only. True if the certificate was parsed successfully.
bool parsed = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
boolean | The parsed. |
getRawDer()
public ByteString getRawDer()
Required. The raw certificate bytes in DER format.
bytes raw_der = 1 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
ByteString | The rawDer. |
getSerialNumber()
public String getSerialNumber()
Output only. The certificate serial number as a hex string. Only present if parsed is true.
string serial_number = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
String | The serialNumber. |
getSerialNumberBytes()
public ByteString getSerialNumberBytes()
Output only. The certificate serial number as a hex string. Only present if parsed is true.
string serial_number = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
ByteString | The bytes for serialNumber. |
getSha256Fingerprint()
public String getSha256Fingerprint()
Output only. The SHA-256 certificate fingerprint as a hex string. Only present if parsed is true.
string sha256_fingerprint = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
String | The sha256Fingerprint. |
getSha256FingerprintBytes()
public ByteString getSha256FingerprintBytes()
Output only. The SHA-256 certificate fingerprint as a hex string. Only present if parsed is true.
string sha256_fingerprint = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
ByteString | The bytes for sha256Fingerprint. |
getSubject()
public String getSubject()
Output only. The subject distinguished name in RFC 2253 format. Only present if parsed is true.
string subject = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
String | The subject. |
getSubjectAlternativeDnsNames(int index)
public String getSubjectAlternativeDnsNames(int index)
Output only. The subject Alternative DNS names. Only present if parsed is true.
repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
index | int The index of the element to return. |
Type | Description |
String | The subjectAlternativeDnsNames at the given index. |
getSubjectAlternativeDnsNamesBytes(int index)
public ByteString getSubjectAlternativeDnsNamesBytes(int index)
Output only. The subject Alternative DNS names. Only present if parsed is true.
repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
index | int The index of the value to return. |
Type | Description |
ByteString | The bytes of the subjectAlternativeDnsNames at the given index. |
getSubjectAlternativeDnsNamesCount()
public int getSubjectAlternativeDnsNamesCount()
Output only. The subject Alternative DNS names. Only present if parsed is true.
repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
int | The count of subjectAlternativeDnsNames. |
getSubjectAlternativeDnsNamesList()
public ProtocolStringList getSubjectAlternativeDnsNamesList()
Output only. The subject Alternative DNS names. Only present if parsed is true.
repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
ProtocolStringList | A list containing the subjectAlternativeDnsNames. |
getSubjectBytes()
public ByteString getSubjectBytes()
Output only. The subject distinguished name in RFC 2253 format. Only present if parsed is true.
string subject = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
ByteString | The bytes for subject. |
hasNotAfterTime()
public boolean hasNotAfterTime()
Output only. The certificate is not valid after this time. Only present if parsed is true.
.google.protobuf.Timestamp not_after_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
boolean | Whether the notAfterTime field is set. |
hasNotBeforeTime()
public boolean hasNotBeforeTime()
Output only. The certificate is not valid before this time. Only present if parsed is true.
.google.protobuf.Timestamp not_before_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
boolean | Whether the notBeforeTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(Certificate other)
public Certificate.Builder mergeFrom(Certificate other)
Name | Description |
other | Certificate |
Type | Description |
Certificate.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Certificate.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Certificate.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Certificate.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Certificate.Builder |
mergeNotAfterTime(Timestamp value)
public Certificate.Builder mergeNotAfterTime(Timestamp value)
Output only. The certificate is not valid after this time. Only present if parsed is true.
.google.protobuf.Timestamp not_after_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
Certificate.Builder |
mergeNotBeforeTime(Timestamp value)
public Certificate.Builder mergeNotBeforeTime(Timestamp value)
Output only. The certificate is not valid before this time. Only present if parsed is true.
.google.protobuf.Timestamp not_before_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
Certificate.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Certificate.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Certificate.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public Certificate.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Certificate.Builder |
setIssuer(String value)
public Certificate.Builder setIssuer(String value)
Output only. The issuer distinguished name in RFC 2253 format. Only present if parsed is true.
string issuer = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | String The issuer to set. |
Type | Description |
Certificate.Builder | This builder for chaining. |
setIssuerBytes(ByteString value)
public Certificate.Builder setIssuerBytes(ByteString value)
Output only. The issuer distinguished name in RFC 2253 format. Only present if parsed is true.
string issuer = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | ByteString The bytes for issuer to set. |
Type | Description |
Certificate.Builder | This builder for chaining. |
setNotAfterTime(Timestamp value)
public Certificate.Builder setNotAfterTime(Timestamp value)
Output only. The certificate is not valid after this time. Only present if parsed is true.
.google.protobuf.Timestamp not_after_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
Certificate.Builder |
setNotAfterTime(Timestamp.Builder builderForValue)
public Certificate.Builder setNotAfterTime(Timestamp.Builder builderForValue)
Output only. The certificate is not valid after this time. Only present if parsed is true.
.google.protobuf.Timestamp not_after_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
builderForValue | Builder |
Type | Description |
Certificate.Builder |
setNotBeforeTime(Timestamp value)
public Certificate.Builder setNotBeforeTime(Timestamp value)
Output only. The certificate is not valid before this time. Only present if parsed is true.
.google.protobuf.Timestamp not_before_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
Certificate.Builder |
setNotBeforeTime(Timestamp.Builder builderForValue)
public Certificate.Builder setNotBeforeTime(Timestamp.Builder builderForValue)
Output only. The certificate is not valid before this time. Only present if parsed is true.
.google.protobuf.Timestamp not_before_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
builderForValue | Builder |
Type | Description |
Certificate.Builder |
setParsed(boolean value)
public Certificate.Builder setParsed(boolean value)
Output only. True if the certificate was parsed successfully.
bool parsed = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | boolean The parsed to set. |
Type | Description |
Certificate.Builder | This builder for chaining. |
setRawDer(ByteString value)
public Certificate.Builder setRawDer(ByteString value)
Required. The raw certificate bytes in DER format.
bytes raw_der = 1 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | ByteString The rawDer to set. |
Type | Description |
Certificate.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Certificate.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Certificate.Builder |
setSerialNumber(String value)
public Certificate.Builder setSerialNumber(String value)
Output only. The certificate serial number as a hex string. Only present if parsed is true.
string serial_number = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | String The serialNumber to set. |
Type | Description |
Certificate.Builder | This builder for chaining. |
setSerialNumberBytes(ByteString value)
public Certificate.Builder setSerialNumberBytes(ByteString value)
Output only. The certificate serial number as a hex string. Only present if parsed is true.
string serial_number = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | ByteString The bytes for serialNumber to set. |
Type | Description |
Certificate.Builder | This builder for chaining. |
setSha256Fingerprint(String value)
public Certificate.Builder setSha256Fingerprint(String value)
Output only. The SHA-256 certificate fingerprint as a hex string. Only present if parsed is true.
string sha256_fingerprint = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | String The sha256Fingerprint to set. |
Type | Description |
Certificate.Builder | This builder for chaining. |
setSha256FingerprintBytes(ByteString value)
public Certificate.Builder setSha256FingerprintBytes(ByteString value)
Output only. The SHA-256 certificate fingerprint as a hex string. Only present if parsed is true.
string sha256_fingerprint = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | ByteString The bytes for sha256Fingerprint to set. |
Type | Description |
Certificate.Builder | This builder for chaining. |
setSubject(String value)
public Certificate.Builder setSubject(String value)
Output only. The subject distinguished name in RFC 2253 format. Only present if parsed is true.
string subject = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | String The subject to set. |
Type | Description |
Certificate.Builder | This builder for chaining. |
setSubjectAlternativeDnsNames(int index, String value)
public Certificate.Builder setSubjectAlternativeDnsNames(int index, String value)
Output only. The subject Alternative DNS names. Only present if parsed is true.
repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
index | int The index to set the value at. |
value | String The subjectAlternativeDnsNames to set. |
Type | Description |
Certificate.Builder | This builder for chaining. |
setSubjectBytes(ByteString value)
public Certificate.Builder setSubjectBytes(ByteString value)
Output only. The subject distinguished name in RFC 2253 format. Only present if parsed is true.
string subject = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | ByteString The bytes for subject to set. |
Type | Description |
Certificate.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Certificate.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Certificate.Builder |