Class Certificate.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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 typegoogle.cloud.security.privateca.v1.Certificate
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, 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()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Certificate.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Certificate.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Certificate.Builder>
-
clear
public Certificate.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<Certificate.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<Certificate.Builder>
-
getDefaultInstanceForType
public Certificate getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Certificate build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Certificate buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Certificate.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<Certificate.Builder>
-
setField
public Certificate.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<Certificate.Builder>
-
clearField
public Certificate.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<Certificate.Builder>
-
clearOneof
public Certificate.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<Certificate.Builder>
-
setRepeatedField
public Certificate.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<Certificate.Builder>
-
addRepeatedField
public Certificate.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<Certificate.Builder>
-
mergeFrom
public Certificate.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Certificate.Builder>
-
mergeFrom
public Certificate.Builder mergeFrom(Certificate other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Certificate.Builder>
-
mergeFrom
public Certificate.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<Certificate.Builder>
- Throws:
IOException
-
getCertificateConfigCase
public Certificate.CertificateConfigCase getCertificateConfigCase()
- Specified by:
getCertificateConfigCase
in interfaceCertificateOrBuilder
-
clearCertificateConfig
public Certificate.Builder clearCertificateConfig()
-
getName
public String getName()
Output only. 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) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
- Specified by:
getName
in interfaceCertificateOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Output only. 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) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
- Specified by:
getNameBytes
in interfaceCertificateOrBuilder
- Returns:
- The bytes for name.
-
setName
public Certificate.Builder setName(String value)
Output only. 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) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Certificate.Builder clearName()
Output only. 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) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
- Returns:
- This builder for chaining.
-
setNameBytes
public Certificate.Builder setNameBytes(com.google.protobuf.ByteString value)
Output only. 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) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
- 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:
hasPemCsr
in interfaceCertificateOrBuilder
- Returns:
- Whether the pemCsr field is set.
-
getPemCsr
public String getPemCsr()
Immutable. A pem-encoded X.509 certificate signing request (CSR).
string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE];
- Specified by:
getPemCsr
in 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:
getPemCsrBytes
in interfaceCertificateOrBuilder
- Returns:
- The bytes for pemCsr.
-
setPemCsr
public Certificate.Builder setPemCsr(String value)
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
public Certificate.Builder 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
public Certificate.Builder setPemCsrBytes(com.google.protobuf.ByteString value)
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:
hasConfig
in interfaceCertificateOrBuilder
- Returns:
- Whether the config field is set.
-
getConfig
public CertificateConfig 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:
getConfig
in interfaceCertificateOrBuilder
- Returns:
- The config.
-
setConfig
public Certificate.Builder setConfig(CertificateConfig value)
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
public Certificate.Builder setConfig(CertificateConfig.Builder builderForValue)
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
public Certificate.Builder mergeConfig(CertificateConfig value)
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
public Certificate.Builder 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
public CertificateConfig.Builder 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
public CertificateConfigOrBuilder 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:
getConfigOrBuilder
in interfaceCertificateOrBuilder
-
getIssuerCertificateAuthority
public String 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:
getIssuerCertificateAuthority
in 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:
getIssuerCertificateAuthorityBytes
in interfaceCertificateOrBuilder
- Returns:
- The bytes for issuerCertificateAuthority.
-
setIssuerCertificateAuthority
public Certificate.Builder setIssuerCertificateAuthority(String value)
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
public Certificate.Builder 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
public Certificate.Builder setIssuerCertificateAuthorityBytes(com.google.protobuf.ByteString value)
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:
hasLifetime
in 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:
getLifetime
in interfaceCertificateOrBuilder
- Returns:
- The lifetime.
-
setLifetime
public Certificate.Builder setLifetime(com.google.protobuf.Duration value)
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
public Certificate.Builder setLifetime(com.google.protobuf.Duration.Builder builderForValue)
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
public Certificate.Builder mergeLifetime(com.google.protobuf.Duration value)
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
public Certificate.Builder 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:
getLifetimeOrBuilder
in interfaceCertificateOrBuilder
-
getCertificateTemplate
public String 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:
getCertificateTemplate
in 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:
getCertificateTemplateBytes
in interfaceCertificateOrBuilder
- Returns:
- The bytes for certificateTemplate.
-
setCertificateTemplate
public Certificate.Builder setCertificateTemplate(String value)
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
public Certificate.Builder 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
public Certificate.Builder setCertificateTemplateBytes(com.google.protobuf.ByteString value)
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:
getSubjectModeValue
in interfaceCertificateOrBuilder
- Returns:
- The enum numeric value on the wire for subjectMode.
-
setSubjectModeValue
public Certificate.Builder setSubjectModeValue(int value)
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
public SubjectRequestMode 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:
getSubjectMode
in interfaceCertificateOrBuilder
- Returns:
- The subjectMode.
-
setSubjectMode
public Certificate.Builder setSubjectMode(SubjectRequestMode value)
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
public Certificate.Builder 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:
hasRevocationDetails
in interfaceCertificateOrBuilder
- Returns:
- Whether the revocationDetails field is set.
-
getRevocationDetails
public Certificate.RevocationDetails 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:
getRevocationDetails
in interfaceCertificateOrBuilder
- Returns:
- The revocationDetails.
-
setRevocationDetails
public Certificate.Builder setRevocationDetails(Certificate.RevocationDetails value)
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
public Certificate.Builder mergeRevocationDetails(Certificate.RevocationDetails value)
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
public Certificate.Builder 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
public Certificate.RevocationDetails.Builder 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
public Certificate.RevocationDetailsOrBuilder 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:
getRevocationDetailsOrBuilder
in interfaceCertificateOrBuilder
-
getPemCertificate
public String getPemCertificate()
Output only. The pem-encoded, signed X.509 certificate.
string pem_certificate = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getPemCertificate
in 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:
getPemCertificateBytes
in interfaceCertificateOrBuilder
- Returns:
- The bytes for pemCertificate.
-
setPemCertificate
public Certificate.Builder setPemCertificate(String value)
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
public Certificate.Builder 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
public Certificate.Builder setPemCertificateBytes(com.google.protobuf.ByteString value)
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:
hasCertificateDescription
in interfaceCertificateOrBuilder
- Returns:
- Whether the certificateDescription field is set.
-
getCertificateDescription
public CertificateDescription 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:
getCertificateDescription
in interfaceCertificateOrBuilder
- Returns:
- The certificateDescription.
-
setCertificateDescription
public Certificate.Builder setCertificateDescription(CertificateDescription value)
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
public Certificate.Builder mergeCertificateDescription(CertificateDescription value)
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
public Certificate.Builder 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
public CertificateDescription.Builder 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
public CertificateDescriptionOrBuilder 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:
getCertificateDescriptionOrBuilder
in 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:
getPemCertificateChainList
in 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:
getPemCertificateChainCount
in interfaceCertificateOrBuilder
- Returns:
- The count of pemCertificateChain.
-
getPemCertificateChain
public String getPemCertificateChain(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:
getPemCertificateChain
in 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:
getPemCertificateChainBytes
in interfaceCertificateOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the pemCertificateChain at the given index.
-
setPemCertificateChain
public Certificate.Builder setPemCertificateChain(int index, String value)
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
public Certificate.Builder addPemCertificateChain(String value)
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
public Certificate.Builder addAllPemCertificateChain(Iterable<String> values)
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
public Certificate.Builder 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
public Certificate.Builder addPemCertificateChainBytes(com.google.protobuf.ByteString value)
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:
hasCreateTime
in 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:
getCreateTime
in interfaceCertificateOrBuilder
- Returns:
- The createTime.
-
setCreateTime
public Certificate.Builder setCreateTime(com.google.protobuf.Timestamp value)
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
public Certificate.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
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
public Certificate.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
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
public Certificate.Builder 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:
getCreateTimeOrBuilder
in 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:
hasUpdateTime
in 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:
getUpdateTime
in interfaceCertificateOrBuilder
- Returns:
- The updateTime.
-
setUpdateTime
public Certificate.Builder setUpdateTime(com.google.protobuf.Timestamp value)
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
public Certificate.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
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
public Certificate.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
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
public Certificate.Builder 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:
getUpdateTimeOrBuilder
in interfaceCertificateOrBuilder
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:CertificateOrBuilder
Optional. Labels with user-defined metadata.
map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getLabelsCount
in interfaceCertificateOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Optional. Labels with user-defined metadata.
map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
containsLabels
in interfaceCertificateOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceCertificateOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Optional. Labels with user-defined metadata.
map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getLabelsMap
in interfaceCertificateOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Optional. Labels with user-defined metadata.
map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getLabelsOrDefault
in interfaceCertificateOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Optional. Labels with user-defined metadata.
map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getLabelsOrThrow
in interfaceCertificateOrBuilder
-
clearLabels
public Certificate.Builder clearLabels()
-
removeLabels
public Certificate.Builder removeLabels(String key)
Optional. Labels with user-defined metadata.
map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL];
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
public Certificate.Builder putLabels(String key, String value)
Optional. Labels with user-defined metadata.
map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL];
-
putAllLabels
public Certificate.Builder putAllLabels(Map<String,String> values)
Optional. Labels with user-defined metadata.
map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL];
-
setUnknownFields
public final Certificate.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Certificate.Builder>
-
mergeUnknownFields
public final Certificate.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Certificate.Builder>
-
-