Class CertificateIssuanceConfig.Builder (0.16.0)

public static final class CertificateIssuanceConfig.Builder extends GeneratedMessageV3.Builder<CertificateIssuanceConfig.Builder> implements CertificateIssuanceConfigOrBuilder

CertificateIssuanceConfig specifies how to issue and manage a certificate.

Protobuf type google.events.cloud.certificatemanager.v1.CertificateIssuanceConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CertificateIssuanceConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CertificateIssuanceConfig.Builder
Overrides

build()

public CertificateIssuanceConfig build()
Returns
Type Description
CertificateIssuanceConfig

buildPartial()

public CertificateIssuanceConfig buildPartial()
Returns
Type Description
CertificateIssuanceConfig

clear()

public CertificateIssuanceConfig.Builder clear()
Returns
Type Description
CertificateIssuanceConfig.Builder
Overrides

clearCertificateAuthorityConfig()

public CertificateIssuanceConfig.Builder clearCertificateAuthorityConfig()

Required. The CA that issues the workload certificate. It includes the CA address, type, authentication to CA service, etc.

.google.events.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig certificate_authority_config = 6;

Returns
Type Description
CertificateIssuanceConfig.Builder

clearCreateTime()

public CertificateIssuanceConfig.Builder clearCreateTime()

Output only. The creation timestamp of a CertificateIssuanceConfig.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
CertificateIssuanceConfig.Builder

clearDescription()

public CertificateIssuanceConfig.Builder clearDescription()

One or more paragraphs of text description of a CertificateIssuanceConfig.

string description = 5;

Returns
Type Description
CertificateIssuanceConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public CertificateIssuanceConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CertificateIssuanceConfig.Builder
Overrides

clearKeyAlgorithm()

public CertificateIssuanceConfig.Builder clearKeyAlgorithm()

Required. The key algorithm to use when generating the private key.

.google.events.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm key_algorithm = 9;

Returns
Type Description
CertificateIssuanceConfig.Builder

This builder for chaining.

clearLabels()

public CertificateIssuanceConfig.Builder clearLabels()
Returns
Type Description
CertificateIssuanceConfig.Builder

clearLifetime()

public CertificateIssuanceConfig.Builder clearLifetime()

Required. Workload certificate lifetime requested.

.google.protobuf.Duration lifetime = 7;

Returns
Type Description
CertificateIssuanceConfig.Builder

clearName()

public CertificateIssuanceConfig.Builder clearName()

