Class CertificateAuthority.Builder (2.41.0)

public static final class CertificateAuthority.Builder extends GeneratedMessageV3.Builder<CertificateAuthority.Builder> implements CertificateAuthorityOrBuilder

A CertificateAuthority represents an individual Certificate Authority. A CertificateAuthority can be used to create Certificates.

Protobuf type google.cloud.security.privateca.v1beta1.CertificateAuthority

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllCaCertificateDescriptions(Iterable<? extends CertificateDescription> values)

public CertificateAuthority.Builder addAllCaCertificateDescriptions(Iterable<? extends CertificateDescription> values)

Output only. A structured description of this CertificateAuthority's CA certificate and its issuers. Ordered as self-to-root.

repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.security.privateca.v1beta1.CertificateDescription>
Returns
TypeDescription
CertificateAuthority.Builder

addAllPemCaCertificates(Iterable<String> values)

public CertificateAuthority.Builder addAllPemCaCertificates(Iterable<String> values)

Output only. This CertificateAuthority's certificate chain, including the current CertificateAuthority's certificate. Ordered such that the root issuer is the final element (consistent with RFC 5246). For a self-signed CA, this will only list the current CertificateAuthority's certificate.

repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuesIterable<String>

The pemCaCertificates to add.

Returns
TypeDescription
CertificateAuthority.Builder

This builder for chaining.

addCaCertificateDescriptions(CertificateDescription value)

public CertificateAuthority.Builder addCaCertificateDescriptions(CertificateDescription value)

Output only. A structured description of this CertificateAuthority's CA certificate and its issuers. Ordered as self-to-root.

repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueCertificateDescription
Returns
TypeDescription
CertificateAuthority.Builder

addCaCertificateDescriptions(CertificateDescription.Builder builderForValue)

public CertificateAuthority.Builder addCaCertificateDescriptions(CertificateDescription.Builder builderForValue)

Output only. A structured description of this CertificateAuthority's CA certificate and its issuers. Ordered as self-to-root.

repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueCertificateDescription.Builder
Returns
TypeDescription
CertificateAuthority.Builder

addCaCertificateDescriptions(int index, CertificateDescription value)

public CertificateAuthority.Builder addCaCertificateDescriptions(int index, CertificateDescription value)

Output only. A structured description of this CertificateAuthority's CA certificate and its issuers. Ordered as self-to-root.

repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
valueCertificateDescription
Returns
TypeDescription
CertificateAuthority.Builder

addCaCertificateDescriptions(int index, CertificateDescription.Builder builderForValue)

public CertificateAuthority.Builder addCaCertificateDescriptions(int index, CertificateDescription.Builder builderForValue)

Output only. A structured description of this CertificateAuthority's CA certificate and its issuers. Ordered as self-to-root.

repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
builderForValueCertificateDescription.Builder
Returns
TypeDescription
CertificateAuthority.Builder

addCaCertificateDescriptionsBuilder()

public CertificateDescription.Builder addCaCertificateDescriptionsBuilder()

Output only. A structured description of this CertificateAuthority's CA certificate and its issuers. Ordered as self-to-root.

repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
CertificateDescription.Builder

addCaCertificateDescriptionsBuilder(int index)

public CertificateDescription.Builder addCaCertificateDescriptionsBuilder(int index)

Output only. A structured description of this CertificateAuthority's CA certificate and its issuers. Ordered as self-to-root.

repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
CertificateDescription.Builder

addPemCaCertificates(String value)

public CertificateAuthority.Builder addPemCaCertificates(String value)

Output only. This CertificateAuthority's certificate chain, including the current CertificateAuthority's certificate. Ordered such that the root issuer is the final element (consistent with RFC 5246). For a self-signed CA, this will only list the current CertificateAuthority's certificate.

repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The pemCaCertificates to add.

Returns
TypeDescription
CertificateAuthority.Builder

This builder for chaining.

addPemCaCertificatesBytes(ByteString value)

public CertificateAuthority.Builder addPemCaCertificatesBytes(ByteString value)

Output only. This CertificateAuthority's certificate chain, including the current CertificateAuthority's certificate. Ordered such that the root issuer is the final element (consistent with RFC 5246). For a self-signed CA, this will only list the current CertificateAuthority's certificate.

repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes of the pemCaCertificates to add.

Returns
TypeDescription
CertificateAuthority.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CertificateAuthority.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CertificateAuthority.Builder
Overrides

build()

public CertificateAuthority build()
Returns
TypeDescription
CertificateAuthority

buildPartial()

public CertificateAuthority buildPartial()
Returns
TypeDescription
CertificateAuthority

clear()

public CertificateAuthority.Builder clear()
Returns
TypeDescription
CertificateAuthority.Builder
Overrides

clearAccessUrls()

public CertificateAuthority.Builder clearAccessUrls()

Output only. URLs for accessing content published by this CA, such as the CA certificate and CRLs.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
CertificateAuthority.Builder

clearCaCertificateDescriptions()

public CertificateAuthority.Builder clearCaCertificateDescriptions()

Output only. A structured description of this CertificateAuthority's CA certificate and its issuers. Ordered as self-to-root.

repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
CertificateAuthority.Builder

clearCertificatePolicy()

public CertificateAuthority.Builder clearCertificatePolicy()

Optional. The CertificateAuthorityPolicy to enforce when issuing Certificates from this CertificateAuthority.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
CertificateAuthority.Builder

clearConfig()

public CertificateAuthority.Builder clearConfig()

Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.

.google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
CertificateAuthority.Builder

clearCreateTime()

public CertificateAuthority.Builder clearCreateTime()

Output only. The time at which this CertificateAuthority was created.

.google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
CertificateAuthority.Builder

clearDeleteTime()

public CertificateAuthority.Builder clearDeleteTime()

Output only. The time at which this CertificateAuthority will be deleted, if scheduled for deletion.

.google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
CertificateAuthority.Builder

clearField(Descriptors.FieldDescriptor field)

public CertificateAuthority.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CertificateAuthority.Builder
Overrides

clearGcsBucket()

public CertificateAuthority.Builder clearGcsBucket()

Immutable. The name of a Cloud Storage bucket where this CertificateAuthority will publish content, such as the CA certificate and CRLs. This must be a bucket name, without any prefixes (such as gs://) or suffixes (such as .googleapis.com). For example, to use a bucket named my-bucket, you would simply specify my-bucket. If not specified, a managed bucket will be created.

string gcs_bucket = 13 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
CertificateAuthority.Builder

This builder for chaining.

clearIssuingOptions()

public CertificateAuthority.Builder clearIssuingOptions()

Optional. The IssuingOptions to follow when issuing Certificates from this CertificateAuthority.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
CertificateAuthority.Builder

clearKeySpec()

public CertificateAuthority.Builder clearKeySpec()

Required. Immutable. Used when issuing certificates for this CertificateAuthority. If this CertificateAuthority is a self-signed CertificateAuthority, this key is also used to sign the self-signed CA certificate. Otherwise, it is used to sign a CSR.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
CertificateAuthority.Builder

clearLabels()

public CertificateAuthority.Builder clearLabels()
Returns
TypeDescription
CertificateAuthority.Builder

clearLifetime()

public CertificateAuthority.Builder clearLifetime()

Required. The desired lifetime of the CA certificate. Used to create the "not_before_time" and "not_after_time" fields inside an X.509 certificate.

.google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CertificateAuthority.Builder

clearName()

public CertificateAuthority.Builder clearName()

Output only. The resource name for this CertificateAuthority in the format projects/*/locations/*/certificateAuthorities/*.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
CertificateAuthority.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CertificateAuthority.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CertificateAuthority.Builder
Overrides

clearPemCaCertificates()

public CertificateAuthority.Builder clearPemCaCertificates()

Output only. This CertificateAuthority's certificate chain, including the current CertificateAuthority's certificate. Ordered such that the root issuer is the final element (consistent with RFC 5246). For a self-signed CA, this will only list the current CertificateAuthority's certificate.

repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
CertificateAuthority.Builder

This builder for chaining.

clearState()

public CertificateAuthority.Builder clearState()

Output only. The State for this CertificateAuthority.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
CertificateAuthority.Builder

This builder for chaining.

clearSubordinateConfig()

public CertificateAuthority.Builder clearSubordinateConfig()

Optional. If this is a subordinate CertificateAuthority, this field will be set with the subordinate configuration, which describes its issuers. This may be updated, but this CertificateAuthority must continue to validate.

.google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
CertificateAuthority.Builder

clearTier()

public CertificateAuthority.Builder clearTier()

Required. Immutable. The Tier of this CertificateAuthority.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier tier = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
CertificateAuthority.Builder

This builder for chaining.

clearType()

public CertificateAuthority.Builder clearType()

Required. Immutable. The Type of this CertificateAuthority.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
CertificateAuthority.Builder

This builder for chaining.

clearUpdateTime()

public CertificateAuthority.Builder clearUpdateTime()

Output only. The time at which this CertificateAuthority was updated.

.google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
CertificateAuthority.Builder

clone()

public CertificateAuthority.Builder clone()
Returns
TypeDescription
CertificateAuthority.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

Optional. Labels with user-defined metadata.

map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getAccessUrls()

public CertificateAuthority.AccessUrls getAccessUrls()

Output only. URLs for accessing content published by this CA, such as the CA certificate and CRLs.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
CertificateAuthority.AccessUrls

The accessUrls.

getAccessUrlsBuilder()

public CertificateAuthority.AccessUrls.Builder getAccessUrlsBuilder()

Output only. URLs for accessing content published by this CA, such as the CA certificate and CRLs.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
CertificateAuthority.AccessUrls.Builder

getAccessUrlsOrBuilder()

public CertificateAuthority.AccessUrlsOrBuilder getAccessUrlsOrBuilder()

Output only. URLs for accessing content published by this CA, such as the CA certificate and CRLs.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
CertificateAuthority.AccessUrlsOrBuilder

getCaCertificateDescriptions(int index)

public CertificateDescription getCaCertificateDescriptions(int index)

Output only. A structured description of this CertificateAuthority's CA certificate and its issuers. Ordered as self-to-root.

repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
CertificateDescription

getCaCertificateDescriptionsBuilder(int index)

public CertificateDescription.Builder getCaCertificateDescriptionsBuilder(int index)

Output only. A structured description of this CertificateAuthority's CA certificate and its issuers. Ordered as self-to-root.

repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
CertificateDescription.Builder

getCaCertificateDescriptionsBuilderList()

public List<CertificateDescription.Builder> getCaCertificateDescriptionsBuilderList()

Output only. A structured description of this CertificateAuthority's CA certificate and its issuers. Ordered as self-to-root.

repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<Builder>

getCaCertificateDescriptionsCount()

public int getCaCertificateDescriptionsCount()

Output only. A structured description of this CertificateAuthority's CA certificate and its issuers. Ordered as self-to-root.

repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

getCaCertificateDescriptionsList()

public List<CertificateDescription> getCaCertificateDescriptionsList()

Output only. A structured description of this CertificateAuthority's CA certificate and its issuers. Ordered as self-to-root.

repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<CertificateDescription>

getCaCertificateDescriptionsOrBuilder(int index)

public CertificateDescriptionOrBuilder getCaCertificateDescriptionsOrBuilder(int index)

Output only. A structured description of this CertificateAuthority's CA certificate and its issuers. Ordered as self-to-root.

repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
CertificateDescriptionOrBuilder

getCaCertificateDescriptionsOrBuilderList()

public List<? extends CertificateDescriptionOrBuilder> getCaCertificateDescriptionsOrBuilderList()

Output only. A structured description of this CertificateAuthority's CA certificate and its issuers. Ordered as self-to-root.

repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<? extends com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder>

getCertificatePolicy()

public CertificateAuthority.CertificateAuthorityPolicy getCertificatePolicy()

Optional. The CertificateAuthorityPolicy to enforce when issuing Certificates from this CertificateAuthority.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
CertificateAuthority.CertificateAuthorityPolicy

The certificatePolicy.

getCertificatePolicyBuilder()

public CertificateAuthority.CertificateAuthorityPolicy.Builder getCertificatePolicyBuilder()

Optional. The CertificateAuthorityPolicy to enforce when issuing Certificates from this CertificateAuthority.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
CertificateAuthority.CertificateAuthorityPolicy.Builder

getCertificatePolicyOrBuilder()

public CertificateAuthority.CertificateAuthorityPolicyOrBuilder getCertificatePolicyOrBuilder()

Optional. The CertificateAuthorityPolicy to enforce when issuing Certificates from this CertificateAuthority.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
CertificateAuthority.CertificateAuthorityPolicyOrBuilder

getConfig()

public CertificateConfig getConfig()

Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.

.google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
CertificateConfig

The config.

getConfigBuilder()

public CertificateConfig.Builder getConfigBuilder()

Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.

.google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
CertificateConfig.Builder

getConfigOrBuilder()

public CertificateConfigOrBuilder getConfigOrBuilder()

Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.

.google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
CertificateConfigOrBuilder

getCreateTime()

public Timestamp getCreateTime()

Output only. The time at which this CertificateAuthority was created.

.google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time at which this CertificateAuthority was created.

.google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time at which this CertificateAuthority was created.

.google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public CertificateAuthority getDefaultInstanceForType()
Returns
TypeDescription
CertificateAuthority

getDeleteTime()

public Timestamp getDeleteTime()

Output only. The time at which this CertificateAuthority will be deleted, if scheduled for deletion.

.google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The deleteTime.

getDeleteTimeBuilder()

public Timestamp.Builder getDeleteTimeBuilder()

Output only. The time at which this CertificateAuthority will be deleted, if scheduled for deletion.

.google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getDeleteTimeOrBuilder()

public TimestampOrBuilder getDeleteTimeOrBuilder()

Output only. The time at which this CertificateAuthority will be deleted, if scheduled for deletion.

.google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGcsBucket()

public String getGcsBucket()

Immutable. The name of a Cloud Storage bucket where this CertificateAuthority will publish content, such as the CA certificate and CRLs. This must be a bucket name, without any prefixes (such as gs://) or suffixes (such as .googleapis.com). For example, to use a bucket named my-bucket, you would simply specify my-bucket. If not specified, a managed bucket will be created.

string gcs_bucket = 13 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
String

The gcsBucket.

getGcsBucketBytes()

public ByteString getGcsBucketBytes()

Immutable. The name of a Cloud Storage bucket where this CertificateAuthority will publish content, such as the CA certificate and CRLs. This must be a bucket name, without any prefixes (such as gs://) or suffixes (such as .googleapis.com). For example, to use a bucket named my-bucket, you would simply specify my-bucket. If not specified, a managed bucket will be created.

string gcs_bucket = 13 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
ByteString

The bytes for gcsBucket.

getIssuingOptions()

public CertificateAuthority.IssuingOptions getIssuingOptions()

Optional. The IssuingOptions to follow when issuing Certificates from this CertificateAuthority.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
CertificateAuthority.IssuingOptions

The issuingOptions.

getIssuingOptionsBuilder()

public CertificateAuthority.IssuingOptions.Builder getIssuingOptionsBuilder()

Optional. The IssuingOptions to follow when issuing Certificates from this CertificateAuthority.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
CertificateAuthority.IssuingOptions.Builder

getIssuingOptionsOrBuilder()

public CertificateAuthority.IssuingOptionsOrBuilder getIssuingOptionsOrBuilder()

Optional. The IssuingOptions to follow when issuing Certificates from this CertificateAuthority.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
CertificateAuthority.IssuingOptionsOrBuilder

getKeySpec()

public CertificateAuthority.KeyVersionSpec getKeySpec()

Required. Immutable. Used when issuing certificates for this CertificateAuthority. If this CertificateAuthority is a self-signed CertificateAuthority, this key is also used to sign the self-signed CA certificate. Otherwise, it is used to sign a CSR.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
CertificateAuthority.KeyVersionSpec

The keySpec.

getKeySpecBuilder()

public CertificateAuthority.KeyVersionSpec.Builder getKeySpecBuilder()

Required. Immutable. Used when issuing certificates for this CertificateAuthority. If this CertificateAuthority is a self-signed CertificateAuthority, this key is also used to sign the self-signed CA certificate. Otherwise, it is used to sign a CSR.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
CertificateAuthority.KeyVersionSpec.Builder

getKeySpecOrBuilder()

public CertificateAuthority.KeyVersionSpecOrBuilder getKeySpecOrBuilder()

Required. Immutable. Used when issuing certificates for this CertificateAuthority. If this CertificateAuthority is a self-signed CertificateAuthority, this key is also used to sign the self-signed CA certificate. Otherwise, it is used to sign a CSR.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
CertificateAuthority.KeyVersionSpecOrBuilder

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. Labels with user-defined metadata.

map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. Labels with user-defined metadata.

map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional. Labels with user-defined metadata.

map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Optional. Labels with user-defined metadata.

map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getLifetime()

public Duration getLifetime()

Required. The desired lifetime of the CA certificate. Used to create the "not_before_time" and "not_after_time" fields inside an X.509 certificate.

.google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Duration

The lifetime.

getLifetimeBuilder()

public Duration.Builder getLifetimeBuilder()

Required. The desired lifetime of the CA certificate. Used to create the "not_before_time" and "not_after_time" fields inside an X.509 certificate.

.google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Builder

getLifetimeOrBuilder()

public DurationOrBuilder getLifetimeOrBuilder()

Required. The desired lifetime of the CA certificate. Used to create the "not_before_time" and "not_after_time" fields inside an X.509 certificate.

.google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
DurationOrBuilder

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

Output only. The resource name for this CertificateAuthority in the format projects/*/locations/*/certificateAuthorities/*.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The resource name for this CertificateAuthority in the format projects/*/locations/*/certificateAuthorities/*.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for name.

getPemCaCertificates(int index)

public String getPemCaCertificates(int index)

Output only. This CertificateAuthority's certificate chain, including the current CertificateAuthority's certificate. Ordered such that the root issuer is the final element (consistent with RFC 5246). For a self-signed CA, this will only list the current CertificateAuthority's certificate.

repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The pemCaCertificates at the given index.

getPemCaCertificatesBytes(int index)

public ByteString getPemCaCertificatesBytes(int index)

Output only. This CertificateAuthority's certificate chain, including the current CertificateAuthority's certificate. Ordered such that the root issuer is the final element (consistent with RFC 5246). For a self-signed CA, this will only list the current CertificateAuthority's certificate.

repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the pemCaCertificates at the given index.

getPemCaCertificatesCount()

public int getPemCaCertificatesCount()

Output only. This CertificateAuthority's certificate chain, including the current CertificateAuthority's certificate. Ordered such that the root issuer is the final element (consistent with RFC 5246). For a self-signed CA, this will only list the current CertificateAuthority's certificate.

repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The count of pemCaCertificates.

getPemCaCertificatesList()

public ProtocolStringList getPemCaCertificatesList()

Output only. This CertificateAuthority's certificate chain, including the current CertificateAuthority's certificate. Ordered such that the root issuer is the final element (consistent with RFC 5246). For a self-signed CA, this will only list the current CertificateAuthority's certificate.

repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ProtocolStringList

A list containing the pemCaCertificates.

getState()

public CertificateAuthority.State getState()

Output only. The State for this CertificateAuthority.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
CertificateAuthority.State

The state.

getStateValue()

public int getStateValue()

Output only. The State for this CertificateAuthority.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getSubordinateConfig()

public SubordinateConfig getSubordinateConfig()

Optional. If this is a subordinate CertificateAuthority, this field will be set with the subordinate configuration, which describes its issuers. This may be updated, but this CertificateAuthority must continue to validate.

.google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
SubordinateConfig

The subordinateConfig.

getSubordinateConfigBuilder()

public SubordinateConfig.Builder getSubordinateConfigBuilder()

Optional. If this is a subordinate CertificateAuthority, this field will be set with the subordinate configuration, which describes its issuers. This may be updated, but this CertificateAuthority must continue to validate.

.google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
SubordinateConfig.Builder

getSubordinateConfigOrBuilder()

public SubordinateConfigOrBuilder getSubordinateConfigOrBuilder()

Optional. If this is a subordinate CertificateAuthority, this field will be set with the subordinate configuration, which describes its issuers. This may be updated, but this CertificateAuthority must continue to validate.

.google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
SubordinateConfigOrBuilder

getTier()

public CertificateAuthority.Tier getTier()

Required. Immutable. The Tier of this CertificateAuthority.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier tier = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
CertificateAuthority.Tier

The tier.

getTierValue()

public int getTierValue()

Required. Immutable. The Tier of this CertificateAuthority.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier tier = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
int

The enum numeric value on the wire for tier.

getType()

public CertificateAuthority.Type getType()

Required. Immutable. The Type of this CertificateAuthority.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
CertificateAuthority.Type

The type.

getTypeValue()

public int getTypeValue()

Required. Immutable. The Type of this CertificateAuthority.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
int

The enum numeric value on the wire for type.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The time at which this CertificateAuthority was updated.

.google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The time at which this CertificateAuthority was updated.

.google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time at which this CertificateAuthority was updated.

.google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

hasAccessUrls()

public boolean hasAccessUrls()

Output only. URLs for accessing content published by this CA, such as the CA certificate and CRLs.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the accessUrls field is set.

hasCertificatePolicy()

public boolean hasCertificatePolicy()

Optional. The CertificateAuthorityPolicy to enforce when issuing Certificates from this CertificateAuthority.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the certificatePolicy field is set.

hasConfig()

public boolean hasConfig()

Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.

.google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
boolean

Whether the config field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. The time at which this CertificateAuthority was created.

.google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasDeleteTime()

public boolean hasDeleteTime()

Output only. The time at which this CertificateAuthority will be deleted, if scheduled for deletion.

.google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the deleteTime field is set.

hasIssuingOptions()

public boolean hasIssuingOptions()

Optional. The IssuingOptions to follow when issuing Certificates from this CertificateAuthority.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the issuingOptions field is set.

hasKeySpec()

public boolean hasKeySpec()

Required. Immutable. Used when issuing certificates for this CertificateAuthority. If this CertificateAuthority is a self-signed CertificateAuthority, this key is also used to sign the self-signed CA certificate. Otherwise, it is used to sign a CSR.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
boolean

Whether the keySpec field is set.

hasLifetime()

public boolean hasLifetime()

Required. The desired lifetime of the CA certificate. Used to create the "not_before_time" and "not_after_time" fields inside an X.509 certificate.

.google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the lifetime field is set.

hasSubordinateConfig()

public boolean hasSubordinateConfig()

Optional. If this is a subordinate CertificateAuthority, this field will be set with the subordinate configuration, which describes its issuers. This may be updated, but this CertificateAuthority must continue to validate.

.google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the subordinateConfig field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The time at which this CertificateAuthority was updated.

.google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAccessUrls(CertificateAuthority.AccessUrls value)

public CertificateAuthority.Builder mergeAccessUrls(CertificateAuthority.AccessUrls value)

Output only. URLs for accessing content published by this CA, such as the CA certificate and CRLs.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueCertificateAuthority.AccessUrls
Returns
TypeDescription
CertificateAuthority.Builder

mergeCertificatePolicy(CertificateAuthority.CertificateAuthorityPolicy value)

public CertificateAuthority.Builder mergeCertificatePolicy(CertificateAuthority.CertificateAuthorityPolicy value)

Optional. The CertificateAuthorityPolicy to enforce when issuing Certificates from this CertificateAuthority.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueCertificateAuthority.CertificateAuthorityPolicy
Returns
TypeDescription
CertificateAuthority.Builder

mergeConfig(CertificateConfig value)

public CertificateAuthority.Builder mergeConfig(CertificateConfig value)

Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.

.google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueCertificateConfig
Returns
TypeDescription
CertificateAuthority.Builder

mergeCreateTime(Timestamp value)

public CertificateAuthority.Builder mergeCreateTime(Timestamp value)

Output only. The time at which this CertificateAuthority was created.

.google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
CertificateAuthority.Builder

mergeDeleteTime(Timestamp value)

public CertificateAuthority.Builder mergeDeleteTime(Timestamp value)

Output only. The time at which this CertificateAuthority will be deleted, if scheduled for deletion.

.google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
CertificateAuthority.Builder

mergeFrom(CertificateAuthority other)

public CertificateAuthority.Builder mergeFrom(CertificateAuthority other)
Parameter
NameDescription
otherCertificateAuthority
Returns
TypeDescription
CertificateAuthority.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CertificateAuthority.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CertificateAuthority.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CertificateAuthority.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CertificateAuthority.Builder
Overrides

mergeIssuingOptions(CertificateAuthority.IssuingOptions value)

public CertificateAuthority.Builder mergeIssuingOptions(CertificateAuthority.IssuingOptions value)

Optional. The IssuingOptions to follow when issuing Certificates from this CertificateAuthority.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueCertificateAuthority.IssuingOptions
Returns
TypeDescription
CertificateAuthority.Builder

mergeKeySpec(CertificateAuthority.KeyVersionSpec value)

public CertificateAuthority.Builder mergeKeySpec(CertificateAuthority.KeyVersionSpec value)

Required. Immutable. Used when issuing certificates for this CertificateAuthority. If this CertificateAuthority is a self-signed CertificateAuthority, this key is also used to sign the self-signed CA certificate. Otherwise, it is used to sign a CSR.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueCertificateAuthority.KeyVersionSpec
Returns
TypeDescription
CertificateAuthority.Builder

mergeLifetime(Duration value)

public CertificateAuthority.Builder mergeLifetime(Duration value)

Required. The desired lifetime of the CA certificate. Used to create the "not_before_time" and "not_after_time" fields inside an X.509 certificate.

.google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueDuration
Returns
TypeDescription
CertificateAuthority.Builder

mergeSubordinateConfig(SubordinateConfig value)

public CertificateAuthority.Builder mergeSubordinateConfig(SubordinateConfig value)

Optional. If this is a subordinate CertificateAuthority, this field will be set with the subordinate configuration, which describes its issuers. This may be updated, but this CertificateAuthority must continue to validate.

.google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueSubordinateConfig
Returns
TypeDescription
CertificateAuthority.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CertificateAuthority.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CertificateAuthority.Builder
Overrides

mergeUpdateTime(Timestamp value)

public CertificateAuthority.Builder mergeUpdateTime(Timestamp value)

Output only. The time at which this CertificateAuthority was updated.

.google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
CertificateAuthority.Builder

putAllLabels(Map<String,String> values)

public CertificateAuthority.Builder putAllLabels(Map<String,String> values)

Optional. Labels with user-defined metadata.

map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
CertificateAuthority.Builder

putLabels(String key, String value)

public CertificateAuthority.Builder putLabels(String key, String value)

Optional. Labels with user-defined metadata.

map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
CertificateAuthority.Builder

removeCaCertificateDescriptions(int index)

public CertificateAuthority.Builder removeCaCertificateDescriptions(int index)

Output only. A structured description of this CertificateAuthority's CA certificate and its issuers. Ordered as self-to-root.

repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
CertificateAuthority.Builder

removeLabels(String key)

public CertificateAuthority.Builder removeLabels(String key)

Optional. Labels with user-defined metadata.

map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
CertificateAuthority.Builder

setAccessUrls(CertificateAuthority.AccessUrls value)

public CertificateAuthority.Builder setAccessUrls(CertificateAuthority.AccessUrls value)

Output only. URLs for accessing content published by this CA, such as the CA certificate and CRLs.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueCertificateAuthority.AccessUrls
Returns
TypeDescription
CertificateAuthority.Builder

setAccessUrls(CertificateAuthority.AccessUrls.Builder builderForValue)

public CertificateAuthority.Builder setAccessUrls(CertificateAuthority.AccessUrls.Builder builderForValue)

Output only. URLs for accessing content published by this CA, such as the CA certificate and CRLs.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueCertificateAuthority.AccessUrls.Builder
Returns
TypeDescription
CertificateAuthority.Builder

setCaCertificateDescriptions(int index, CertificateDescription value)

public CertificateAuthority.Builder setCaCertificateDescriptions(int index, CertificateDescription value)

Output only. A structured description of this CertificateAuthority's CA certificate and its issuers. Ordered as self-to-root.

repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
valueCertificateDescription
Returns
TypeDescription
CertificateAuthority.Builder

setCaCertificateDescriptions(int index, CertificateDescription.Builder builderForValue)

public CertificateAuthority.Builder setCaCertificateDescriptions(int index, CertificateDescription.Builder builderForValue)

Output only. A structured description of this CertificateAuthority's CA certificate and its issuers. Ordered as self-to-root.

repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
builderForValueCertificateDescription.Builder
Returns
TypeDescription
CertificateAuthority.Builder

setCertificatePolicy(CertificateAuthority.CertificateAuthorityPolicy value)

public CertificateAuthority.Builder setCertificatePolicy(CertificateAuthority.CertificateAuthorityPolicy value)

Optional. The CertificateAuthorityPolicy to enforce when issuing Certificates from this CertificateAuthority.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueCertificateAuthority.CertificateAuthorityPolicy
Returns
TypeDescription
CertificateAuthority.Builder

setCertificatePolicy(CertificateAuthority.CertificateAuthorityPolicy.Builder builderForValue)

public CertificateAuthority.Builder setCertificatePolicy(CertificateAuthority.CertificateAuthorityPolicy.Builder builderForValue)

Optional. The CertificateAuthorityPolicy to enforce when issuing Certificates from this CertificateAuthority.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueCertificateAuthority.CertificateAuthorityPolicy.Builder
Returns
TypeDescription
CertificateAuthority.Builder

setConfig(CertificateConfig value)

public CertificateAuthority.Builder setConfig(CertificateConfig value)

Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.

.google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueCertificateConfig
Returns
TypeDescription
CertificateAuthority.Builder

setConfig(CertificateConfig.Builder builderForValue)

public CertificateAuthority.Builder setConfig(CertificateConfig.Builder builderForValue)

Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.

.google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
builderForValueCertificateConfig.Builder
Returns
TypeDescription
CertificateAuthority.Builder

setCreateTime(Timestamp value)

public CertificateAuthority.Builder setCreateTime(Timestamp value)

Output only. The time at which this CertificateAuthority was created.

.google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
CertificateAuthority.Builder

setCreateTime(Timestamp.Builder builderForValue)

public CertificateAuthority.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time at which this CertificateAuthority was created.

.google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
CertificateAuthority.Builder

setDeleteTime(Timestamp value)

public CertificateAuthority.Builder setDeleteTime(Timestamp value)

Output only. The time at which this CertificateAuthority will be deleted, if scheduled for deletion.

.google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
CertificateAuthority.Builder

setDeleteTime(Timestamp.Builder builderForValue)

public CertificateAuthority.Builder setDeleteTime(Timestamp.Builder builderForValue)

Output only. The time at which this CertificateAuthority will be deleted, if scheduled for deletion.

.google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
CertificateAuthority.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CertificateAuthority.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CertificateAuthority.Builder
Overrides

setGcsBucket(String value)

public CertificateAuthority.Builder setGcsBucket(String value)

Immutable. The name of a Cloud Storage bucket where this CertificateAuthority will publish content, such as the CA certificate and CRLs. This must be a bucket name, without any prefixes (such as gs://) or suffixes (such as .googleapis.com). For example, to use a bucket named my-bucket, you would simply specify my-bucket. If not specified, a managed bucket will be created.

string gcs_bucket = 13 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueString

The gcsBucket to set.

Returns
TypeDescription
CertificateAuthority.Builder

This builder for chaining.

setGcsBucketBytes(ByteString value)

public CertificateAuthority.Builder setGcsBucketBytes(ByteString value)

Immutable. The name of a Cloud Storage bucket where this CertificateAuthority will publish content, such as the CA certificate and CRLs. This must be a bucket name, without any prefixes (such as gs://) or suffixes (such as .googleapis.com). For example, to use a bucket named my-bucket, you would simply specify my-bucket. If not specified, a managed bucket will be created.

string gcs_bucket = 13 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueByteString

The bytes for gcsBucket to set.

Returns
TypeDescription
CertificateAuthority.Builder

This builder for chaining.

setIssuingOptions(CertificateAuthority.IssuingOptions value)

public CertificateAuthority.Builder setIssuingOptions(CertificateAuthority.IssuingOptions value)

Optional. The IssuingOptions to follow when issuing Certificates from this CertificateAuthority.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueCertificateAuthority.IssuingOptions
Returns
TypeDescription
CertificateAuthority.Builder

setIssuingOptions(CertificateAuthority.IssuingOptions.Builder builderForValue)

public CertificateAuthority.Builder setIssuingOptions(CertificateAuthority.IssuingOptions.Builder builderForValue)

Optional. The IssuingOptions to follow when issuing Certificates from this CertificateAuthority.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueCertificateAuthority.IssuingOptions.Builder
Returns
TypeDescription
CertificateAuthority.Builder

setKeySpec(CertificateAuthority.KeyVersionSpec value)

public CertificateAuthority.Builder setKeySpec(CertificateAuthority.KeyVersionSpec value)

Required. Immutable. Used when issuing certificates for this CertificateAuthority. If this CertificateAuthority is a self-signed CertificateAuthority, this key is also used to sign the self-signed CA certificate. Otherwise, it is used to sign a CSR.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueCertificateAuthority.KeyVersionSpec
Returns
TypeDescription
CertificateAuthority.Builder

setKeySpec(CertificateAuthority.KeyVersionSpec.Builder builderForValue)

public CertificateAuthority.Builder setKeySpec(CertificateAuthority.KeyVersionSpec.Builder builderForValue)

Required. Immutable. Used when issuing certificates for this CertificateAuthority. If this CertificateAuthority is a self-signed CertificateAuthority, this key is also used to sign the self-signed CA certificate. Otherwise, it is used to sign a CSR.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
builderForValueCertificateAuthority.KeyVersionSpec.Builder
Returns
TypeDescription
CertificateAuthority.Builder

setLifetime(Duration value)

public CertificateAuthority.Builder setLifetime(Duration value)

Required. The desired lifetime of the CA certificate. Used to create the "not_before_time" and "not_after_time" fields inside an X.509 certificate.

.google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueDuration
Returns
TypeDescription
CertificateAuthority.Builder

setLifetime(Duration.Builder builderForValue)

public CertificateAuthority.Builder setLifetime(Duration.Builder builderForValue)

Required. The desired lifetime of the CA certificate. Used to create the "not_before_time" and "not_after_time" fields inside an X.509 certificate.

.google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
CertificateAuthority.Builder

setName(String value)

public CertificateAuthority.Builder setName(String value)

Output only. The resource name for this CertificateAuthority in the format projects/*/locations/*/certificateAuthorities/*.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
CertificateAuthority.Builder

This builder for chaining.

setNameBytes(ByteString value)

public CertificateAuthority.Builder setNameBytes(ByteString value)

Output only. The resource name for this CertificateAuthority in the format projects/*/locations/*/certificateAuthorities/*.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
CertificateAuthority.Builder

This builder for chaining.

setPemCaCertificates(int index, String value)

public CertificateAuthority.Builder setPemCaCertificates(int index, String value)

Output only. This CertificateAuthority's certificate chain, including the current CertificateAuthority's certificate. Ordered such that the root issuer is the final element (consistent with RFC 5246). For a self-signed CA, this will only list the current CertificateAuthority's certificate.

repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The pemCaCertificates to set.

Returns
TypeDescription
CertificateAuthority.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CertificateAuthority.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CertificateAuthority.Builder
Overrides

setState(CertificateAuthority.State value)

public CertificateAuthority.Builder setState(CertificateAuthority.State value)

Output only. The State for this CertificateAuthority.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueCertificateAuthority.State

The state to set.

Returns
TypeDescription
CertificateAuthority.Builder

This builder for chaining.

setStateValue(int value)

public CertificateAuthority.Builder setStateValue(int value)

Output only. The State for this CertificateAuthority.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The enum numeric value on the wire for state to set.

Returns
TypeDescription
CertificateAuthority.Builder

This builder for chaining.

setSubordinateConfig(SubordinateConfig value)

public CertificateAuthority.Builder setSubordinateConfig(SubordinateConfig value)

Optional. If this is a subordinate CertificateAuthority, this field will be set with the subordinate configuration, which describes its issuers. This may be updated, but this CertificateAuthority must continue to validate.

.google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueSubordinateConfig
Returns
TypeDescription
CertificateAuthority.Builder

setSubordinateConfig(SubordinateConfig.Builder builderForValue)

public CertificateAuthority.Builder setSubordinateConfig(SubordinateConfig.Builder builderForValue)

Optional. If this is a subordinate CertificateAuthority, this field will be set with the subordinate configuration, which describes its issuers. This may be updated, but this CertificateAuthority must continue to validate.

.google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueSubordinateConfig.Builder
Returns
TypeDescription
CertificateAuthority.Builder

setTier(CertificateAuthority.Tier value)

public CertificateAuthority.Builder setTier(CertificateAuthority.Tier value)

Required. Immutable. The Tier of this CertificateAuthority.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier tier = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueCertificateAuthority.Tier

The tier to set.

Returns
TypeDescription
CertificateAuthority.Builder

This builder for chaining.

setTierValue(int value)

public CertificateAuthority.Builder setTierValue(int value)

Required. Immutable. The Tier of this CertificateAuthority.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier tier = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueint

The enum numeric value on the wire for tier to set.

Returns
TypeDescription
CertificateAuthority.Builder

This builder for chaining.

setType(CertificateAuthority.Type value)

public CertificateAuthority.Builder setType(CertificateAuthority.Type value)

Required. Immutable. The Type of this CertificateAuthority.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueCertificateAuthority.Type

The type to set.

Returns
TypeDescription
CertificateAuthority.Builder

This builder for chaining.

setTypeValue(int value)

public CertificateAuthority.Builder setTypeValue(int value)

Required. Immutable. The Type of this CertificateAuthority.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueint

The enum numeric value on the wire for type to set.

Returns
TypeDescription
CertificateAuthority.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final CertificateAuthority.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CertificateAuthority.Builder
Overrides

setUpdateTime(Timestamp value)

public CertificateAuthority.Builder setUpdateTime(Timestamp value)

Output only. The time at which this CertificateAuthority was updated.

.google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
CertificateAuthority.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public CertificateAuthority.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The time at which this CertificateAuthority was updated.

.google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
CertificateAuthority.Builder