Class Certificate

  • All Implemented Interfaces:
    CertificateOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class Certificate
    extends com.google.protobuf.GeneratedMessageV3
    implements CertificateOrBuilder
     Defines TLS certificate.
     
    Protobuf type google.cloud.certificatemanager.v1.Certificate
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • 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;
        Specified by:
        getName in interface CertificateOrBuilder
        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:
        getNameBytes in interface CertificateOrBuilder
        Returns:
        The bytes for name.
      • getDescription

        public String getDescription()
         One or more paragraphs of text description of a certificate.
         
        string description = 8;
        Specified by:
        getDescription in interface CertificateOrBuilder
        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:
        getDescriptionBytes in interface CertificateOrBuilder
        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:
        hasCreateTime in interface CertificateOrBuilder
        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:
        getCreateTime in interface CertificateOrBuilder
        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:
        getCreateTimeOrBuilder in interface CertificateOrBuilder
      • 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:
        hasUpdateTime in interface CertificateOrBuilder
        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:
        getUpdateTime in interface CertificateOrBuilder
        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:
        getUpdateTimeOrBuilder in interface CertificateOrBuilder
      • containsLabels

        public boolean containsLabels​(String key)
         Set of labels associated with a Certificate.
         
        map<string, string> labels = 4;
        Specified by:
        containsLabels in interface CertificateOrBuilder
      • hasSelfManaged

        public boolean hasSelfManaged()
         If set, defines data of a self-managed certificate.
         
        .google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5;
        Specified by:
        hasSelfManaged in interface CertificateOrBuilder
        Returns:
        Whether the selfManaged 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;
        Specified by:
        hasManaged in interface CertificateOrBuilder
        Returns:
        Whether the managed field is set.
      • 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:
        getSanDnsnamesList in interface CertificateOrBuilder
        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:
        getSanDnsnamesCount in interface CertificateOrBuilder
        Returns:
        The count of sanDnsnames.
      • getSanDnsnames

        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];
        Specified by:
        getSanDnsnames in interface CertificateOrBuilder
        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:
        getSanDnsnamesBytes in interface CertificateOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the sanDnsnames at the given index.
      • getPemCertificate

        public String getPemCertificate()
         Output only. The PEM-encoded certificate chain.
         
        string pem_certificate = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getPemCertificate in interface CertificateOrBuilder
        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:
        getPemCertificateBytes in interface CertificateOrBuilder
        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:
        hasExpireTime in interface CertificateOrBuilder
        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:
        getExpireTime in interface CertificateOrBuilder
        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:
        getExpireTimeOrBuilder in interface CertificateOrBuilder
      • 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:
        getScopeValue in interface CertificateOrBuilder
        Returns:
        The enum numeric value on the wire for scope.
      • getScope

        public Certificate.Scope getScope()
         Immutable. The scope of the certificate.
         
        .google.cloud.certificatemanager.v1.Certificate.Scope scope = 12 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getScope in interface CertificateOrBuilder
        Returns:
        The scope.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.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

        public static Certificate parseFrom​(com.google.protobuf.CodedInputStream input,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws IOException
        Throws:
        IOException
      • newBuilderForType

        public Certificate.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public Certificate.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected Certificate.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static Certificate getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<Certificate> parser()
      • getParserForType

        public com.google.protobuf.Parser<Certificate> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public Certificate getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder