public final class Certificate extends GeneratedMessageV3 implements CertificateOrBuilder
Defines TLS certificate.
Protobuf type google.cloud.certificatemanager.v1.Certificate
Static Fields
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
Field Value
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
Field Value
EXPIRE_TIME_FIELD_NUMBER
public static final int EXPIRE_TIME_FIELD_NUMBER
Field Value
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
Field Value
MANAGED_FIELD_NUMBER
public static final int MANAGED_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
PEM_CERTIFICATE_FIELD_NUMBER
public static final int PEM_CERTIFICATE_FIELD_NUMBER
Field Value
SAN_DNSNAMES_FIELD_NUMBER
public static final int SAN_DNSNAMES_FIELD_NUMBER
Field Value
SCOPE_FIELD_NUMBER
public static final int SCOPE_FIELD_NUMBER
Field Value
SELF_MANAGED_FIELD_NUMBER
public static final int SELF_MANAGED_FIELD_NUMBER
Field Value
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Certificate getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Certificate.Builder newBuilder()
Returns
newBuilder(Certificate prototype)
public static Certificate.Builder newBuilder(Certificate prototype)
Parameter
Returns
public static Certificate parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Certificate parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Certificate parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Certificate parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Certificate parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Certificate parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Certificate parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Certificate parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Certificate parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Certificate parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Certificate parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Certificate parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Certificate> parser()
Returns
Methods
containsLabels(String key)
public boolean containsLabels(String key)
Set of labels associated with a Certificate.
map<string, string> labels = 4;
Parameter
Returns
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getCreateTime()
public Timestamp getCreateTime()
Output only. The creation timestamp of a Certificate.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The creation timestamp of a Certificate.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getDefaultInstanceForType()
public Certificate getDefaultInstanceForType()
Returns
getDescription()
public String getDescription()
One or more paragraphs of text description of a certificate.
string description = 8;
Returns
Type | Description |
String | The description.
|
getDescriptionBytes()
public ByteString getDescriptionBytes()
One or more paragraphs of text description of a certificate.
string description = 8;
Returns
Type | Description |
ByteString | The bytes for description.
|
getExpireTime()
public Timestamp getExpireTime()
Output only. The expiry timestamp of a Certificate.
.google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getExpireTimeOrBuilder()
public TimestampOrBuilder getExpireTimeOrBuilder()
Output only. The expiry timestamp of a Certificate.
.google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getLabels()
public Map<String,String> getLabels()
Returns
getLabelsCount()
public int getLabelsCount()
Set of labels associated with a Certificate.
map<string, string> labels = 4;
Returns
getLabelsMap()
public Map<String,String> getLabelsMap()
Set of labels associated with a Certificate.
map<string, string> labels = 4;
Returns
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
Set of labels associated with a Certificate.
map<string, string> labels = 4;
Parameters
Returns
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
Set of labels associated with a Certificate.
map<string, string> labels = 4;
Parameter
Returns
getManaged()
public Certificate.ManagedCertificate getManaged()
If set, contains configuration and state of a managed certificate.
.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate managed = 11;
Returns
getManagedOrBuilder()
public Certificate.ManagedCertificateOrBuilder getManagedOrBuilder()
If set, contains configuration and state of a managed certificate.
.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate managed = 11;
Returns
getName()
A user-defined name of the certificate. Certificate names must be unique
globally and match pattern projects/*/locations/*/certificates/*
.
string name = 1;
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
A user-defined name of the certificate. Certificate names must be unique
globally and match pattern projects/*/locations/*/certificates/*
.
string name = 1;
Returns
getParserForType()
public Parser<Certificate> getParserForType()
Returns
Overrides
getPemCertificate()
public String getPemCertificate()
Output only. The PEM-encoded certificate chain.
string pem_certificate = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
String | The pemCertificate.
|
getPemCertificateBytes()
public ByteString getPemCertificateBytes()
Output only. The PEM-encoded certificate chain.
string pem_certificate = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
ByteString | The bytes for pemCertificate.
|
getSanDnsnames(int index)
public String getSanDnsnames(int index)
Output only. The list of Subject Alternative Names of dnsName type defined
in the certificate (see RFC 5280 4.2.1.6). Managed certificates that
haven't been provisioned yet have this field populated with a value of the
managed.domains field.
repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Name | Description |
index | int
The index of the element to return.
|
Returns
Type | Description |
String | The sanDnsnames at the given index.
|
getSanDnsnamesBytes(int index)
public ByteString getSanDnsnamesBytes(int index)
Output only. The list of Subject Alternative Names of dnsName type defined
in the certificate (see RFC 5280 4.2.1.6). Managed certificates that
haven't been provisioned yet have this field populated with a value of the
managed.domains field.
repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Name | Description |
index | int
The index of the value to return.
|
Returns
Type | Description |
ByteString | The bytes of the sanDnsnames at the given index.
|
getSanDnsnamesCount()
public int getSanDnsnamesCount()
Output only. The list of Subject Alternative Names of dnsName type defined
in the certificate (see RFC 5280 4.2.1.6). Managed certificates that
haven't been provisioned yet have this field populated with a value of the
managed.domains field.
repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
int | The count of sanDnsnames.
|
getSanDnsnamesList()
public ProtocolStringList getSanDnsnamesList()
Output only. The list of Subject Alternative Names of dnsName type defined
in the certificate (see RFC 5280 4.2.1.6). Managed certificates that
haven't been provisioned yet have this field populated with a value of the
managed.domains field.
repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getScope()
public Certificate.Scope getScope()
Immutable. The scope of the certificate.
.google.cloud.certificatemanager.v1.Certificate.Scope scope = 12 [(.google.api.field_behavior) = IMMUTABLE];
Returns
getScopeValue()
public int getScopeValue()
Immutable. The scope of the certificate.
.google.cloud.certificatemanager.v1.Certificate.Scope scope = 12 [(.google.api.field_behavior) = IMMUTABLE];
Returns
Type | Description |
int | The enum numeric value on the wire for scope.
|
getSelfManaged()
public Certificate.SelfManagedCertificate getSelfManaged()
If set, defines data of a self-managed certificate.
.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5;
Returns
getSelfManagedOrBuilder()
public Certificate.SelfManagedCertificateOrBuilder getSelfManagedOrBuilder()
If set, defines data of a self-managed certificate.
.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5;
Returns
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getTypeCase()
public Certificate.TypeCase getTypeCase()
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
getUpdateTime()
public Timestamp getUpdateTime()
Output only. The last update timestamp of a Certificate.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The last update timestamp of a Certificate.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
hasCreateTime()
public boolean hasCreateTime()
Output only. The creation timestamp of a Certificate.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
boolean | Whether the createTime field is set.
|
hasExpireTime()
public boolean hasExpireTime()
Output only. The expiry timestamp of a Certificate.
.google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
boolean | Whether the expireTime field is set.
|
hasManaged()
public boolean hasManaged()
If set, contains configuration and state of a managed certificate.
.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate managed = 11;
Returns
Type | Description |
boolean | Whether the managed field is set.
|
hasSelfManaged()
public boolean hasSelfManaged()
If set, defines data of a self-managed certificate.
.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5;
Returns
Type | Description |
boolean | Whether the selfManaged field is set.
|
hasUpdateTime()
public boolean hasUpdateTime()
Output only. The last update timestamp of a Certificate.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
boolean | Whether the updateTime field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Certificate.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Certificate.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Certificate.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions