Class SslCertificate.Builder

  • All Implemented Interfaces:
    SslCertificateOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    SslCertificate

    public static final class SslCertificate.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<SslCertificate.Builder>
    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
    • Method Detail

      • 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.Builder<SslCertificate.Builder>
      • clear

        public SslCertificate.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<SslCertificate.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<SslCertificate.Builder>
      • getDefaultInstanceForType

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

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

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

        public SslCertificate.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<SslCertificate.Builder>
      • setField

        public SslCertificate.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<SslCertificate.Builder>
      • clearField

        public SslCertificate.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<SslCertificate.Builder>
      • clearOneof

        public SslCertificate.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SslCertificate.Builder>
      • setRepeatedField

        public SslCertificate.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                       int index,
                                                       Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SslCertificate.Builder>
      • addRepeatedField

        public SslCertificate.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                       Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SslCertificate.Builder>
      • mergeFrom

        public SslCertificate.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SslCertificate.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SslCertificate.Builder>
      • mergeFrom

        public SslCertificate.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SslCertificate.Builder>
        Throws:
        IOException
      • 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.
      • setCertificate

        public SslCertificate.Builder setCertificate​(String value)
         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;
        Parameters:
        value - The certificate to set.
        Returns:
        This builder for chaining.
      • clearCertificate

        public SslCertificate.Builder clearCertificate()
         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;
        Returns:
        This builder for chaining.
      • setCertificateBytes

        public SslCertificate.Builder setCertificateBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes for certificate to set.
        Returns:
        This builder for chaining.
      • 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.
      • setCreationTimestamp

        public SslCertificate.Builder setCreationTimestamp​(String value)
         [Output Only] Creation timestamp in RFC3339 text format.
         
        optional string creation_timestamp = 30525366;
        Parameters:
        value - The creationTimestamp to set.
        Returns:
        This builder for chaining.
      • clearCreationTimestamp

        public SslCertificate.Builder clearCreationTimestamp()
         [Output Only] Creation timestamp in RFC3339 text format.
         
        optional string creation_timestamp = 30525366;
        Returns:
        This builder for chaining.
      • setCreationTimestampBytes

        public SslCertificate.Builder setCreationTimestampBytes​(com.google.protobuf.ByteString value)
         [Output Only] Creation timestamp in RFC3339 text format.
         
        optional string creation_timestamp = 30525366;
        Parameters:
        value - The bytes for creationTimestamp to set.
        Returns:
        This builder for chaining.
      • 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.
      • setDescription

        public SslCertificate.Builder setDescription​(String value)
         An optional description of this resource. Provide this property when you create the resource.
         
        optional string description = 422937596;
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public SslCertificate.Builder clearDescription()
         An optional description of this resource. Provide this property when you create the resource.
         
        optional string description = 422937596;
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public SslCertificate.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         An optional description of this resource. Provide this property when you create the resource.
         
        optional string description = 422937596;
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • 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.
      • setExpireTime

        public SslCertificate.Builder setExpireTime​(String value)
         [Output Only] Expire time of the certificate. RFC3339
         
        optional string expire_time = 440691181;
        Parameters:
        value - The expireTime to set.
        Returns:
        This builder for chaining.
      • clearExpireTime

        public SslCertificate.Builder clearExpireTime()
         [Output Only] Expire time of the certificate. RFC3339
         
        optional string expire_time = 440691181;
        Returns:
        This builder for chaining.
      • setExpireTimeBytes

        public SslCertificate.Builder setExpireTimeBytes​(com.google.protobuf.ByteString value)
         [Output Only] Expire time of the certificate. RFC3339
         
        optional string expire_time = 440691181;
        Parameters:
        value - The bytes for expireTime to set.
        Returns:
        This builder for chaining.
      • 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.
      • setId

        public SslCertificate.Builder setId​(long value)
         [Output Only] The unique identifier for the resource. This identifier is defined by the server.
         
        optional uint64 id = 3355;
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • clearId

        public SslCertificate.Builder clearId()
         [Output Only] The unique identifier for the resource. This identifier is defined by the server.
         
        optional uint64 id = 3355;
        Returns:
        This builder for chaining.
      • 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.
      • setKind

        public SslCertificate.Builder setKind​(String value)
         [Output Only] Type of the resource. Always compute#sslCertificate for SSL certificates.
         
        optional string kind = 3292052;
        Parameters:
        value - The kind to set.
        Returns:
        This builder for chaining.
      • clearKind

        public SslCertificate.Builder clearKind()
         [Output Only] Type of the resource. Always compute#sslCertificate for SSL certificates.
         
        optional string kind = 3292052;
        Returns:
        This builder for chaining.
      • setKindBytes

        public SslCertificate.Builder setKindBytes​(com.google.protobuf.ByteString value)
         [Output Only] Type of the resource. Always compute#sslCertificate for SSL certificates.
         
        optional string kind = 3292052;
        Parameters:
        value - The bytes for kind to set.
        Returns:
        This builder for chaining.
      • 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.
      • clearManaged

        public SslCertificate.Builder clearManaged()
         Configuration and status of a managed SSL certificate.
         
        optional .google.cloud.compute.v1.SslCertificateManagedSslCertificate managed = 298389407;
      • getManagedBuilder

        public SslCertificateManagedSslCertificate.Builder getManagedBuilder()
         Configuration and status of a managed SSL certificate.
         
        optional .google.cloud.compute.v1.SslCertificateManagedSslCertificate managed = 298389407;
      • 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.
      • setName

        public SslCertificate.Builder setName​(String value)
         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;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public SslCertificate.Builder clearName()
         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;
        Returns:
        This builder for chaining.
      • setNameBytes

        public SslCertificate.Builder setNameBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • 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.
      • setPrivateKey

        public SslCertificate.Builder setPrivateKey​(String value)
         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;
        Parameters:
        value - The privateKey to set.
        Returns:
        This builder for chaining.
      • clearPrivateKey

        public SslCertificate.Builder clearPrivateKey()
         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;
        Returns:
        This builder for chaining.
      • setPrivateKeyBytes

        public SslCertificate.Builder setPrivateKeyBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes for privateKey to set.
        Returns:
        This builder for chaining.
      • 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.
      • setRegion

        public SslCertificate.Builder setRegion​(String value)
         [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;
        Parameters:
        value - The region to set.
        Returns:
        This builder for chaining.
      • clearRegion

        public SslCertificate.Builder clearRegion()
         [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;
        Returns:
        This builder for chaining.
      • setRegionBytes

        public SslCertificate.Builder setRegionBytes​(com.google.protobuf.ByteString value)
         [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;
        Parameters:
        value - The bytes for region to set.
        Returns:
        This builder for chaining.
      • 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.
      • setSelfLink

        public SslCertificate.Builder setSelfLink​(String value)
         [Output only] Server-defined URL for the resource.
         
        optional string self_link = 456214797;
        Parameters:
        value - The selfLink to set.
        Returns:
        This builder for chaining.
      • clearSelfLink

        public SslCertificate.Builder clearSelfLink()
         [Output only] Server-defined URL for the resource.
         
        optional string self_link = 456214797;
        Returns:
        This builder for chaining.
      • setSelfLinkBytes

        public SslCertificate.Builder setSelfLinkBytes​(com.google.protobuf.ByteString value)
         [Output only] Server-defined URL for the resource.
         
        optional string self_link = 456214797;
        Parameters:
        value - The bytes for selfLink to set.
        Returns:
        This builder for chaining.
      • 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.
      • clearSelfManaged

        public SslCertificate.Builder clearSelfManaged()
         Configuration and status of a self-managed SSL certificate.
         
        optional .google.cloud.compute.v1.SslCertificateSelfManagedSslCertificate self_managed = 329284012;
      • getSelfManagedBuilder

        public SslCertificateSelfManagedSslCertificate.Builder getSelfManagedBuilder()
         Configuration and status of a self-managed SSL certificate.
         
        optional .google.cloud.compute.v1.SslCertificateSelfManagedSslCertificate self_managed = 329284012;
      • 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.
      • setSubjectAlternativeNames

        public SslCertificate.Builder setSubjectAlternativeNames​(int index,
                                                                 String value)
         [Output Only] Domains associated with the certificate via Subject Alternative Name.
         
        repeated string subject_alternative_names = 528807907;
        Parameters:
        index - The index to set the value at.
        value - The subjectAlternativeNames to set.
        Returns:
        This builder for chaining.
      • addSubjectAlternativeNames

        public SslCertificate.Builder addSubjectAlternativeNames​(String value)
         [Output Only] Domains associated with the certificate via Subject Alternative Name.
         
        repeated string subject_alternative_names = 528807907;
        Parameters:
        value - The subjectAlternativeNames to add.
        Returns:
        This builder for chaining.
      • addAllSubjectAlternativeNames

        public SslCertificate.Builder addAllSubjectAlternativeNames​(Iterable<String> values)
         [Output Only] Domains associated with the certificate via Subject Alternative Name.
         
        repeated string subject_alternative_names = 528807907;
        Parameters:
        values - The subjectAlternativeNames to add.
        Returns:
        This builder for chaining.
      • clearSubjectAlternativeNames

        public SslCertificate.Builder clearSubjectAlternativeNames()
         [Output Only] Domains associated with the certificate via Subject Alternative Name.
         
        repeated string subject_alternative_names = 528807907;
        Returns:
        This builder for chaining.
      • addSubjectAlternativeNamesBytes

        public SslCertificate.Builder addSubjectAlternativeNamesBytes​(com.google.protobuf.ByteString value)
         [Output Only] Domains associated with the certificate via Subject Alternative Name.
         
        repeated string subject_alternative_names = 528807907;
        Parameters:
        value - The bytes of the subjectAlternativeNames to add.
        Returns:
        This builder for chaining.
      • 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.
      • setType

        public SslCertificate.Builder setType​(String value)
         (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;
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public SslCertificate.Builder clearType()
         (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;
        Returns:
        This builder for chaining.
      • setTypeBytes

        public SslCertificate.Builder setTypeBytes​(com.google.protobuf.ByteString value)
         (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;
        Parameters:
        value - The bytes for type to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final SslCertificate.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SslCertificate.Builder>
      • mergeUnknownFields

        public final SslCertificate.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SslCertificate.Builder>