Class DnsAuthorization.Builder (0.47.0)

public static final class DnsAuthorization.Builder extends GeneratedMessageV3.Builder<DnsAuthorization.Builder> implements DnsAuthorizationOrBuilder

A DnsAuthorization resource describes a way to perform domain authorization for certificate issuance.

Protobuf type google.cloud.certificatemanager.v1.DnsAuthorization

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DnsAuthorization build()
Returns
Type Description
DnsAuthorization

buildPartial()

public DnsAuthorization buildPartial()
Returns
Type Description
DnsAuthorization

clear()

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

clearCreateTime()

public DnsAuthorization.Builder clearCreateTime()

Output only. The creation timestamp of a DnsAuthorization.

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

Returns
Type Description
DnsAuthorization.Builder

clearDescription()

public DnsAuthorization.Builder clearDescription()

One or more paragraphs of text description of a DnsAuthorization.

string description = 5;

Returns
Type Description
DnsAuthorization.Builder

This builder for chaining.

clearDnsResourceRecord()

public DnsAuthorization.Builder clearDnsResourceRecord()

Output only. DNS Resource Record that needs to be added to DNS configuration.

.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord dns_resource_record = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DnsAuthorization.Builder

clearDomain()

public DnsAuthorization.Builder clearDomain()

Required. Immutable. A domain that is being authorized. A DnsAuthorization resource covers a single domain and its wildcard, e.g. authorization for example.com can be used to issue certificates for example.com and *.example.com.

string domain = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
DnsAuthorization.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearLabels()

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

clearName()

public DnsAuthorization.Builder clearName()

A user-defined name of the dns authorization. DnsAuthorization names must be unique globally and match pattern projects/*/locations/*/dnsAuthorizations/*.

string name = 1;

Returns
Type Description
DnsAuthorization.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearType()

public DnsAuthorization.Builder clearType()

Immutable. Type of DnsAuthorization. If unset during resource creation the following default will be used:

  • in location global: FIXED_RECORD.

.google.cloud.certificatemanager.v1.DnsAuthorization.Type type = 11 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
DnsAuthorization.Builder

This builder for chaining.

clearUpdateTime()

public DnsAuthorization.Builder clearUpdateTime()

Output only. The last update timestamp of a DnsAuthorization.

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

Returns
Type Description
DnsAuthorization.Builder

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Set of labels associated with a DnsAuthorization.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. The creation timestamp of a DnsAuthorization.

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

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The creation timestamp of a DnsAuthorization.

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

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The creation timestamp of a DnsAuthorization.

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

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public DnsAuthorization getDefaultInstanceForType()
Returns
Type Description
DnsAuthorization

getDescription()

public String getDescription()

One or more paragraphs of text description of a DnsAuthorization.

string description = 5;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

One or more paragraphs of text description of a DnsAuthorization.

string description = 5;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getDnsResourceRecord()

public DnsAuthorization.DnsResourceRecord getDnsResourceRecord()

Output only. DNS Resource Record that needs to be added to DNS configuration.

.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord dns_resource_record = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DnsAuthorization.DnsResourceRecord

The dnsResourceRecord.

getDnsResourceRecordBuilder()

public DnsAuthorization.DnsResourceRecord.Builder getDnsResourceRecordBuilder()

Output only. DNS Resource Record that needs to be added to DNS configuration.

.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord dns_resource_record = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DnsAuthorization.DnsResourceRecord.Builder

getDnsResourceRecordOrBuilder()

public DnsAuthorization.DnsResourceRecordOrBuilder getDnsResourceRecordOrBuilder()

Output only. DNS Resource Record that needs to be added to DNS configuration.

.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord dns_resource_record = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DnsAuthorization.DnsResourceRecordOrBuilder

getDomain()

public String getDomain()

Required. Immutable. A domain that is being authorized. A DnsAuthorization resource covers a single domain and its wildcard, e.g. authorization for example.com can be used to issue certificates for example.com and *.example.com.

string domain = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The domain.

getDomainBytes()

public ByteString getDomainBytes()

Required. Immutable. A domain that is being authorized. A DnsAuthorization resource covers a single domain and its wildcard, e.g. authorization for example.com can be used to issue certificates for example.com and *.example.com.

string domain = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for domain.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Set of labels associated with a DnsAuthorization.

map<string, string> labels = 4;

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Set of labels associated with a DnsAuthorization.

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 DnsAuthorization.

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 DnsAuthorization.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
String

getMutableLabels() (deprecated)

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 dns authorization. DnsAuthorization names must be unique globally and match pattern projects/*/locations/*/dnsAuthorizations/*.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

A user-defined name of the dns authorization. DnsAuthorization names must be unique globally and match pattern projects/*/locations/*/dnsAuthorizations/*.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getType()

public DnsAuthorization.Type getType()

Immutable. Type of DnsAuthorization. If unset during resource creation the following default will be used:

  • in location global: FIXED_RECORD.

.google.cloud.certificatemanager.v1.DnsAuthorization.Type type = 11 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
DnsAuthorization.Type

The type.

getTypeValue()

public int getTypeValue()

Immutable. Type of DnsAuthorization. If unset during resource creation the following default will be used:

  • in location global: FIXED_RECORD.

.google.cloud.certificatemanager.v1.DnsAuthorization.Type type = 11 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
int

The enum numeric value on the wire for type.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The last update timestamp of a DnsAuthorization.

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

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The last update timestamp of a DnsAuthorization.

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

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The last update timestamp of a DnsAuthorization.

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

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The creation timestamp of a DnsAuthorization.

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

Returns
Type Description
boolean

Whether the createTime field is set.

hasDnsResourceRecord()

public boolean hasDnsResourceRecord()

Output only. DNS Resource Record that needs to be added to DNS configuration.

.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord dns_resource_record = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the dnsResourceRecord field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The last update timestamp of a DnsAuthorization.

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

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public DnsAuthorization.Builder mergeCreateTime(Timestamp value)

Output only. The creation timestamp of a DnsAuthorization.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
DnsAuthorization.Builder

mergeDnsResourceRecord(DnsAuthorization.DnsResourceRecord value)

public DnsAuthorization.Builder mergeDnsResourceRecord(DnsAuthorization.DnsResourceRecord value)

Output only. DNS Resource Record that needs to be added to DNS configuration.

.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord dns_resource_record = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value DnsAuthorization.DnsResourceRecord
Returns
Type Description
DnsAuthorization.Builder

mergeFrom(DnsAuthorization other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public DnsAuthorization.Builder mergeUpdateTime(Timestamp value)

Output only. The last update timestamp of a DnsAuthorization.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
DnsAuthorization.Builder

putAllLabels(Map<String,String> values)

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

Set of labels associated with a DnsAuthorization.

map<string, string> labels = 4;

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

putLabels(String key, String value)

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

Set of labels associated with a DnsAuthorization.

map<string, string> labels = 4;

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

removeLabels(String key)

public DnsAuthorization.Builder removeLabels(String key)

Set of labels associated with a DnsAuthorization.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
DnsAuthorization.Builder

setCreateTime(Timestamp value)

public DnsAuthorization.Builder setCreateTime(Timestamp value)

Output only. The creation timestamp of a DnsAuthorization.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
DnsAuthorization.Builder

setCreateTime(Timestamp.Builder builderForValue)

public DnsAuthorization.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The creation timestamp of a DnsAuthorization.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
DnsAuthorization.Builder

setDescription(String value)

public DnsAuthorization.Builder setDescription(String value)

One or more paragraphs of text description of a DnsAuthorization.

string description = 5;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
DnsAuthorization.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public DnsAuthorization.Builder setDescriptionBytes(ByteString value)

One or more paragraphs of text description of a DnsAuthorization.

string description = 5;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
DnsAuthorization.Builder

This builder for chaining.

setDnsResourceRecord(DnsAuthorization.DnsResourceRecord value)

public DnsAuthorization.Builder setDnsResourceRecord(DnsAuthorization.DnsResourceRecord value)

Output only. DNS Resource Record that needs to be added to DNS configuration.

.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord dns_resource_record = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value DnsAuthorization.DnsResourceRecord
Returns
Type Description
DnsAuthorization.Builder

setDnsResourceRecord(DnsAuthorization.DnsResourceRecord.Builder builderForValue)

public DnsAuthorization.Builder setDnsResourceRecord(DnsAuthorization.DnsResourceRecord.Builder builderForValue)

Output only. DNS Resource Record that needs to be added to DNS configuration.

.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord dns_resource_record = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue DnsAuthorization.DnsResourceRecord.Builder
Returns
Type Description
DnsAuthorization.Builder

setDomain(String value)

public DnsAuthorization.Builder setDomain(String value)

Required. Immutable. A domain that is being authorized. A DnsAuthorization resource covers a single domain and its wildcard, e.g. authorization for example.com can be used to issue certificates for example.com and *.example.com.

string domain = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value String

The domain to set.

Returns
Type Description
DnsAuthorization.Builder

This builder for chaining.

setDomainBytes(ByteString value)

public DnsAuthorization.Builder setDomainBytes(ByteString value)

Required. Immutable. A domain that is being authorized. A DnsAuthorization resource covers a single domain and its wildcard, e.g. authorization for example.com can be used to issue certificates for example.com and *.example.com.

string domain = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value ByteString

The bytes for domain to set.

Returns
Type Description
DnsAuthorization.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public DnsAuthorization.Builder setName(String value)

A user-defined name of the dns authorization. DnsAuthorization names must be unique globally and match pattern projects/*/locations/*/dnsAuthorizations/*.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
DnsAuthorization.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DnsAuthorization.Builder setNameBytes(ByteString value)

A user-defined name of the dns authorization. DnsAuthorization names must be unique globally and match pattern projects/*/locations/*/dnsAuthorizations/*.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
DnsAuthorization.Builder

This builder for chaining.

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

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

setType(DnsAuthorization.Type value)

public DnsAuthorization.Builder setType(DnsAuthorization.Type value)

Immutable. Type of DnsAuthorization. If unset during resource creation the following default will be used:

  • in location global: FIXED_RECORD.

.google.cloud.certificatemanager.v1.DnsAuthorization.Type type = 11 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value DnsAuthorization.Type

The type to set.

Returns
Type Description
DnsAuthorization.Builder

This builder for chaining.

setTypeValue(int value)

public DnsAuthorization.Builder setTypeValue(int value)

Immutable. Type of DnsAuthorization. If unset during resource creation the following default will be used:

  • in location global: FIXED_RECORD.

.google.cloud.certificatemanager.v1.DnsAuthorization.Type type = 11 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value int

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

Returns
Type Description
DnsAuthorization.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public DnsAuthorization.Builder setUpdateTime(Timestamp value)

Output only. The last update timestamp of a DnsAuthorization.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
DnsAuthorization.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public DnsAuthorization.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The last update timestamp of a DnsAuthorization.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
DnsAuthorization.Builder