A user-defined name of the certificate issuance config. CertificateIssuanceConfig names must be unique globally and match pattern projects/*/locations/*/certificateIssuanceConfigs/*.

string name = 1;

Returns
Type Description
CertificateIssuanceConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CertificateIssuanceConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CertificateIssuanceConfig.Builder
Overrides

clearRotationWindowPercentage()

public CertificateIssuanceConfig.Builder clearRotationWindowPercentage()

Required. Specifies the percentage of elapsed time of the certificate lifetime to wait before renewing the certificate. Must be a number between 1-99, inclusive.

int32 rotation_window_percentage = 8;

Returns
Type Description
CertificateIssuanceConfig.Builder

This builder for chaining.

clearUpdateTime()

public CertificateIssuanceConfig.Builder clearUpdateTime()

Output only. The last update timestamp of a CertificateIssuanceConfig.

.google.protobuf.Timestamp update_time = 3;

Returns
Type Description
CertificateIssuanceConfig.Builder

clone()

public CertificateIssuanceConfig.Builder clone()
Returns
Type Description
CertificateIssuanceConfig.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

Set of labels associated with a CertificateIssuanceConfig.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
boolean

getCertificateAuthorityConfig()

public CertificateIssuanceConfig.CertificateAuthorityConfig getCertificateAuthorityConfig()

Required. The CA that issues the workload certificate. It includes the CA address, type, authentication to CA service, etc.

.google.events.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig certificate_authority_config = 6;

Returns
Type Description
CertificateIssuanceConfig.CertificateAuthorityConfig

The certificateAuthorityConfig.

getCertificateAuthorityConfigBuilder()

public CertificateIssuanceConfig.CertificateAuthorityConfig.Builder getCertificateAuthorityConfigBuilder()

Required. The CA that issues the workload certificate. It includes the CA address, type, authentication to CA service, etc.

.google.events.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig certificate_authority_config = 6;

Returns
Type Description
CertificateIssuanceConfig.CertificateAuthorityConfig.Builder

getCertificateAuthorityConfigOrBuilder()

public CertificateIssuanceConfig.CertificateAuthorityConfigOrBuilder getCertificateAuthorityConfigOrBuilder()

Required. The CA that issues the workload certificate. It includes the CA address, type, authentication to CA service, etc.

.google.events.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig certificate_authority_config = 6;

Returns
Type Description
CertificateIssuanceConfig.CertificateAuthorityConfigOrBuilder

getCreateTime()

public Timestamp getCreateTime()

Output only. The creation timestamp of a CertificateIssuanceConfig.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The creation timestamp of a CertificateIssuanceConfig.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The creation timestamp of a CertificateIssuanceConfig.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public CertificateIssuanceConfig getDefaultInstanceForType()
Returns
Type Description
CertificateIssuanceConfig

getDescription()

public String getDescription()

One or more paragraphs of text description of a CertificateIssuanceConfig.

string description = 5;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

One or more paragraphs of text description of a CertificateIssuanceConfig.

string description = 5;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getKeyAlgorithm()

public CertificateIssuanceConfig.KeyAlgorithm getKeyAlgorithm()

Required. The key algorithm to use when generating the private key.

.google.events.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm key_algorithm = 9;

Returns
Type Description
CertificateIssuanceConfig.KeyAlgorithm

The keyAlgorithm.

getKeyAlgorithmValue()

public int getKeyAlgorithmValue()

Required. The key algorithm to use when generating the private key.

.google.events.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm key_algorithm = 9;

Returns
Type Description
int

The enum numeric value on the wire for keyAlgorithm.

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Set of labels associated with a CertificateIssuanceConfig.

map<string, string> labels = 4;

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Set of labels associated with a CertificateIssuanceConfig.

map<string, string> labels = 4;

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Set of labels associated with a CertificateIssuanceConfig.

map<string, string> labels = 4;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Set of labels associated with a CertificateIssuanceConfig.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
String

getLifetime()

public Duration getLifetime()

Required. Workload certificate lifetime requested.

.google.protobuf.Duration lifetime = 7;

Returns
Type Description
Duration

The lifetime.

getLifetimeBuilder()

public Duration.Builder getLifetimeBuilder()

Required. Workload certificate lifetime requested.

.google.protobuf.Duration lifetime = 7;

Returns
Type Description
Builder

getLifetimeOrBuilder()

public DurationOrBuilder getLifetimeOrBuilder()

Required. Workload certificate lifetime requested.

.google.protobuf.Duration lifetime = 7;

Returns
Type Description
DurationOrBuilder

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

A user-defined name of the certificate issuance config. CertificateIssuanceConfig names must be unique globally and match pattern projects/*/locations/*/certificateIssuanceConfigs/*.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

A user-defined name of the certificate issuance config. CertificateIssuanceConfig names must be unique globally and match pattern projects/*/locations/*/certificateIssuanceConfigs/*.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getRotationWindowPercentage()

public int getRotationWindowPercentage()

Required. Specifies the percentage of elapsed time of the certificate lifetime to wait before renewing the certificate. Must be a number between 1-99, inclusive.

int32 rotation_window_percentage = 8;

Returns
Type Description
int

The rotationWindowPercentage.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The last update timestamp of a CertificateIssuanceConfig.

.google.protobuf.Timestamp update_time = 3;

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The last update timestamp of a CertificateIssuanceConfig.

.google.protobuf.Timestamp update_time = 3;

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The last update timestamp of a CertificateIssuanceConfig.

.google.protobuf.Timestamp update_time = 3;

Returns
Type Description
TimestampOrBuilder

hasCertificateAuthorityConfig()

public boolean hasCertificateAuthorityConfig()

Required. The CA that issues the workload certificate. It includes the CA address, type, authentication to CA service, etc.

.google.events.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig certificate_authority_config = 6;

Returns
Type Description
boolean

Whether the certificateAuthorityConfig field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. The creation timestamp of a CertificateIssuanceConfig.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
boolean

Whether the createTime field is set.

hasLifetime()

public boolean hasLifetime()

Required. Workload certificate lifetime requested.

.google.protobuf.Duration lifetime = 7;

Returns
Type Description
boolean

Whether the lifetime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The last update timestamp of a CertificateIssuanceConfig.

.google.protobuf.Timestamp update_time = 3;

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCertificateAuthorityConfig(CertificateIssuanceConfig.CertificateAuthorityConfig value)

public CertificateIssuanceConfig.Builder mergeCertificateAuthorityConfig(CertificateIssuanceConfig.CertificateAuthorityConfig value)

Required. The CA that issues the workload certificate. It includes the CA address, type, authentication to CA service, etc.

.google.events.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig certificate_authority_config = 6;

Parameter
Name Description
value CertificateIssuanceConfig.CertificateAuthorityConfig
Returns
Type Description
CertificateIssuanceConfig.Builder

mergeCreateTime(Timestamp value)

public CertificateIssuanceConfig.Builder mergeCreateTime(Timestamp value)

Output only. The creation timestamp of a CertificateIssuanceConfig.

.google.protobuf.Timestamp create_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
CertificateIssuanceConfig.Builder

mergeFrom(CertificateIssuanceConfig other)

public CertificateIssuanceConfig.Builder mergeFrom(CertificateIssuanceConfig other)
Parameter
Name Description
other CertificateIssuanceConfig
Returns
Type Description
CertificateIssuanceConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CertificateIssuanceConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CertificateIssuanceConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CertificateIssuanceConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CertificateIssuanceConfig.Builder
Overrides

mergeLifetime(Duration value)

public CertificateIssuanceConfig.Builder mergeLifetime(Duration value)

Required. Workload certificate lifetime requested.

.google.protobuf.Duration lifetime = 7;

Parameter
Name Description
value Duration
Returns
Type Description
CertificateIssuanceConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CertificateIssuanceConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CertificateIssuanceConfig.Builder
Overrides

mergeUpdateTime(Timestamp value)

public CertificateIssuanceConfig.Builder mergeUpdateTime(Timestamp value)

Output only. The last update timestamp of a CertificateIssuanceConfig.

.google.protobuf.Timestamp update_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
CertificateIssuanceConfig.Builder

putAllLabels(Map<String,String> values)

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

Set of labels associated with a CertificateIssuanceConfig.

map<string, string> labels = 4;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
CertificateIssuanceConfig.Builder

putLabels(String key, String value)

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

Set of labels associated with a CertificateIssuanceConfig.

map<string, string> labels = 4;

Parameters
Name Description
key String
value String
Returns
Type Description
CertificateIssuanceConfig.Builder

removeLabels(String key)

public CertificateIssuanceConfig.Builder removeLabels(String key)

Set of labels associated with a CertificateIssuanceConfig.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
CertificateIssuanceConfig.Builder

setCertificateAuthorityConfig(CertificateIssuanceConfig.CertificateAuthorityConfig value)

public CertificateIssuanceConfig.Builder setCertificateAuthorityConfig(CertificateIssuanceConfig.CertificateAuthorityConfig value)

Required. The CA that issues the workload certificate. It includes the CA address, type, authentication to CA service, etc.

.google.events.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig certificate_authority_config = 6;

Parameter
Name Description
value CertificateIssuanceConfig.CertificateAuthorityConfig
Returns
Type Description
CertificateIssuanceConfig.Builder

setCertificateAuthorityConfig(CertificateIssuanceConfig.CertificateAuthorityConfig.Builder builderForValue)

public CertificateIssuanceConfig.Builder setCertificateAuthorityConfig(CertificateIssuanceConfig.CertificateAuthorityConfig.Builder builderForValue)

Required. The CA that issues the workload certificate. It includes the CA address, type, authentication to CA service, etc.

.google.events.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig certificate_authority_config = 6;

Parameter
Name Description
builderForValue CertificateIssuanceConfig.CertificateAuthorityConfig.Builder
Returns
Type Description
CertificateIssuanceConfig.Builder

setCreateTime(Timestamp value)

public CertificateIssuanceConfig.Builder setCreateTime(Timestamp value)

Output only. The creation timestamp of a CertificateIssuanceConfig.

.google.protobuf.Timestamp create_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
CertificateIssuanceConfig.Builder

setCreateTime(Timestamp.Builder builderForValue)

public CertificateIssuanceConfig.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The creation timestamp of a CertificateIssuanceConfig.

.google.protobuf.Timestamp create_time = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
CertificateIssuanceConfig.Builder

setDescription(String value)

public CertificateIssuanceConfig.Builder setDescription(String value)

One or more paragraphs of text description of a CertificateIssuanceConfig.

string description = 5;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
CertificateIssuanceConfig.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public CertificateIssuanceConfig.Builder setDescriptionBytes(ByteString value)

One or more paragraphs of text description of a CertificateIssuanceConfig.

string description = 5;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
CertificateIssuanceConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CertificateIssuanceConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CertificateIssuanceConfig.Builder
Overrides

setKeyAlgorithm(CertificateIssuanceConfig.KeyAlgorithm value)

public CertificateIssuanceConfig.Builder setKeyAlgorithm(CertificateIssuanceConfig.KeyAlgorithm value)

Required. The key algorithm to use when generating the private key.

.google.events.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm key_algorithm = 9;

Parameter
Name Description
value CertificateIssuanceConfig.KeyAlgorithm

The keyAlgorithm to set.

Returns
Type Description
CertificateIssuanceConfig.Builder

This builder for chaining.

setKeyAlgorithmValue(int value)

public CertificateIssuanceConfig.Builder setKeyAlgorithmValue(int value)

Required. The key algorithm to use when generating the private key.

.google.events.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm key_algorithm = 9;

Parameter
Name Description
value int

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

Returns
Type Description
CertificateIssuanceConfig.Builder

This builder for chaining.

setLifetime(Duration value)

public CertificateIssuanceConfig.Builder setLifetime(Duration value)

Required. Workload certificate lifetime requested.

.google.protobuf.Duration lifetime = 7;

Parameter
Name Description
value Duration
Returns
Type Description
CertificateIssuanceConfig.Builder

setLifetime(Duration.Builder builderForValue)

public CertificateIssuanceConfig.Builder setLifetime(Duration.Builder builderForValue)

Required. Workload certificate lifetime requested.

.google.protobuf.Duration lifetime = 7;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
CertificateIssuanceConfig.Builder

setName(String value)

public CertificateIssuanceConfig.Builder setName(String value)

A user-defined name of the certificate issuance config. CertificateIssuanceConfig names must be unique globally and match pattern projects/*/locations/*/certificateIssuanceConfigs/*.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
CertificateIssuanceConfig.Builder

This builder for chaining.

setNameBytes(ByteString value)

public CertificateIssuanceConfig.Builder setNameBytes(ByteString value)

A user-defined name of the certificate issuance config. CertificateIssuanceConfig names must be unique globally and match pattern projects/*/locations/*/certificateIssuanceConfigs/*.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
CertificateIssuanceConfig.Builder

This builder for chaining.

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

public CertificateIssuanceConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CertificateIssuanceConfig.Builder
Overrides

setRotationWindowPercentage(int value)

public CertificateIssuanceConfig.Builder setRotationWindowPercentage(int value)

Required. Specifies the percentage of elapsed time of the certificate lifetime to wait before renewing the certificate. Must be a number between 1-99, inclusive.

int32 rotation_window_percentage = 8;

Parameter
Name Description
value int

The rotationWindowPercentage to set.

Returns
Type Description
CertificateIssuanceConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final CertificateIssuanceConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CertificateIssuanceConfig.Builder
Overrides

setUpdateTime(Timestamp value)

public CertificateIssuanceConfig.Builder setUpdateTime(Timestamp value)

Output only. The last update timestamp of a CertificateIssuanceConfig.

.google.protobuf.Timestamp update_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
CertificateIssuanceConfig.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public CertificateIssuanceConfig.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The last update timestamp of a CertificateIssuanceConfig.

.google.protobuf.Timestamp update_time = 3;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
CertificateIssuanceConfig.Builder