Class Certificate.Builder (0.40.0)

public static final class Certificate.Builder extends GeneratedMessageV3.Builder<Certificate.Builder> implements CertificateOrBuilder

Defines TLS certificate.

Protobuf type google.cloud.certificatemanager.v1.Certificate

Static Methods

getDescriptor()

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

Methods

addAllSanDnsnames(Iterable<String> values)

public Certificate.Builder addAllSanDnsnames(Iterable<String> values)

Output only. The list of Subject Alternative Names of dnsName type defined in the certificate (see RFC 5280 4.2.1.6). Managed certificates that haven't been provisioned yet have this field populated with a value of the managed.domains field.

repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuesIterable<String>

The sanDnsnames to add.

Returns
TypeDescription
Certificate.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSanDnsnames(String value)

public Certificate.Builder addSanDnsnames(String value)

Output only. The list of Subject Alternative Names of dnsName type defined in the certificate (see RFC 5280 4.2.1.6). Managed certificates that haven't been provisioned yet have this field populated with a value of the managed.domains field.

repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The sanDnsnames to add.

Returns
TypeDescription
Certificate.Builder

This builder for chaining.

addSanDnsnamesBytes(ByteString value)

public Certificate.Builder addSanDnsnamesBytes(ByteString value)

Output only. The list of Subject Alternative Names of dnsName type defined in the certificate (see RFC 5280 4.2.1.6). Managed certificates that haven't been provisioned yet have this field populated with a value of the managed.domains field.

repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes of the sanDnsnames to add.

Returns
TypeDescription
Certificate.Builder

This builder for chaining.

build()

public Certificate build()
Returns
TypeDescription
Certificate

buildPartial()

public Certificate buildPartial()
Returns
TypeDescription
Certificate

clear()

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

clearCreateTime()

public Certificate.Builder clearCreateTime()

Output only. The creation timestamp of a Certificate.

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

Returns
TypeDescription
Certificate.Builder

clearDescription()

public Certificate.Builder clearDescription()

One or more paragraphs of text description of a certificate.

string description = 8;

Returns
TypeDescription
Certificate.Builder

This builder for chaining.

clearExpireTime()

public Certificate.Builder clearExpireTime()

Output only. The expiry timestamp of a Certificate.

.google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Certificate.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearLabels()

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

clearManaged()

public Certificate.Builder clearManaged()

If set, contains configuration and state of a managed certificate.

.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate managed = 11;

Returns
TypeDescription
Certificate.Builder

clearName()

public Certificate.Builder clearName()

