Class Certificate.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Certificate.Builder>
com.google.cloud.security.privateca.v1.Certificate.Builder
- All Implemented Interfaces:
CertificateOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Certificate
public static final class Certificate.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Certificate.Builder>
implements CertificateOrBuilder
A [Certificate][google.cloud.security.privateca.v1.Certificate] corresponds to a signed X.509 certificate issued by a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].Protobuf type
google.cloud.security.privateca.v1.Certificate-
Method Summary
Modifier and TypeMethodDescriptionaddAllPemCertificateChain(Iterable<String> values) Output only.addPemCertificateChain(String value) Output only.addPemCertificateChainBytes(com.google.protobuf.ByteString value) Output only.build()clear()Output only.Immutable.Immutable.Output only.Output only.Required.Identifier.Output only.Output only.Immutable.Output only.Immutable.Output only.booleancontainsLabels(String key) Optional.Output only.Output only.Output only.Immutable.com.google.protobuf.ByteStringImmutable.Immutable.Immutable.Immutable.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.Deprecated.intOptional.Optional.getLabelsOrDefault(String key, String defaultValue) Optional.getLabelsOrThrow(String key) Optional.com.google.protobuf.DurationRequired.com.google.protobuf.Duration.BuilderRequired.com.google.protobuf.DurationOrBuilderRequired.Deprecated.getName()Identifier.com.google.protobuf.ByteStringIdentifier.Output only.com.google.protobuf.ByteStringOutput only.getPemCertificateChain(int index) Output only.com.google.protobuf.ByteStringgetPemCertificateChainBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.Immutable.com.google.protobuf.ByteStringImmutable.Output only.Output only.Output only.Immutable.intImmutable.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOutput only.booleanImmutable.booleanOutput only.booleanRequired.booleanImmutable.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanOutput only.mergeConfig(CertificateConfig value) Immutable.mergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(Certificate other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeLifetime(com.google.protobuf.Duration value) Required.Output only.mergeUpdateTime(com.google.protobuf.Timestamp value) Output only.putAllLabels(Map<String, String> values) Optional.Optional.removeLabels(String key) Optional.Output only.setCertificateDescription(CertificateDescription.Builder builderForValue) Output only.setCertificateTemplate(String value) Immutable.setCertificateTemplateBytes(com.google.protobuf.ByteString value) Immutable.setConfig(CertificateConfig value) Immutable.setConfig(CertificateConfig.Builder builderForValue) Immutable.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.Output only.setIssuerCertificateAuthorityBytes(com.google.protobuf.ByteString value) Output only.setLifetime(com.google.protobuf.Duration value) Required.setLifetime(com.google.protobuf.Duration.Builder builderForValue) Required.Identifier.setNameBytes(com.google.protobuf.ByteString value) Identifier.setPemCertificate(String value) Output only.setPemCertificateBytes(com.google.protobuf.ByteString value) Output only.setPemCertificateChain(int index, String value) Output only.Immutable.setPemCsrBytes(com.google.protobuf.ByteString value) Immutable.Output only.setRevocationDetails(Certificate.RevocationDetails.Builder builderForValue) Output only.setSubjectMode(SubjectRequestMode value) Immutable.setSubjectModeValue(int value) Immutable.setUpdateTime(com.google.protobuf.Timestamp value) Output only.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Certificate.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Certificate.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Certificate.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Certificate.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Certificate.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Certificate.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Certificate.Builder>
-
mergeFrom
public Certificate.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Certificate.Builder>- Throws:
IOException
-
getCertificateConfigCase
- Specified by:
getCertificateConfigCasein interfaceCertificateOrBuilder
-
clearCertificateConfig
-
getName
Identifier. The resource name for this [Certificate][google.cloud.security.privateca.v1.Certificate] in the format `projects/*/locations/*/caPools/*/certificates/*`.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Specified by:
getNamein interfaceCertificateOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Identifier. The resource name for this [Certificate][google.cloud.security.privateca.v1.Certificate] in the format `projects/*/locations/*/caPools/*/certificates/*`.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Specified by:
getNameBytesin interfaceCertificateOrBuilder- Returns:
- The bytes for name.
-
setName
Identifier. The resource name for this [Certificate][google.cloud.security.privateca.v1.Certificate] in the format `projects/*/locations/*/caPools/*/certificates/*`.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Identifier. The resource name for this [Certificate][google.cloud.security.privateca.v1.Certificate] in the format `projects/*/locations/*/caPools/*/certificates/*`.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Returns:
- This builder for chaining.
-
setNameBytes
Identifier. The resource name for this [Certificate][google.cloud.security.privateca.v1.Certificate] in the format `projects/*/locations/*/caPools/*/certificates/*`.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasPemCsr
public boolean hasPemCsr()Immutable. A pem-encoded X.509 certificate signing request (CSR).
string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
hasPemCsrin interfaceCertificateOrBuilder- Returns:
- Whether the pemCsr field is set.
-
getPemCsr
Immutable. A pem-encoded X.509 certificate signing request (CSR).
string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getPemCsrin interfaceCertificateOrBuilder- Returns:
- The pemCsr.
-
getPemCsrBytes
public com.google.protobuf.ByteString getPemCsrBytes()Immutable. A pem-encoded X.509 certificate signing request (CSR).
string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getPemCsrBytesin interfaceCertificateOrBuilder- Returns:
- The bytes for pemCsr.
-
setPemCsr
Immutable. A pem-encoded X.509 certificate signing request (CSR).
string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The pemCsr to set.- Returns:
- This builder for chaining.
-
clearPemCsr
Immutable. A pem-encoded X.509 certificate signing request (CSR).
string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- This builder for chaining.
-
setPemCsrBytes
Immutable. A pem-encoded X.509 certificate signing request (CSR).
string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The bytes for pemCsr to set.- Returns:
- This builder for chaining.
-
hasConfig
public boolean hasConfig()Immutable. A description of the certificate and key that does not require X.509 or ASN.1.
.google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
hasConfigin interfaceCertificateOrBuilder- Returns:
- Whether the config field is set.
-
getConfig
Immutable. A description of the certificate and key that does not require X.509 or ASN.1.
.google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getConfigin interfaceCertificateOrBuilder- Returns:
- The config.
-
setConfig
Immutable. A description of the certificate and key that does not require X.509 or ASN.1.
.google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; -
setConfig
Immutable. A description of the certificate and key that does not require X.509 or ASN.1.
.google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; -
mergeConfig
Immutable. A description of the certificate and key that does not require X.509 or ASN.1.
.google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; -
clearConfig
Immutable. A description of the certificate and key that does not require X.509 or ASN.1.
.google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; -
getConfigBuilder
Immutable. A description of the certificate and key that does not require X.509 or ASN.1.
.google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; -
getConfigOrBuilder
Immutable. A description of the certificate and key that does not require X.509 or ASN.1.
.google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getConfigOrBuilderin interfaceCertificateOrBuilder
-
getIssuerCertificateAuthority
Output only. The resource name of the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
string issuer_certificate_authority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getIssuerCertificateAuthorityin interfaceCertificateOrBuilder- Returns:
- The issuerCertificateAuthority.
-
getIssuerCertificateAuthorityBytes
public com.google.protobuf.ByteString getIssuerCertificateAuthorityBytes()Output only. The resource name of the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
string issuer_certificate_authority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getIssuerCertificateAuthorityBytesin interfaceCertificateOrBuilder- Returns:
- The bytes for issuerCertificateAuthority.
-
setIssuerCertificateAuthority
Output only. The resource name of the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
string issuer_certificate_authority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The issuerCertificateAuthority to set.- Returns:
- This builder for chaining.
-
clearIssuerCertificateAuthority
Output only. The resource name of the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
string issuer_certificate_authority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setIssuerCertificateAuthorityBytes
Output only. The resource name of the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
string issuer_certificate_authority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for issuerCertificateAuthority to set.- Returns:
- This builder for chaining.
-
hasLifetime
public boolean hasLifetime()Required. Immutable. The desired lifetime of a certificate. Used to create the "not_before_time" and "not_after_time" fields inside an X.509 certificate. Note that the lifetime may be truncated if it would extend past the life of any certificate authority in the issuing chain.
.google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
hasLifetimein interfaceCertificateOrBuilder- Returns:
- Whether the lifetime field is set.
-
getLifetime
public com.google.protobuf.Duration getLifetime()Required. Immutable. The desired lifetime of a certificate. Used to create the "not_before_time" and "not_after_time" fields inside an X.509 certificate. Note that the lifetime may be truncated if it would extend past the life of any certificate authority in the issuing chain.
.google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getLifetimein interfaceCertificateOrBuilder- Returns:
- The lifetime.
-
setLifetime
Required. Immutable. The desired lifetime of a certificate. Used to create the "not_before_time" and "not_after_time" fields inside an X.509 certificate. Note that the lifetime may be truncated if it would extend past the life of any certificate authority in the issuing chain.
.google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; -
setLifetime
Required. Immutable. The desired lifetime of a certificate. Used to create the "not_before_time" and "not_after_time" fields inside an X.509 certificate. Note that the lifetime may be truncated if it would extend past the life of any certificate authority in the issuing chain.
.google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; -
mergeLifetime
Required. Immutable. The desired lifetime of a certificate. Used to create the "not_before_time" and "not_after_time" fields inside an X.509 certificate. Note that the lifetime may be truncated if it would extend past the life of any certificate authority in the issuing chain.
.google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; -
clearLifetime
Required. Immutable. The desired lifetime of a certificate. Used to create the "not_before_time" and "not_after_time" fields inside an X.509 certificate. Note that the lifetime may be truncated if it would extend past the life of any certificate authority in the issuing chain.
.google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; -
getLifetimeBuilder
public com.google.protobuf.Duration.Builder getLifetimeBuilder()Required. Immutable. The desired lifetime of a certificate. Used to create the "not_before_time" and "not_after_time" fields inside an X.509 certificate. Note that the lifetime may be truncated if it would extend past the life of any certificate authority in the issuing chain.
.google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; -
getLifetimeOrBuilder
public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder()Required. Immutable. The desired lifetime of a certificate. Used to create the "not_before_time" and "not_after_time" fields inside an X.509 certificate. Note that the lifetime may be truncated if it would extend past the life of any certificate authority in the issuing chain.
.google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getLifetimeOrBuilderin interfaceCertificateOrBuilder
-
getCertificateTemplate
Immutable. The resource name for a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] used to issue this certificate, in the format `projects/*/locations/*/certificateTemplates/*`. If this is specified, the caller must have the necessary permission to use this template. If this is omitted, no template will be used. This template must be in the same location as the [Certificate][google.cloud.security.privateca.v1.Certificate].
string certificate_template = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getCertificateTemplatein interfaceCertificateOrBuilder- Returns:
- The certificateTemplate.
-
getCertificateTemplateBytes
public com.google.protobuf.ByteString getCertificateTemplateBytes()Immutable. The resource name for a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] used to issue this certificate, in the format `projects/*/locations/*/certificateTemplates/*`. If this is specified, the caller must have the necessary permission to use this template. If this is omitted, no template will be used. This template must be in the same location as the [Certificate][google.cloud.security.privateca.v1.Certificate].
string certificate_template = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getCertificateTemplateBytesin interfaceCertificateOrBuilder- Returns:
- The bytes for certificateTemplate.
-
setCertificateTemplate
Immutable. The resource name for a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] used to issue this certificate, in the format `projects/*/locations/*/certificateTemplates/*`. If this is specified, the caller must have the necessary permission to use this template. If this is omitted, no template will be used. This template must be in the same location as the [Certificate][google.cloud.security.privateca.v1.Certificate].
string certificate_template = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Parameters:
value- The certificateTemplate to set.- Returns:
- This builder for chaining.
-
clearCertificateTemplate
Immutable. The resource name for a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] used to issue this certificate, in the format `projects/*/locations/*/certificateTemplates/*`. If this is specified, the caller must have the necessary permission to use this template. If this is omitted, no template will be used. This template must be in the same location as the [Certificate][google.cloud.security.privateca.v1.Certificate].
string certificate_template = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setCertificateTemplateBytes
Immutable. The resource name for a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] used to issue this certificate, in the format `projects/*/locations/*/certificateTemplates/*`. If this is specified, the caller must have the necessary permission to use this template. If this is omitted, no template will be used. This template must be in the same location as the [Certificate][google.cloud.security.privateca.v1.Certificate].
string certificate_template = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for certificateTemplate to set.- Returns:
- This builder for chaining.
-
getSubjectModeValue
public int getSubjectModeValue()Immutable. Specifies how the [Certificate][google.cloud.security.privateca.v1.Certificate]'s identity fields are to be decided. If this is omitted, the `DEFAULT` subject mode will be used.
.google.cloud.security.privateca.v1.SubjectRequestMode subject_mode = 7 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getSubjectModeValuein interfaceCertificateOrBuilder- Returns:
- The enum numeric value on the wire for subjectMode.
-
setSubjectModeValue
Immutable. Specifies how the [Certificate][google.cloud.security.privateca.v1.Certificate]'s identity fields are to be decided. If this is omitted, the `DEFAULT` subject mode will be used.
.google.cloud.security.privateca.v1.SubjectRequestMode subject_mode = 7 [(.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The enum numeric value on the wire for subjectMode to set.- Returns:
- This builder for chaining.
-
getSubjectMode
Immutable. Specifies how the [Certificate][google.cloud.security.privateca.v1.Certificate]'s identity fields are to be decided. If this is omitted, the `DEFAULT` subject mode will be used.
.google.cloud.security.privateca.v1.SubjectRequestMode subject_mode = 7 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getSubjectModein interfaceCertificateOrBuilder- Returns:
- The subjectMode.
-
setSubjectMode
Immutable. Specifies how the [Certificate][google.cloud.security.privateca.v1.Certificate]'s identity fields are to be decided. If this is omitted, the `DEFAULT` subject mode will be used.
.google.cloud.security.privateca.v1.SubjectRequestMode subject_mode = 7 [(.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The subjectMode to set.- Returns:
- This builder for chaining.
-
clearSubjectMode
Immutable. Specifies how the [Certificate][google.cloud.security.privateca.v1.Certificate]'s identity fields are to be decided. If this is omitted, the `DEFAULT` subject mode will be used.
.google.cloud.security.privateca.v1.SubjectRequestMode subject_mode = 7 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- This builder for chaining.
-
hasRevocationDetails
public boolean hasRevocationDetails()Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1.Certificate]. This [Certificate][google.cloud.security.privateca.v1.Certificate] is considered revoked if and only if this field is present.
.google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasRevocationDetailsin interfaceCertificateOrBuilder- Returns:
- Whether the revocationDetails field is set.
-
getRevocationDetails
Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1.Certificate]. This [Certificate][google.cloud.security.privateca.v1.Certificate] is considered revoked if and only if this field is present.
.google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRevocationDetailsin interfaceCertificateOrBuilder- Returns:
- The revocationDetails.
-
setRevocationDetails
Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1.Certificate]. This [Certificate][google.cloud.security.privateca.v1.Certificate] is considered revoked if and only if this field is present.
.google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setRevocationDetails
public Certificate.Builder setRevocationDetails(Certificate.RevocationDetails.Builder builderForValue) Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1.Certificate]. This [Certificate][google.cloud.security.privateca.v1.Certificate] is considered revoked if and only if this field is present.
.google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeRevocationDetails
Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1.Certificate]. This [Certificate][google.cloud.security.privateca.v1.Certificate] is considered revoked if and only if this field is present.
.google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearRevocationDetails
Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1.Certificate]. This [Certificate][google.cloud.security.privateca.v1.Certificate] is considered revoked if and only if this field is present.
.google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getRevocationDetailsBuilder
Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1.Certificate]. This [Certificate][google.cloud.security.privateca.v1.Certificate] is considered revoked if and only if this field is present.
.google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getRevocationDetailsOrBuilder
Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1.Certificate]. This [Certificate][google.cloud.security.privateca.v1.Certificate] is considered revoked if and only if this field is present.
.google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRevocationDetailsOrBuilderin interfaceCertificateOrBuilder
-
getPemCertificate
Output only. The pem-encoded, signed X.509 certificate.
string pem_certificate = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPemCertificatein interfaceCertificateOrBuilder- Returns:
- The pemCertificate.
-
getPemCertificateBytes
public com.google.protobuf.ByteString getPemCertificateBytes()Output only. The pem-encoded, signed X.509 certificate.
string pem_certificate = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPemCertificateBytesin interfaceCertificateOrBuilder- Returns:
- The bytes for pemCertificate.
-
setPemCertificate
Output only. The pem-encoded, signed X.509 certificate.
string pem_certificate = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The pemCertificate to set.- Returns:
- This builder for chaining.
-
clearPemCertificate
Output only. The pem-encoded, signed X.509 certificate.
string pem_certificate = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setPemCertificateBytes
Output only. The pem-encoded, signed X.509 certificate.
string pem_certificate = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for pemCertificate to set.- Returns:
- This builder for chaining.
-
hasCertificateDescription
public boolean hasCertificateDescription()Output only. A structured description of the issued X.509 certificate.
.google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCertificateDescriptionin interfaceCertificateOrBuilder- Returns:
- Whether the certificateDescription field is set.
-
getCertificateDescription
Output only. A structured description of the issued X.509 certificate.
.google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCertificateDescriptionin interfaceCertificateOrBuilder- Returns:
- The certificateDescription.
-
setCertificateDescription
Output only. A structured description of the issued X.509 certificate.
.google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCertificateDescription
public Certificate.Builder setCertificateDescription(CertificateDescription.Builder builderForValue) Output only. A structured description of the issued X.509 certificate.
.google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCertificateDescription
Output only. A structured description of the issued X.509 certificate.
.google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCertificateDescription
Output only. A structured description of the issued X.509 certificate.
.google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCertificateDescriptionBuilder
Output only. A structured description of the issued X.509 certificate.
.google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCertificateDescriptionOrBuilder
Output only. A structured description of the issued X.509 certificate.
.google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCertificateDescriptionOrBuilderin interfaceCertificateOrBuilder
-
getPemCertificateChainList
public com.google.protobuf.ProtocolStringList getPemCertificateChainList()Output only. The chain that may be used to verify the X.509 certificate. Expected to be in issuer-to-root order according to RFC 5246.
repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPemCertificateChainListin interfaceCertificateOrBuilder- Returns:
- A list containing the pemCertificateChain.
-
getPemCertificateChainCount
public int getPemCertificateChainCount()Output only. The chain that may be used to verify the X.509 certificate. Expected to be in issuer-to-root order according to RFC 5246.
repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPemCertificateChainCountin interfaceCertificateOrBuilder- Returns:
- The count of pemCertificateChain.
-
getPemCertificateChain
Output only. The chain that may be used to verify the X.509 certificate. Expected to be in issuer-to-root order according to RFC 5246.
repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPemCertificateChainin interfaceCertificateOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The pemCertificateChain at the given index.
-
getPemCertificateChainBytes
public com.google.protobuf.ByteString getPemCertificateChainBytes(int index) Output only. The chain that may be used to verify the X.509 certificate. Expected to be in issuer-to-root order according to RFC 5246.
repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPemCertificateChainBytesin interfaceCertificateOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the pemCertificateChain at the given index.
-
setPemCertificateChain
Output only. The chain that may be used to verify the X.509 certificate. Expected to be in issuer-to-root order according to RFC 5246.
repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
index- The index to set the value at.value- The pemCertificateChain to set.- Returns:
- This builder for chaining.
-
addPemCertificateChain
Output only. The chain that may be used to verify the X.509 certificate. Expected to be in issuer-to-root order according to RFC 5246.
repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The pemCertificateChain to add.- Returns:
- This builder for chaining.
-
addAllPemCertificateChain
Output only. The chain that may be used to verify the X.509 certificate. Expected to be in issuer-to-root order according to RFC 5246.
repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
values- The pemCertificateChain to add.- Returns:
- This builder for chaining.
-
clearPemCertificateChain
Output only. The chain that may be used to verify the X.509 certificate. Expected to be in issuer-to-root order according to RFC 5246.
repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
addPemCertificateChainBytes
Output only. The chain that may be used to verify the X.509 certificate. Expected to be in issuer-to-root order according to RFC 5246.
repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes of the pemCertificateChain to add.- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was created.
.google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceCertificateOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was created.
.google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceCertificateOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was created.
.google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was created.
.google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCreateTime
Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was created.
.google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCreateTime
Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was created.
.google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was created.
.google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was created.
.google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceCertificateOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was updated.
.google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUpdateTimein interfaceCertificateOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was updated.
.google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimein interfaceCertificateOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was updated.
.google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setUpdateTime
Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was updated.
.google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeUpdateTime
Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was updated.
.google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearUpdateTime
Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was updated.
.google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was updated.
.google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was updated.
.google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimeOrBuilderin interfaceCertificateOrBuilder
-
getLabelsCount
public int getLabelsCount()Description copied from interface:CertificateOrBuilderOptional. Labels with user-defined metadata.
map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsCountin interfaceCertificateOrBuilder
-
containsLabels
Optional. Labels with user-defined metadata.
map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
containsLabelsin interfaceCertificateOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceCertificateOrBuilder
-
getLabelsMap
Optional. Labels with user-defined metadata.
map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsMapin interfaceCertificateOrBuilder
-
getLabelsOrDefault
Optional. Labels with user-defined metadata.
map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsOrDefaultin interfaceCertificateOrBuilder
-
getLabelsOrThrow
Optional. Labels with user-defined metadata.
map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsOrThrowin interfaceCertificateOrBuilder
-
clearLabels
-
removeLabels
Optional. Labels with user-defined metadata.
map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL]; -
getMutableLabels
Deprecated.Use alternate mutation accessors instead. -
putLabels
Optional. Labels with user-defined metadata.
map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL]; -
putAllLabels
Optional. Labels with user-defined metadata.
map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL];
-