Class Certificate
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.certificatemanager.v1.Certificate
- All Implemented Interfaces:
CertificateOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class Certificate
extends com.google.protobuf.GeneratedMessage
implements CertificateOrBuilder
Defines TLS certificate.Protobuf type
google.cloud.certificatemanager.v1.Certificate- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDefines TLS certificate.static final classConfiguration and state of a Managed Certificate.static interfacestatic enumCertificate scope.static final classCertificate data for a SelfManaged Certificate.static interfacestatic enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsLabels(String key) Set of labels associated with a Certificate.booleancom.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static CertificateOne or more paragraphs of text description of a certificate.com.google.protobuf.ByteStringOne or more paragraphs of text description of a certificate.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Deprecated.intSet of labels associated with a Certificate.Set of labels associated with a Certificate.getLabelsOrDefault(String key, String defaultValue) Set of labels associated with a Certificate.getLabelsOrThrow(String key) Set of labels associated with a Certificate.If set, contains configuration and state of a managed certificate.If set, contains configuration and state of a managed certificate.getName()A user-defined name of the certificate.com.google.protobuf.ByteStringA user-defined name of the certificate.com.google.protobuf.Parser<Certificate>Output only.com.google.protobuf.ByteStringOutput only.getSanDnsnames(int index) Output only.com.google.protobuf.ByteStringgetSanDnsnamesBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.getScope()Immutable.intImmutable.If set, defines data of a self-managed certificate.If set, defines data of a self-managed certificate.intcom.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOutput only.booleanOutput only.inthashCode()booleanIf set, contains configuration and state of a managed certificate.booleanIf set, defines data of a self-managed certificate.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic Certificate.Builderstatic Certificate.BuildernewBuilder(Certificate prototype) protected Certificate.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static CertificateparseDelimitedFrom(InputStream input) static CertificateparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CertificateparseFrom(byte[] data) static CertificateparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CertificateparseFrom(com.google.protobuf.ByteString data) static CertificateparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CertificateparseFrom(com.google.protobuf.CodedInputStream input) static CertificateparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CertificateparseFrom(InputStream input) static CertificateparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CertificateparseFrom(ByteBuffer data) static CertificateparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Certificate>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER- See Also:
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER- See Also:
-
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER- See Also:
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER- See Also:
-
SELF_MANAGED_FIELD_NUMBER
public static final int SELF_MANAGED_FIELD_NUMBER- See Also:
-
MANAGED_FIELD_NUMBER
public static final int MANAGED_FIELD_NUMBER- See Also:
-
SAN_DNSNAMES_FIELD_NUMBER
public static final int SAN_DNSNAMES_FIELD_NUMBER- See Also:
-
PEM_CERTIFICATE_FIELD_NUMBER
public static final int PEM_CERTIFICATE_FIELD_NUMBER- See Also:
-
EXPIRE_TIME_FIELD_NUMBER
public static final int EXPIRE_TIME_FIELD_NUMBER- See Also:
-
SCOPE_FIELD_NUMBER
public static final int SCOPE_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getTypeCase
- Specified by:
getTypeCasein interfaceCertificateOrBuilder
-
getName
A user-defined name of the certificate. Certificate names must be unique globally and match pattern `projects/*/locations/*/certificates/*`.
string name = 1;- Specified by:
getNamein interfaceCertificateOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()A user-defined name of the certificate. Certificate names must be unique globally and match pattern `projects/*/locations/*/certificates/*`.
string name = 1;- Specified by:
getNameBytesin interfaceCertificateOrBuilder- Returns:
- The bytes for name.
-
getDescription
One or more paragraphs of text description of a certificate.
string description = 8;- Specified by:
getDescriptionin interfaceCertificateOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()One or more paragraphs of text description of a certificate.
string description = 8;- Specified by:
getDescriptionBytesin interfaceCertificateOrBuilder- Returns:
- The bytes for description.
-
hasCreateTime
public boolean hasCreateTime()Output only. The creation timestamp of a Certificate.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceCertificateOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. The creation timestamp of a Certificate.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceCertificateOrBuilder- Returns:
- The createTime.
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. The creation timestamp of a Certificate.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceCertificateOrBuilder
-
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];- Specified by:
hasUpdateTimein interfaceCertificateOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()Output only. The last update timestamp of a Certificate.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimein interfaceCertificateOrBuilder- Returns:
- The updateTime.
-
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. The last update timestamp of a Certificate.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimeOrBuilderin interfaceCertificateOrBuilder
-
getLabelsCount
public int getLabelsCount()Description copied from interface:CertificateOrBuilderSet of labels associated with a Certificate.
map<string, string> labels = 4;- Specified by:
getLabelsCountin interfaceCertificateOrBuilder
-
containsLabels
Set of labels associated with a Certificate.
map<string, string> labels = 4;- Specified by:
containsLabelsin interfaceCertificateOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceCertificateOrBuilder
-
getLabelsMap
Set of labels associated with a Certificate.
map<string, string> labels = 4;- Specified by:
getLabelsMapin interfaceCertificateOrBuilder
-
getLabelsOrDefault
Set of labels associated with a Certificate.
map<string, string> labels = 4;- Specified by:
getLabelsOrDefaultin interfaceCertificateOrBuilder
-
getLabelsOrThrow
Set of labels associated with a Certificate.
map<string, string> labels = 4;- Specified by:
getLabelsOrThrowin interfaceCertificateOrBuilder
-
hasSelfManaged
public boolean hasSelfManaged()If set, defines data of a self-managed certificate.
.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5;- Specified by:
hasSelfManagedin interfaceCertificateOrBuilder- Returns:
- Whether the selfManaged field is set.
-
getSelfManaged
If set, defines data of a self-managed certificate.
.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5;- Specified by:
getSelfManagedin interfaceCertificateOrBuilder- Returns:
- The selfManaged.
-
getSelfManagedOrBuilder
If set, defines data of a self-managed certificate.
.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5;- Specified by:
getSelfManagedOrBuilderin interfaceCertificateOrBuilder
-
hasManaged
public boolean hasManaged()If set, contains configuration and state of a managed certificate.
.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate managed = 11;- Specified by:
hasManagedin interfaceCertificateOrBuilder- Returns:
- Whether the managed field is set.
-
getManaged
If set, contains configuration and state of a managed certificate.
.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate managed = 11;- Specified by:
getManagedin interfaceCertificateOrBuilder- Returns:
- The managed.
-
getManagedOrBuilder
If set, contains configuration and state of a managed certificate.
.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate managed = 11;- Specified by:
getManagedOrBuilderin interfaceCertificateOrBuilder
-
getSanDnsnamesList
public com.google.protobuf.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];- Specified by:
getSanDnsnamesListin interfaceCertificateOrBuilder- Returns:
- A list containing the sanDnsnames.
-
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];- Specified by:
getSanDnsnamesCountin interfaceCertificateOrBuilder- Returns:
- The count of sanDnsnames.
-
getSanDnsnames
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];- Specified by:
getSanDnsnamesin interfaceCertificateOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The sanDnsnames at the given index.
-
getSanDnsnamesBytes
public com.google.protobuf.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];- Specified by:
getSanDnsnamesBytesin interfaceCertificateOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the sanDnsnames at the given index.
-
getPemCertificate
Output only. The PEM-encoded certificate chain.
string pem_certificate = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPemCertificatein interfaceCertificateOrBuilder- Returns:
- The pemCertificate.
-
getPemCertificateBytes
public com.google.protobuf.ByteString getPemCertificateBytes()Output only. The PEM-encoded certificate chain.
string pem_certificate = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPemCertificateBytesin interfaceCertificateOrBuilder- Returns:
- The bytes for pemCertificate.
-
hasExpireTime
public boolean hasExpireTime()Output only. The expiry timestamp of a Certificate.
.google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasExpireTimein interfaceCertificateOrBuilder- Returns:
- Whether the expireTime field is set.
-
getExpireTime
public com.google.protobuf.Timestamp getExpireTime()Output only. The expiry timestamp of a Certificate.
.google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getExpireTimein interfaceCertificateOrBuilder- Returns:
- The expireTime.
-
getExpireTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder()Output only. The expiry timestamp of a Certificate.
.google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getExpireTimeOrBuilderin interfaceCertificateOrBuilder
-
getScopeValue
public int getScopeValue()Immutable. The scope of the certificate.
.google.cloud.certificatemanager.v1.Certificate.Scope scope = 12 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getScopeValuein interfaceCertificateOrBuilder- Returns:
- The enum numeric value on the wire for scope.
-
getScope
Immutable. The scope of the certificate.
.google.cloud.certificatemanager.v1.Certificate.Scope scope = 12 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getScopein interfaceCertificateOrBuilder- Returns:
- The scope.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Certificate parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Certificate parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Certificate parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Certificate parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Certificate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Certificate parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Certificate parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Certificate parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Certificate parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Certificate.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-