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:
  • 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:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getTypeCase

      public Certificate.TypeCase getTypeCase()
      Specified by:
      getTypeCase in interface CertificateOrBuilder
    • 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
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: CertificateOrBuilder
       Set of labels associated with a Certificate.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsCount 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
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface CertificateOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Set of labels associated with a Certificate.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsMap in interface CertificateOrBuilder
    • getLabelsOrDefault

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

      public String getLabelsOrThrow(String key)
       Set of labels associated with a Certificate.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsOrThrow 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.
    • getSelfManaged

      public Certificate.SelfManagedCertificate getSelfManaged()
       If set, defines data of a self-managed certificate.
       
      .google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5;
      Specified by:
      getSelfManaged in interface CertificateOrBuilder
      Returns:
      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;
      Specified by:
      getSelfManagedOrBuilder in interface CertificateOrBuilder
    • 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.
    • getManaged

      public Certificate.ManagedCertificate getManaged()
       If set, contains configuration and state of a managed certificate.
       
      .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate managed = 11;
      Specified by:
      getManaged in interface CertificateOrBuilder
      Returns:
      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;
      Specified by:
      getManagedOrBuilder in interface CertificateOrBuilder
    • 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.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Certificate parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Certificate parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Certificate parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Certificate parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • 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
    • newBuilder

      public static Certificate.Builder newBuilder()
    • newBuilder

      public static Certificate.Builder newBuilder(Certificate prototype)
    • 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.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • 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.GeneratedMessage
    • getDefaultInstanceForType

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