Class Certificate (0.20.0)

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
TypeDescription
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
TypeDescription
int

EXPIRE_TIME_FIELD_NUMBER

public static final int EXPIRE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

LABELS_FIELD_NUMBER

public static final int LABELS_FIELD_NUMBER
Field Value
TypeDescription
int

MANAGED_FIELD_NUMBER

public static final int MANAGED_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

PEM_CERTIFICATE_FIELD_NUMBER

public static final int PEM_CERTIFICATE_FIELD_NUMBER
Field Value
TypeDescription
int

SAN_DNSNAMES_FIELD_NUMBER

public static final int SAN_DNSNAMES_FIELD_NUMBER
Field Value
TypeDescription
int

SCOPE_FIELD_NUMBER

public static final int SCOPE_FIELD_NUMBER
Field Value
TypeDescription
int

SELF_MANAGED_FIELD_NUMBER

public static final int SELF_MANAGED_FIELD_NUMBER
Field Value
TypeDescription
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Certificate getDefaultInstance()
Returns
TypeDescription
Certificate

getDescriptor()

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

newBuilder()

public static Certificate.Builder newBuilder()
Returns
TypeDescription
Certificate.Builder

newBuilder(Certificate prototype)

public static Certificate.Builder newBuilder(Certificate prototype)
Parameter
NameDescription
prototypeCertificate
Returns
TypeDescription
Certificate.Builder

parseDelimitedFrom(InputStream input)

public static Certificate parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Certificate
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Certificate parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Certificate
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Certificate parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Certificate
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Certificate parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Certificate
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Certificate parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Certificate
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Certificate parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Certificate
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Certificate parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Certificate
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Certificate parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Certificate
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Certificate parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Certificate
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Certificate parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Certificate
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Certificate parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Certificate
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Certificate parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Certificate
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Certificate> parser()
Returns
TypeDescription
Parser<Certificate>

Methods

containsLabels(String key)

public boolean containsLabels(String key)

Set of labels associated with a Certificate.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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
TypeDescription
Timestamp

The createTime.

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

getDefaultInstanceForType()

public Certificate getDefaultInstanceForType()
Returns
TypeDescription
Certificate

getDescription()

public String getDescription()

One or more paragraphs of text description of a certificate.

string description = 8;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

One or more paragraphs of text description of a certificate.

string description = 8;

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

The expireTime.

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

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Set of labels associated with a Certificate.

map<string, string> labels = 4;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Set of labels associated with a Certificate.

map<string, string> labels = 4;

Returns
TypeDescription
Map<String,String>

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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Set of labels associated with a Certificate.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getManaged()

public Certificate.ManagedCertificate getManaged()

If set, contains configuration and state of a managed certificate.

.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate managed = 11;

Returns
TypeDescription
Certificate.ManagedCertificate

The managed.

getManagedOrBuilder()

public Certificate.ManagedCertificateOrBuilder getManagedOrBuilder()

If set, contains configuration and state of a managed certificate.

.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate managed = 11;

Returns
TypeDescription
Certificate.ManagedCertificateOrBuilder

getName()

public String getName()

A user-defined name of the certificate. Certificate names must be unique globally and match pattern projects/*/locations/*/certificates/*.

string name = 1;

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

The bytes for name.

getParserForType()

public Parser<Certificate> getParserForType()
Returns
TypeDescription
Parser<Certificate>
Overrides

getPemCertificate()

public String getPemCertificate()

Output only. The PEM-encoded certificate chain.

string pem_certificate = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

The index of the element to return.

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

The index of the value to return.

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

A list containing the sanDnsnames.

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
TypeDescription
Certificate.Scope

The scope.

getScopeValue()

public int getScopeValue()

Immutable. The scope of the certificate.

.google.cloud.certificatemanager.v1.Certificate.Scope scope = 12 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
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
TypeDescription
Certificate.SelfManagedCertificate

The selfManaged.

getSelfManagedOrBuilder()

public Certificate.SelfManagedCertificateOrBuilder getSelfManagedOrBuilder()

If set, defines data of a self-managed certificate.

.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5;

Returns
TypeDescription
Certificate.SelfManagedCertificateOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTypeCase()

public Certificate.TypeCase getTypeCase()
Returns
TypeDescription
Certificate.TypeCase

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
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
TypeDescription
Timestamp

The updateTime.

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

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

Whether the updateTime field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Certificate.Builder newBuilderForType()
Returns
TypeDescription
Certificate.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Certificate.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Certificate.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Certificate.Builder toBuilder()
Returns
TypeDescription
Certificate.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException