Package com.google.cloud.compute.v1
Class SslCertificate.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<SslCertificate.Builder>
-
- com.google.cloud.compute.v1.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 typegoogle.cloud.compute.v1.SslCertificate
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SslCertificate.Builder
addAllSubjectAlternativeNames(Iterable<String> values)
[Output Only] Domains associated with the certificate via Subject Alternative Name.SslCertificate.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SslCertificate.Builder
addSubjectAlternativeNames(String value)
[Output Only] Domains associated with the certificate via Subject Alternative Name.SslCertificate.Builder
addSubjectAlternativeNamesBytes(com.google.protobuf.ByteString value)
[Output Only] Domains associated with the certificate via Subject Alternative Name.SslCertificate
build()
SslCertificate
buildPartial()
SslCertificate.Builder
clear()
SslCertificate.Builder
clearCertificate()
A value read into memory from a certificate file.SslCertificate.Builder
clearCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.SslCertificate.Builder
clearDescription()
An optional description of this resource.SslCertificate.Builder
clearExpireTime()
[Output Only] Expire time of the certificate.SslCertificate.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
SslCertificate.Builder
clearId()
[Output Only] The unique identifier for the resource.SslCertificate.Builder
clearKind()
[Output Only] Type of the resource.SslCertificate.Builder
clearManaged()
Configuration and status of a managed SSL certificate.SslCertificate.Builder
clearName()
Name of the resource.SslCertificate.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
SslCertificate.Builder
clearPrivateKey()
A value read into memory from a write-only private key file.SslCertificate.Builder
clearRegion()
[Output Only] URL of the region where the regional SSL Certificate resides.SslCertificate.Builder
clearSelfLink()
[Output only] Server-defined URL for the resource.SslCertificate.Builder
clearSelfManaged()
Configuration and status of a self-managed SSL certificate.SslCertificate.Builder
clearSubjectAlternativeNames()
[Output Only] Domains associated with the certificate via Subject Alternative Name.SslCertificate.Builder
clearType()
(Optional) Specifies the type of SSL certificate, either "SELF_MANAGED" or "MANAGED".SslCertificate.Builder
clone()
String
getCertificate()
A value read into memory from a certificate file.com.google.protobuf.ByteString
getCertificateBytes()
A value read into memory from a certificate file.String
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.com.google.protobuf.ByteString
getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.SslCertificate
getDefaultInstanceForType()
String
getDescription()
An optional description of this resource.com.google.protobuf.ByteString
getDescriptionBytes()
An optional description of this resource.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getExpireTime()
[Output Only] Expire time of the certificate.com.google.protobuf.ByteString
getExpireTimeBytes()
[Output Only] Expire time of the certificate.long
getId()
[Output Only] The unique identifier for the resource.String
getKind()
[Output Only] Type of the resource.com.google.protobuf.ByteString
getKindBytes()
[Output Only] Type of the resource.SslCertificateManagedSslCertificate
getManaged()
Configuration and status of a managed SSL certificate.SslCertificateManagedSslCertificate.Builder
getManagedBuilder()
Configuration and status of a managed SSL certificate.SslCertificateManagedSslCertificateOrBuilder
getManagedOrBuilder()
Configuration and status of a managed SSL certificate.String
getName()
Name of the resource.com.google.protobuf.ByteString
getNameBytes()
Name of the resource.String
getPrivateKey()
A value read into memory from a write-only private key file.com.google.protobuf.ByteString
getPrivateKeyBytes()
A value read into memory from a write-only private key file.String
getRegion()
[Output Only] URL of the region where the regional SSL Certificate resides.com.google.protobuf.ByteString
getRegionBytes()
[Output Only] URL of the region where the regional SSL Certificate resides.String
getSelfLink()
[Output only] Server-defined URL for the resource.com.google.protobuf.ByteString
getSelfLinkBytes()
[Output only] Server-defined URL for the resource.SslCertificateSelfManagedSslCertificate
getSelfManaged()
Configuration and status of a self-managed SSL certificate.SslCertificateSelfManagedSslCertificate.Builder
getSelfManagedBuilder()
Configuration and status of a self-managed SSL certificate.SslCertificateSelfManagedSslCertificateOrBuilder
getSelfManagedOrBuilder()
Configuration and status of a self-managed SSL certificate.String
getSubjectAlternativeNames(int index)
[Output Only] Domains associated with the certificate via Subject Alternative Name.com.google.protobuf.ByteString
getSubjectAlternativeNamesBytes(int index)
[Output Only] Domains associated with the certificate via Subject Alternative Name.int
getSubjectAlternativeNamesCount()
[Output Only] Domains associated with the certificate via Subject Alternative Name.com.google.protobuf.ProtocolStringList
getSubjectAlternativeNamesList()
[Output Only] Domains associated with the certificate via Subject Alternative Name.String
getType()
(Optional) Specifies the type of SSL certificate, either "SELF_MANAGED" or "MANAGED".com.google.protobuf.ByteString
getTypeBytes()
(Optional) Specifies the type of SSL certificate, either "SELF_MANAGED" or "MANAGED".boolean
hasCertificate()
A value read into memory from a certificate file.boolean
hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.boolean
hasDescription()
An optional description of this resource.boolean
hasExpireTime()
[Output Only] Expire time of the certificate.boolean
hasId()
[Output Only] The unique identifier for the resource.boolean
hasKind()
[Output Only] Type of the resource.boolean
hasManaged()
Configuration and status of a managed SSL certificate.boolean
hasName()
Name of the resource.boolean
hasPrivateKey()
A value read into memory from a write-only private key file.boolean
hasRegion()
[Output Only] URL of the region where the regional SSL Certificate resides.boolean
hasSelfLink()
[Output only] Server-defined URL for the resource.boolean
hasSelfManaged()
Configuration and status of a self-managed SSL certificate.boolean
hasType()
(Optional) Specifies the type of SSL certificate, either "SELF_MANAGED" or "MANAGED".protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
SslCertificate.Builder
mergeFrom(SslCertificate other)
SslCertificate.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
SslCertificate.Builder
mergeFrom(com.google.protobuf.Message other)
SslCertificate.Builder
mergeManaged(SslCertificateManagedSslCertificate value)
Configuration and status of a managed SSL certificate.SslCertificate.Builder
mergeSelfManaged(SslCertificateSelfManagedSslCertificate value)
Configuration and status of a self-managed SSL certificate.SslCertificate.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
SslCertificate.Builder
setCertificate(String value)
A value read into memory from a certificate file.SslCertificate.Builder
setCertificateBytes(com.google.protobuf.ByteString value)
A value read into memory from a certificate file.SslCertificate.Builder
setCreationTimestamp(String value)
[Output Only] Creation timestamp in RFC3339 text format.SslCertificate.Builder
setCreationTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] Creation timestamp in RFC3339 text format.SslCertificate.Builder
setDescription(String value)
An optional description of this resource.SslCertificate.Builder
setDescriptionBytes(com.google.protobuf.ByteString value)
An optional description of this resource.SslCertificate.Builder
setExpireTime(String value)
[Output Only] Expire time of the certificate.SslCertificate.Builder
setExpireTimeBytes(com.google.protobuf.ByteString value)
[Output Only] Expire time of the certificate.SslCertificate.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SslCertificate.Builder
setId(long value)
[Output Only] The unique identifier for the resource.SslCertificate.Builder
setKind(String value)
[Output Only] Type of the resource.SslCertificate.Builder
setKindBytes(com.google.protobuf.ByteString value)
[Output Only] Type of the resource.SslCertificate.Builder
setManaged(SslCertificateManagedSslCertificate value)
Configuration and status of a managed SSL certificate.SslCertificate.Builder
setManaged(SslCertificateManagedSslCertificate.Builder builderForValue)
Configuration and status of a managed SSL certificate.SslCertificate.Builder
setName(String value)
Name of the resource.SslCertificate.Builder
setNameBytes(com.google.protobuf.ByteString value)
Name of the resource.SslCertificate.Builder
setPrivateKey(String value)
A value read into memory from a write-only private key file.SslCertificate.Builder
setPrivateKeyBytes(com.google.protobuf.ByteString value)
A value read into memory from a write-only private key file.SslCertificate.Builder
setRegion(String value)
[Output Only] URL of the region where the regional SSL Certificate resides.SslCertificate.Builder
setRegionBytes(com.google.protobuf.ByteString value)
[Output Only] URL of the region where the regional SSL Certificate resides.SslCertificate.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
SslCertificate.Builder
setSelfLink(String value)
[Output only] Server-defined URL for the resource.SslCertificate.Builder
setSelfLinkBytes(com.google.protobuf.ByteString value)
[Output only] Server-defined URL for the resource.SslCertificate.Builder
setSelfManaged(SslCertificateSelfManagedSslCertificate value)
Configuration and status of a self-managed SSL certificate.SslCertificate.Builder
setSelfManaged(SslCertificateSelfManagedSslCertificate.Builder builderForValue)
Configuration and status of a self-managed SSL certificate.SslCertificate.Builder
setSubjectAlternativeNames(int index, String value)
[Output Only] Domains associated with the certificate via Subject Alternative Name.SslCertificate.Builder
setType(String value)
(Optional) Specifies the type of SSL certificate, either "SELF_MANAGED" or "MANAGED".SslCertificate.Builder
setTypeBytes(com.google.protobuf.ByteString value)
(Optional) Specifies the type of SSL certificate, either "SELF_MANAGED" or "MANAGED".SslCertificate.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<SslCertificate.Builder>
-
clear
public SslCertificate.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<SslCertificate.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<SslCertificate.Builder>
-
getDefaultInstanceForType
public SslCertificate getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public SslCertificate build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SslCertificate buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SslCertificate.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<SslCertificate.Builder>
-
setField
public SslCertificate.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SslCertificate.Builder>
-
clearField
public SslCertificate.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SslCertificate.Builder>
-
clearOneof
public SslCertificate.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SslCertificate.Builder>
-
addRepeatedField
public SslCertificate.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SslCertificate.Builder>
-
mergeFrom
public SslCertificate.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SslCertificate.Builder>
-
mergeFrom
public SslCertificate.Builder mergeFrom(SslCertificate other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.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 interfaceSslCertificateOrBuilder
- 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 interfaceSslCertificateOrBuilder
- 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 interfaceSslCertificateOrBuilder
- 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 interfaceSslCertificateOrBuilder
- 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 interfaceSslCertificateOrBuilder
- 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 interfaceSslCertificateOrBuilder
- 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 interfaceSslCertificateOrBuilder
- 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 interfaceSslCertificateOrBuilder
- 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 interfaceSslCertificateOrBuilder
- 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 interfaceSslCertificateOrBuilder
- 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 interfaceSslCertificateOrBuilder
- 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 interfaceSslCertificateOrBuilder
- 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 interfaceSslCertificateOrBuilder
- 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 interfaceSslCertificateOrBuilder
- 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 interfaceSslCertificateOrBuilder
- 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 interfaceSslCertificateOrBuilder
- 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 interfaceSslCertificateOrBuilder
- 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 interfaceSslCertificateOrBuilder
- Returns:
- Whether the managed field is set.
-
getManaged
public SslCertificateManagedSslCertificate getManaged()
Configuration and status of a managed SSL certificate.
optional .google.cloud.compute.v1.SslCertificateManagedSslCertificate managed = 298389407;
- Specified by:
getManaged
in interfaceSslCertificateOrBuilder
- Returns:
- The managed.
-
setManaged
public SslCertificate.Builder setManaged(SslCertificateManagedSslCertificate value)
Configuration and status of a managed SSL certificate.
optional .google.cloud.compute.v1.SslCertificateManagedSslCertificate managed = 298389407;
-
setManaged
public SslCertificate.Builder setManaged(SslCertificateManagedSslCertificate.Builder builderForValue)
Configuration and status of a managed SSL certificate.
optional .google.cloud.compute.v1.SslCertificateManagedSslCertificate managed = 298389407;
-
mergeManaged
public SslCertificate.Builder mergeManaged(SslCertificateManagedSslCertificate value)
Configuration and status of a managed SSL certificate.
optional .google.cloud.compute.v1.SslCertificateManagedSslCertificate managed = 298389407;
-
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;
-
getManagedOrBuilder
public SslCertificateManagedSslCertificateOrBuilder getManagedOrBuilder()
Configuration and status of a managed SSL certificate.
optional .google.cloud.compute.v1.SslCertificateManagedSslCertificate managed = 298389407;
- Specified by:
getManagedOrBuilder
in interfaceSslCertificateOrBuilder
-
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 interfaceSslCertificateOrBuilder
- 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 interfaceSslCertificateOrBuilder
- 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 interfaceSslCertificateOrBuilder
- 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 interfaceSslCertificateOrBuilder
- 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 interfaceSslCertificateOrBuilder
- 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 interfaceSslCertificateOrBuilder
- 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 interfaceSslCertificateOrBuilder
- 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 interfaceSslCertificateOrBuilder
- 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 interfaceSslCertificateOrBuilder
- 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 interfaceSslCertificateOrBuilder
- 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 interfaceSslCertificateOrBuilder
- 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 interfaceSslCertificateOrBuilder
- 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 interfaceSslCertificateOrBuilder
- 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 interfaceSslCertificateOrBuilder
- Returns:
- The selfManaged.
-
setSelfManaged
public SslCertificate.Builder setSelfManaged(SslCertificateSelfManagedSslCertificate value)
Configuration and status of a self-managed SSL certificate.
optional .google.cloud.compute.v1.SslCertificateSelfManagedSslCertificate self_managed = 329284012;
-
setSelfManaged
public SslCertificate.Builder setSelfManaged(SslCertificateSelfManagedSslCertificate.Builder builderForValue)
Configuration and status of a self-managed SSL certificate.
optional .google.cloud.compute.v1.SslCertificateSelfManagedSslCertificate self_managed = 329284012;
-
mergeSelfManaged
public SslCertificate.Builder mergeSelfManaged(SslCertificateSelfManagedSslCertificate value)
Configuration and status of a self-managed SSL certificate.
optional .google.cloud.compute.v1.SslCertificateSelfManagedSslCertificate self_managed = 329284012;
-
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;
-
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 interfaceSslCertificateOrBuilder
-
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 interfaceSslCertificateOrBuilder
- 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 interfaceSslCertificateOrBuilder
- 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 interfaceSslCertificateOrBuilder
- 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 interfaceSslCertificateOrBuilder
- 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 interfaceSslCertificateOrBuilder
- 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 interfaceSslCertificateOrBuilder
- 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 interfaceSslCertificateOrBuilder
- 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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SslCertificate.Builder>
-
mergeUnknownFields
public final SslCertificate.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SslCertificate.Builder>
-
-