A user-defined name of the certificate. Certificate names must be unique globally and match pattern projects/*/locations/*/certificates/*.

string name = 1;

Returns
TypeDescription
Certificate.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPemCertificate()

public Certificate.Builder clearPemCertificate()

Output only. The PEM-encoded certificate chain.

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

Returns
TypeDescription
Certificate.Builder

This builder for chaining.

clearSanDnsnames()

public Certificate.Builder clearSanDnsnames()

Output only. The list of Subject Alternative Names of dnsName type defined in the certificate (see RFC 5280 4.2.1.6). Managed certificates that haven't been provisioned yet have this field populated with a value of the managed.domains field.

repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Certificate.Builder

This builder for chaining.

clearScope()

public Certificate.Builder clearScope()

Immutable. The scope of the certificate.

.google.cloud.certificatemanager.v1.Certificate.Scope scope = 12 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
Certificate.Builder

This builder for chaining.

clearSelfManaged()

public Certificate.Builder clearSelfManaged()

If set, defines data of a self-managed certificate.

.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5;

Returns
TypeDescription
Certificate.Builder

clearType()

public Certificate.Builder clearType()
Returns
TypeDescription
Certificate.Builder

clearUpdateTime()

public Certificate.Builder clearUpdateTime()

Output only. The last update timestamp of a Certificate.

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

Returns
TypeDescription
Certificate.Builder

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Set of labels associated with a Certificate.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. The creation timestamp of a Certificate.

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

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The creation timestamp of a Certificate.

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

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The creation timestamp of a Certificate.

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

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Certificate getDefaultInstanceForType()
Returns
TypeDescription
Certificate

getDescription()

public String getDescription()

One or more paragraphs of text description of a certificate.

string description = 8;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

One or more paragraphs of text description of a certificate.

string description = 8;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getExpireTime()

public Timestamp getExpireTime()

Output only. The expiry timestamp of a Certificate.

.google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The expireTime.

getExpireTimeBuilder()

public Timestamp.Builder getExpireTimeBuilder()

Output only. The expiry timestamp of a Certificate.

.google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getExpireTimeOrBuilder()

public TimestampOrBuilder getExpireTimeOrBuilder()

Output only. The expiry timestamp of a Certificate.

.google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Set of labels associated with a Certificate.

map<string, string> labels = 4;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Set of labels associated with a Certificate.

map<string, string> labels = 4;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Set of labels associated with a Certificate.

map<string, string> labels = 4;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Set of labels associated with a Certificate.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getManaged()

public Certificate.ManagedCertificate getManaged()

If set, contains configuration and state of a managed certificate.

.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate managed = 11;

Returns
TypeDescription
Certificate.ManagedCertificate

The managed.

getManagedBuilder()

public Certificate.ManagedCertificate.Builder getManagedBuilder()

If set, contains configuration and state of a managed certificate.

.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate managed = 11;

Returns
TypeDescription
Certificate.ManagedCertificate.Builder

getManagedOrBuilder()

public Certificate.ManagedCertificateOrBuilder getManagedOrBuilder()

If set, contains configuration and state of a managed certificate.

.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate managed = 11;

Returns
TypeDescription
Certificate.ManagedCertificateOrBuilder

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

A user-defined name of the certificate. Certificate names must be unique globally and match pattern projects/*/locations/*/certificates/*.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

A user-defined name of the certificate. Certificate names must be unique globally and match pattern projects/*/locations/*/certificates/*.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getPemCertificate()

public String getPemCertificate()

Output only. The PEM-encoded certificate chain.

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

Returns
TypeDescription
String

The pemCertificate.

getPemCertificateBytes()

public ByteString getPemCertificateBytes()

Output only. The PEM-encoded certificate chain.

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

Returns
TypeDescription
ByteString

The bytes for pemCertificate.

getSanDnsnames(int index)

public String getSanDnsnames(int index)

Output only. The list of Subject Alternative Names of dnsName type defined in the certificate (see RFC 5280 4.2.1.6). Managed certificates that haven't been provisioned yet have this field populated with a value of the managed.domains field.

repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The sanDnsnames at the given index.

getSanDnsnamesBytes(int index)

public ByteString getSanDnsnamesBytes(int index)

Output only. The list of Subject Alternative Names of dnsName type defined in the certificate (see RFC 5280 4.2.1.6). Managed certificates that haven't been provisioned yet have this field populated with a value of the managed.domains field.

repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the sanDnsnames at the given index.

getSanDnsnamesCount()

public int getSanDnsnamesCount()

Output only. The list of Subject Alternative Names of dnsName type defined in the certificate (see RFC 5280 4.2.1.6). Managed certificates that haven't been provisioned yet have this field populated with a value of the managed.domains field.

repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The count of sanDnsnames.

getSanDnsnamesList()

public ProtocolStringList getSanDnsnamesList()

Output only. The list of Subject Alternative Names of dnsName type defined in the certificate (see RFC 5280 4.2.1.6). Managed certificates that haven't been provisioned yet have this field populated with a value of the managed.domains field.

repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ProtocolStringList

A list containing the sanDnsnames.

getScope()

public Certificate.Scope getScope()

Immutable. The scope of the certificate.

.google.cloud.certificatemanager.v1.Certificate.Scope scope = 12 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
Certificate.Scope

The scope.

getScopeValue()

public int getScopeValue()

Immutable. The scope of the certificate.

.google.cloud.certificatemanager.v1.Certificate.Scope scope = 12 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
int

The enum numeric value on the wire for scope.

getSelfManaged()

public Certificate.SelfManagedCertificate getSelfManaged()

If set, defines data of a self-managed certificate.

.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5;

Returns
TypeDescription
Certificate.SelfManagedCertificate

The selfManaged.

getSelfManagedBuilder()

public Certificate.SelfManagedCertificate.Builder getSelfManagedBuilder()

If set, defines data of a self-managed certificate.

.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5;

Returns
TypeDescription
Certificate.SelfManagedCertificate.Builder

getSelfManagedOrBuilder()

public Certificate.SelfManagedCertificateOrBuilder getSelfManagedOrBuilder()

If set, defines data of a self-managed certificate.

.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5;

Returns
TypeDescription
Certificate.SelfManagedCertificateOrBuilder

getTypeCase()

public Certificate.TypeCase getTypeCase()
Returns
TypeDescription
Certificate.TypeCase

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The last update timestamp of a Certificate.

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

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The last update timestamp of a Certificate.

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

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The last update timestamp of a Certificate.

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

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The creation timestamp of a Certificate.

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

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasExpireTime()

public boolean hasExpireTime()

Output only. The expiry timestamp of a Certificate.

.google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the expireTime field is set.

hasManaged()

public boolean hasManaged()

If set, contains configuration and state of a managed certificate.

.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate managed = 11;

Returns
TypeDescription
boolean

Whether the managed field is set.

hasSelfManaged()

public boolean hasSelfManaged()

If set, defines data of a self-managed certificate.

.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5;

Returns
TypeDescription
boolean

Whether the selfManaged field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The last update timestamp of a Certificate.

.google.protobuf.Timestamp update_time = 3 [(.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

mergeCreateTime(Timestamp value)

public Certificate.Builder mergeCreateTime(Timestamp value)

Output only. The creation timestamp of a Certificate.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Certificate.Builder

mergeExpireTime(Timestamp value)

public Certificate.Builder mergeExpireTime(Timestamp value)

Output only. The expiry timestamp of a Certificate.

.google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Certificate.Builder

mergeFrom(Certificate other)

public Certificate.Builder mergeFrom(Certificate other)
Parameter
NameDescription
otherCertificate
Returns
TypeDescription
Certificate.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeManaged(Certificate.ManagedCertificate value)

public Certificate.Builder mergeManaged(Certificate.ManagedCertificate value)

If set, contains configuration and state of a managed certificate.

.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate managed = 11;

Parameter
NameDescription
valueCertificate.ManagedCertificate
Returns
TypeDescription
Certificate.Builder

mergeSelfManaged(Certificate.SelfManagedCertificate value)

public Certificate.Builder mergeSelfManaged(Certificate.SelfManagedCertificate value)

If set, defines data of a self-managed certificate.

.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5;

Parameter
NameDescription
valueCertificate.SelfManagedCertificate
Returns
TypeDescription
Certificate.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public Certificate.Builder mergeUpdateTime(Timestamp value)

Output only. The last update timestamp of a Certificate.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Certificate.Builder

putAllLabels(Map<String,String> values)

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

Set of labels associated with a Certificate.

map<string, string> labels = 4;

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

putLabels(String key, String value)

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

Set of labels associated with a Certificate.

map<string, string> labels = 4;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
Certificate.Builder

removeLabels(String key)

public Certificate.Builder removeLabels(String key)

Set of labels associated with a Certificate.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
Certificate.Builder

setCreateTime(Timestamp value)

public Certificate.Builder setCreateTime(Timestamp value)

Output only. The creation timestamp of a Certificate.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Certificate.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Certificate.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The creation timestamp of a Certificate.

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Certificate.Builder

setDescription(String value)

public Certificate.Builder setDescription(String value)

One or more paragraphs of text description of a certificate.

string description = 8;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
Certificate.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Certificate.Builder setDescriptionBytes(ByteString value)

One or more paragraphs of text description of a certificate.

string description = 8;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
Certificate.Builder

This builder for chaining.

setExpireTime(Timestamp value)

public Certificate.Builder setExpireTime(Timestamp value)

Output only. The expiry timestamp of a Certificate.

.google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Certificate.Builder

setExpireTime(Timestamp.Builder builderForValue)

public Certificate.Builder setExpireTime(Timestamp.Builder builderForValue)

Output only. The expiry timestamp of a Certificate.

.google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Certificate.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setManaged(Certificate.ManagedCertificate value)

public Certificate.Builder setManaged(Certificate.ManagedCertificate value)

If set, contains configuration and state of a managed certificate.

.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate managed = 11;

Parameter
NameDescription
valueCertificate.ManagedCertificate
Returns
TypeDescription
Certificate.Builder

setManaged(Certificate.ManagedCertificate.Builder builderForValue)

public Certificate.Builder setManaged(Certificate.ManagedCertificate.Builder builderForValue)

If set, contains configuration and state of a managed certificate.

.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate managed = 11;

Parameter
NameDescription
builderForValueCertificate.ManagedCertificate.Builder
Returns
TypeDescription
Certificate.Builder

setName(String value)

public Certificate.Builder setName(String value)

A user-defined name of the certificate. Certificate names must be unique globally and match pattern projects/*/locations/*/certificates/*.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Certificate.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Certificate.Builder setNameBytes(ByteString value)

A user-defined name of the certificate. Certificate names must be unique globally and match pattern projects/*/locations/*/certificates/*.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Certificate.Builder

This builder for chaining.

setPemCertificate(String value)

public Certificate.Builder setPemCertificate(String value)

Output only. The PEM-encoded certificate chain.

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

Parameter
NameDescription
valueString

The pemCertificate to set.

Returns
TypeDescription
Certificate.Builder

This builder for chaining.

setPemCertificateBytes(ByteString value)

public Certificate.Builder setPemCertificateBytes(ByteString value)

Output only. The PEM-encoded certificate chain.

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

Parameter
NameDescription
valueByteString

The bytes for pemCertificate to set.

Returns
TypeDescription
Certificate.Builder

This builder for chaining.

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

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

setSanDnsnames(int index, String value)

public Certificate.Builder setSanDnsnames(int index, String value)

Output only. The list of Subject Alternative Names of dnsName type defined in the certificate (see RFC 5280 4.2.1.6). Managed certificates that haven't been provisioned yet have this field populated with a value of the managed.domains field.

repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The sanDnsnames to set.

Returns
TypeDescription
Certificate.Builder

This builder for chaining.

setScope(Certificate.Scope value)

public Certificate.Builder setScope(Certificate.Scope value)

Immutable. The scope of the certificate.

.google.cloud.certificatemanager.v1.Certificate.Scope scope = 12 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueCertificate.Scope

The scope to set.

Returns
TypeDescription
Certificate.Builder

This builder for chaining.

setScopeValue(int value)

public Certificate.Builder setScopeValue(int value)

Immutable. The scope of the certificate.

.google.cloud.certificatemanager.v1.Certificate.Scope scope = 12 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueint

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

Returns
TypeDescription
Certificate.Builder

This builder for chaining.

setSelfManaged(Certificate.SelfManagedCertificate value)

public Certificate.Builder setSelfManaged(Certificate.SelfManagedCertificate value)

If set, defines data of a self-managed certificate.

.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5;

Parameter
NameDescription
valueCertificate.SelfManagedCertificate
Returns
TypeDescription
Certificate.Builder

setSelfManaged(Certificate.SelfManagedCertificate.Builder builderForValue)

public Certificate.Builder setSelfManaged(Certificate.SelfManagedCertificate.Builder builderForValue)

If set, defines data of a self-managed certificate.

.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5;

Parameter
NameDescription
builderForValueCertificate.SelfManagedCertificate.Builder
Returns
TypeDescription
Certificate.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public Certificate.Builder setUpdateTime(Timestamp value)

Output only. The last update timestamp of a Certificate.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Certificate.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Certificate.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The last update timestamp of a Certificate.

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Certificate.Builder