Class SslCertificate

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.compute.v1.SslCertificate
All Implemented Interfaces:
SslCertificateOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class SslCertificate extends com.google.protobuf.GeneratedMessage implements SslCertificateOrBuilder
 Represents an SSL certificate resource.

 Google Compute Engine has two SSL certificate resources:

 * [Global](/compute/docs/reference/rest/v1/sslCertificates)
 * [Regional](/compute/docs/reference/rest/v1/regionSslCertificates)


 The global SSL certificates (sslCertificates) are used by:

 - Global external Application Load Balancers
 - Classic Application Load Balancers
 - Proxy Network Load Balancers (with target SSL proxies)



 The regional SSL certificates (regionSslCertificates) are used
 by:

 - Regional external Application Load Balancers
 - Regional internal Application Load Balancers



 Optionally, certificate file contents that you upload can contain a set of up
 to five PEM-encoded certificates.
 The API call creates an object (sslCertificate) that holds this data.
 You can use SSL keys and certificates to secure connections to a load
 balancer.
 For more information, read
 Creating and using SSL certificates,SSL certificates
 quotas and limits, and
 Troubleshooting SSL certificates.
 
Protobuf type google.cloud.compute.v1.SslCertificate
See Also:
  • Field Details

    • CERTIFICATE_FIELD_NUMBER

      public static final int CERTIFICATE_FIELD_NUMBER
      See Also:
    • CREATION_TIMESTAMP_FIELD_NUMBER

      public static final int CREATION_TIMESTAMP_FIELD_NUMBER
      See Also:
    • DESCRIPTION_FIELD_NUMBER

      public static final int DESCRIPTION_FIELD_NUMBER
      See Also:
    • EXPIRE_TIME_FIELD_NUMBER

      public static final int EXPIRE_TIME_FIELD_NUMBER
      See Also:
    • ID_FIELD_NUMBER

      public static final int ID_FIELD_NUMBER
      See Also:
    • KIND_FIELD_NUMBER

      public static final int KIND_FIELD_NUMBER
      See Also:
    • MANAGED_FIELD_NUMBER

      public static final int MANAGED_FIELD_NUMBER
      See Also:
    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • PRIVATE_KEY_FIELD_NUMBER

      public static final int PRIVATE_KEY_FIELD_NUMBER
      See Also:
    • REGION_FIELD_NUMBER

      public static final int REGION_FIELD_NUMBER
      See Also:
    • SELF_MANAGED_FIELD_NUMBER

      public static final int SELF_MANAGED_FIELD_NUMBER
      See Also:
    • SUBJECT_ALTERNATIVE_NAMES_FIELD_NUMBER

      public static final int SUBJECT_ALTERNATIVE_NAMES_FIELD_NUMBER
      See Also:
    • TYPE_FIELD_NUMBER

      public static final int TYPE_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

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

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

      public boolean hasCertificate()
       A value read into memory from a certificate file. The certificate file must
       be in PEM format. The certificate chain must be no greater than 5 certs
       long. The chain must include at least one intermediate cert.
       
      optional string certificate = 341787031;
      Specified by:
      hasCertificate in interface SslCertificateOrBuilder
      Returns:
      Whether the certificate field is set.
    • getCertificate

      public String getCertificate()
       A value read into memory from a certificate file. The certificate file must
       be in PEM format. The certificate chain must be no greater than 5 certs
       long. The chain must include at least one intermediate cert.
       
      optional string certificate = 341787031;
      Specified by:
      getCertificate in interface SslCertificateOrBuilder
      Returns:
      The certificate.
    • getCertificateBytes

      public com.google.protobuf.ByteString getCertificateBytes()
       A value read into memory from a certificate file. The certificate file must
       be in PEM format. The certificate chain must be no greater than 5 certs
       long. The chain must include at least one intermediate cert.
       
      optional string certificate = 341787031;
      Specified by:
      getCertificateBytes in interface SslCertificateOrBuilder
      Returns:
      The bytes for certificate.
    • hasCreationTimestamp

      public boolean hasCreationTimestamp()
       [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Specified by:
      hasCreationTimestamp in interface SslCertificateOrBuilder
      Returns:
      Whether the creationTimestamp field is set.
    • getCreationTimestamp

      public String getCreationTimestamp()
       [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Specified by:
      getCreationTimestamp in interface SslCertificateOrBuilder
      Returns:
      The creationTimestamp.
    • getCreationTimestampBytes

      public com.google.protobuf.ByteString getCreationTimestampBytes()
       [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Specified by:
      getCreationTimestampBytes in interface SslCertificateOrBuilder
      Returns:
      The bytes for creationTimestamp.
    • hasDescription

      public boolean hasDescription()
       An optional description of this resource. Provide this property when you
       create the resource.
       
      optional string description = 422937596;
      Specified by:
      hasDescription in interface SslCertificateOrBuilder
      Returns:
      Whether the description field is set.
    • getDescription

      public String getDescription()
       An optional description of this resource. Provide this property when you
       create the resource.
       
      optional string description = 422937596;
      Specified by:
      getDescription in interface SslCertificateOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       An optional description of this resource. Provide this property when you
       create the resource.
       
      optional string description = 422937596;
      Specified by:
      getDescriptionBytes in interface SslCertificateOrBuilder
      Returns:
      The bytes for description.
    • hasExpireTime

      public boolean hasExpireTime()
       Output only. [Output Only] Expire time of the certificate. RFC3339
       
      optional string expire_time = 440691181;
      Specified by:
      hasExpireTime in interface SslCertificateOrBuilder
      Returns:
      Whether the expireTime field is set.
    • getExpireTime

      public String getExpireTime()
       Output only. [Output Only] Expire time of the certificate. RFC3339
       
      optional string expire_time = 440691181;
      Specified by:
      getExpireTime in interface SslCertificateOrBuilder
      Returns:
      The expireTime.
    • getExpireTimeBytes

      public com.google.protobuf.ByteString getExpireTimeBytes()
       Output only. [Output Only] Expire time of the certificate. RFC3339
       
      optional string expire_time = 440691181;
      Specified by:
      getExpireTimeBytes in interface SslCertificateOrBuilder
      Returns:
      The bytes for expireTime.
    • hasId

      public boolean hasId()
       [Output Only] The unique identifier for the resource. This identifier is
       defined by the server.
       
      optional uint64 id = 3355;
      Specified by:
      hasId in interface SslCertificateOrBuilder
      Returns:
      Whether the id field is set.
    • getId

      public long getId()
       [Output Only] The unique identifier for the resource. This identifier is
       defined by the server.
       
      optional uint64 id = 3355;
      Specified by:
      getId in interface SslCertificateOrBuilder
      Returns:
      The id.
    • hasKind

      public boolean hasKind()
       Output only. [Output Only] Type of the resource. Alwayscompute#sslCertificate for SSL certificates.
       
      optional string kind = 3292052;
      Specified by:
      hasKind in interface SslCertificateOrBuilder
      Returns:
      Whether the kind field is set.
    • getKind

      public String getKind()
       Output only. [Output Only] Type of the resource. Alwayscompute#sslCertificate for SSL certificates.
       
      optional string kind = 3292052;
      Specified by:
      getKind in interface SslCertificateOrBuilder
      Returns:
      The kind.
    • getKindBytes

      public com.google.protobuf.ByteString getKindBytes()
       Output only. [Output Only] Type of the resource. Alwayscompute#sslCertificate for SSL certificates.
       
      optional string kind = 3292052;
      Specified by:
      getKindBytes in interface SslCertificateOrBuilder
      Returns:
      The bytes for kind.
    • hasManaged

      public boolean hasManaged()
       Configuration and status of a managed SSL certificate.
       
      optional .google.cloud.compute.v1.SslCertificateManagedSslCertificate managed = 298389407;
      Specified by:
      hasManaged in interface SslCertificateOrBuilder
      Returns:
      Whether the managed field is set.
    • getManaged

       Configuration and status of a managed SSL certificate.
       
      optional .google.cloud.compute.v1.SslCertificateManagedSslCertificate managed = 298389407;
      Specified by:
      getManaged in interface SslCertificateOrBuilder
      Returns:
      The managed.
    • getManagedOrBuilder

      public SslCertificateManagedSslCertificateOrBuilder getManagedOrBuilder()
       Configuration and status of a managed SSL certificate.
       
      optional .google.cloud.compute.v1.SslCertificateManagedSslCertificate managed = 298389407;
      Specified by:
      getManagedOrBuilder in interface SslCertificateOrBuilder
    • hasName

      public boolean hasName()
       Name of the resource. Provided by the client when the resource is created.
       The name must be 1-63 characters long, and comply withRFC1035.
       Specifically, the name must be 1-63 characters long and match the regular
       expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
       character must be a lowercase letter, and all following characters must
       be a dash, lowercase letter, or digit, except the last character, which
       cannot be a dash.
       
      optional string name = 3373707;
      Specified by:
      hasName in interface SslCertificateOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       Name of the resource. Provided by the client when the resource is created.
       The name must be 1-63 characters long, and comply withRFC1035.
       Specifically, the name must be 1-63 characters long and match the regular
       expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
       character must be a lowercase letter, and all following characters must
       be a dash, lowercase letter, or digit, except the last character, which
       cannot be a dash.
       
      optional string name = 3373707;
      Specified by:
      getName in interface SslCertificateOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Name of the resource. Provided by the client when the resource is created.
       The name must be 1-63 characters long, and comply withRFC1035.
       Specifically, the name must be 1-63 characters long and match the regular
       expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
       character must be a lowercase letter, and all following characters must
       be a dash, lowercase letter, or digit, except the last character, which
       cannot be a dash.
       
      optional string name = 3373707;
      Specified by:
      getNameBytes in interface SslCertificateOrBuilder
      Returns:
      The bytes for name.
    • hasPrivateKey

      public boolean hasPrivateKey()
       A value read into memory from a write-only private key file. The private
       key file must be in PEM format. For security, only insert
       requests include this field.
       
      optional string private_key = 361331107;
      Specified by:
      hasPrivateKey in interface SslCertificateOrBuilder
      Returns:
      Whether the privateKey field is set.
    • getPrivateKey

      public String getPrivateKey()
       A value read into memory from a write-only private key file. The private
       key file must be in PEM format. For security, only insert
       requests include this field.
       
      optional string private_key = 361331107;
      Specified by:
      getPrivateKey in interface SslCertificateOrBuilder
      Returns:
      The privateKey.
    • getPrivateKeyBytes

      public com.google.protobuf.ByteString getPrivateKeyBytes()
       A value read into memory from a write-only private key file. The private
       key file must be in PEM format. For security, only insert
       requests include this field.
       
      optional string private_key = 361331107;
      Specified by:
      getPrivateKeyBytes in interface SslCertificateOrBuilder
      Returns:
      The bytes for privateKey.
    • hasRegion

      public boolean hasRegion()
       Output only. [Output Only] URL of the region where the regional SSL Certificate
       resides. This field is not applicable to global SSL Certificate.
       
      optional string region = 138946292;
      Specified by:
      hasRegion in interface SslCertificateOrBuilder
      Returns:
      Whether the region field is set.
    • getRegion

      public String getRegion()
       Output only. [Output Only] URL of the region where the regional SSL Certificate
       resides. This field is not applicable to global SSL Certificate.
       
      optional string region = 138946292;
      Specified by:
      getRegion in interface SslCertificateOrBuilder
      Returns:
      The region.
    • getRegionBytes

      public com.google.protobuf.ByteString getRegionBytes()
       Output only. [Output Only] URL of the region where the regional SSL Certificate
       resides. This field is not applicable to global SSL Certificate.
       
      optional string region = 138946292;
      Specified by:
      getRegionBytes in interface SslCertificateOrBuilder
      Returns:
      The bytes for region.
    • hasSelfLink

      public boolean hasSelfLink()
       [Output only] Server-defined URL for the resource.
       
      optional string self_link = 456214797;
      Specified by:
      hasSelfLink in interface SslCertificateOrBuilder
      Returns:
      Whether the selfLink field is set.
    • getSelfLink

      public String getSelfLink()
       [Output only] Server-defined URL for the resource.
       
      optional string self_link = 456214797;
      Specified by:
      getSelfLink in interface SslCertificateOrBuilder
      Returns:
      The selfLink.
    • getSelfLinkBytes

      public com.google.protobuf.ByteString getSelfLinkBytes()
       [Output only] Server-defined URL for the resource.
       
      optional string self_link = 456214797;
      Specified by:
      getSelfLinkBytes in interface SslCertificateOrBuilder
      Returns:
      The bytes for selfLink.
    • hasSelfManaged

      public boolean hasSelfManaged()
       Configuration and status of a self-managed SSL certificate.
       
      optional .google.cloud.compute.v1.SslCertificateSelfManagedSslCertificate self_managed = 329284012;
      Specified by:
      hasSelfManaged in interface SslCertificateOrBuilder
      Returns:
      Whether the selfManaged field is set.
    • getSelfManaged

      public SslCertificateSelfManagedSslCertificate getSelfManaged()
       Configuration and status of a self-managed SSL certificate.
       
      optional .google.cloud.compute.v1.SslCertificateSelfManagedSslCertificate self_managed = 329284012;
      Specified by:
      getSelfManaged in interface SslCertificateOrBuilder
      Returns:
      The selfManaged.
    • getSelfManagedOrBuilder

      public SslCertificateSelfManagedSslCertificateOrBuilder getSelfManagedOrBuilder()
       Configuration and status of a self-managed SSL certificate.
       
      optional .google.cloud.compute.v1.SslCertificateSelfManagedSslCertificate self_managed = 329284012;
      Specified by:
      getSelfManagedOrBuilder in interface SslCertificateOrBuilder
    • getSubjectAlternativeNamesList

      public com.google.protobuf.ProtocolStringList getSubjectAlternativeNamesList()
       Output only. [Output Only] Domains associated with the certificate via Subject
       Alternative Name.
       
      repeated string subject_alternative_names = 528807907;
      Specified by:
      getSubjectAlternativeNamesList in interface SslCertificateOrBuilder
      Returns:
      A list containing the subjectAlternativeNames.
    • getSubjectAlternativeNamesCount

      public int getSubjectAlternativeNamesCount()
       Output only. [Output Only] Domains associated with the certificate via Subject
       Alternative Name.
       
      repeated string subject_alternative_names = 528807907;
      Specified by:
      getSubjectAlternativeNamesCount in interface SslCertificateOrBuilder
      Returns:
      The count of subjectAlternativeNames.
    • getSubjectAlternativeNames

      public String getSubjectAlternativeNames(int index)
       Output only. [Output Only] Domains associated with the certificate via Subject
       Alternative Name.
       
      repeated string subject_alternative_names = 528807907;
      Specified by:
      getSubjectAlternativeNames in interface SslCertificateOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The subjectAlternativeNames at the given index.
    • getSubjectAlternativeNamesBytes

      public com.google.protobuf.ByteString getSubjectAlternativeNamesBytes(int index)
       Output only. [Output Only] Domains associated with the certificate via Subject
       Alternative Name.
       
      repeated string subject_alternative_names = 528807907;
      Specified by:
      getSubjectAlternativeNamesBytes in interface SslCertificateOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the subjectAlternativeNames at the given index.
    • hasType

      public boolean hasType()
       (Optional) Specifies the type of SSL certificate, either "SELF_MANAGED" or
       "MANAGED". If not specified, the certificate is self-managed and the fieldscertificate and private_key are used.
       Check the Type enum for the list of possible values.
       
      optional string type = 3575610;
      Specified by:
      hasType in interface SslCertificateOrBuilder
      Returns:
      Whether the type field is set.
    • getType

      public String getType()
       (Optional) Specifies the type of SSL certificate, either "SELF_MANAGED" or
       "MANAGED". If not specified, the certificate is self-managed and the fieldscertificate and private_key are used.
       Check the Type enum for the list of possible values.
       
      optional string type = 3575610;
      Specified by:
      getType in interface SslCertificateOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
       (Optional) Specifies the type of SSL certificate, either "SELF_MANAGED" or
       "MANAGED". If not specified, the certificate is self-managed and the fieldscertificate and private_key are used.
       Check the Type enum for the list of possible values.
       
      optional string type = 3575610;
      Specified by:
      getTypeBytes in interface SslCertificateOrBuilder
      Returns:
      The bytes for type.
    • 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 SslCertificate parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SslCertificate parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SslCertificate parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SslCertificate parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SslCertificate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SslCertificate parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SslCertificate parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

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

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

      public static SslCertificate parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

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

      public static SslCertificate.Builder newBuilder()
    • newBuilder

      public static SslCertificate.Builder newBuilder(SslCertificate prototype)
    • toBuilder

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

      protected SslCertificate.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static SslCertificate getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<SslCertificate> 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 SslCertificate getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder