Class DnsAuthorization.Builder (0.14.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DnsAuthorization build()
Returns
TypeDescription
DnsAuthorization

buildPartial()

public DnsAuthorization buildPartial()
Returns
TypeDescription
DnsAuthorization

clear()

public DnsAuthorization.Builder clear()
Returns
TypeDescription
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
TypeDescription
DnsAuthorization.Builder

clearDescription()

public DnsAuthorization.Builder clearDescription()

One or more paragraphs of text description of a DnsAuthorization.

string description = 5;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
DnsAuthorization.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearLabels()

public DnsAuthorization.Builder clearLabels()
Returns
TypeDescription
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
TypeDescription
DnsAuthorization.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

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

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Set of labels associated with a DnsAuthorization.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public DnsAuthorization getDefaultInstanceForType()
Returns
TypeDescription
DnsAuthorization

getDescription()

public String getDescription()

One or more paragraphs of text description of a DnsAuthorization.

string description = 5;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

One or more paragraphs of text description of a DnsAuthorization.

string description = 5;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for domain.

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Set of labels associated with a DnsAuthorization.

map<string, string> labels = 4;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Set of labels associated with a DnsAuthorization.

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

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

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels()

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

string name = 1;

Returns
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueDnsAuthorization.DnsResourceRecord
Returns
TypeDescription
DnsAuthorization.Builder

mergeFrom(DnsAuthorization other)

public DnsAuthorization.Builder mergeFrom(DnsAuthorization other)
Parameter
NameDescription
otherDnsAuthorization
Returns
TypeDescription
DnsAuthorization.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DnsAuthorization.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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
NameDescription
keyString
valueString
Returns
TypeDescription
DnsAuthorization.Builder

removeLabels(String key)

public DnsAuthorization.Builder removeLabels(String key)

Set of labels associated with a DnsAuthorization.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueString

The description to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
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
NameDescription
valueDnsAuthorization.DnsResourceRecord
Returns
TypeDescription
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
NameDescription
builderForValueDnsAuthorization.DnsResourceRecord.Builder
Returns
TypeDescription
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
NameDescription
valueString

The domain to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for domain to set.

Returns
TypeDescription
DnsAuthorization.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DnsAuthorization.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DnsAuthorization.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DnsAuthorization.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
DnsAuthorization.Builder