Class SslCertificate

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

    public final class SslCertificate
    extends com.google.protobuf.GeneratedMessageV3
    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 sslCertificates are used by: - external HTTPS load balancers - SSL proxy load balancers The regionSslCertificates are used by internal HTTPS 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:
    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()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • 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 in RFC3339 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 in RFC3339 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 in RFC3339 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] 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] 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] 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] Type of the resource. Always compute#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] Type of the resource. Always compute#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] Type of the resource. Always compute#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.
      • 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 with RFC1035. 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 with RFC1035. 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 with RFC1035. 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] 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] 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] 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.
      • getSubjectAlternativeNamesList

        public com.google.protobuf.ProtocolStringList getSubjectAlternativeNamesList()
         [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] 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] 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] 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 fields certificate 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 fields certificate 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 fields certificate 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.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 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​(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
      • 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.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
      • getDefaultInstanceForType

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