Class DnsAuthorization.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DnsAuthorization.Builder>
com.google.cloud.certificatemanager.v1.DnsAuthorization.Builder
- All Implemented Interfaces:
DnsAuthorizationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- DnsAuthorization
public static final class DnsAuthorization.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.One or more paragraphs of text description of a DnsAuthorization.Output only.Required.A user-defined name of the dns authorization.Immutable.Output only.booleancontainsLabels(String key) Set of labels associated with a DnsAuthorization.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.One or more paragraphs of text description of a DnsAuthorization.com.google.protobuf.ByteStringOne or more paragraphs of text description of a DnsAuthorization.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.Output only.Output only.Required.com.google.protobuf.ByteStringRequired.Deprecated.intSet of labels associated with a DnsAuthorization.Set of labels associated with a DnsAuthorization.getLabelsOrDefault(String key, String defaultValue) Set of labels associated with a DnsAuthorization.getLabelsOrThrow(String key) Set of labels associated with a DnsAuthorization.Deprecated.getName()A user-defined name of the dns authorization.com.google.protobuf.ByteStringA user-defined name of the dns authorization.getType()Immutable.intImmutable.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOutput only.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.Output only.mergeFrom(DnsAuthorization other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUpdateTime(com.google.protobuf.Timestamp value) Output only.putAllLabels(Map<String, String> values) Set of labels associated with a DnsAuthorization.Set of labels associated with a DnsAuthorization.removeLabels(String key) Set of labels associated with a DnsAuthorization.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setDescription(String value) One or more paragraphs of text description of a DnsAuthorization.setDescriptionBytes(com.google.protobuf.ByteString value) One or more paragraphs of text description of a DnsAuthorization.Output only.setDnsResourceRecord(DnsAuthorization.DnsResourceRecord.Builder builderForValue) Output only.Required.setDomainBytes(com.google.protobuf.ByteString value) Required.A user-defined name of the dns authorization.setNameBytes(com.google.protobuf.ByteString value) A user-defined name of the dns authorization.setType(DnsAuthorization.Type value) Immutable.setTypeValue(int value) Immutable.setUpdateTime(com.google.protobuf.Timestamp value) Output only.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<DnsAuthorization.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<DnsAuthorization.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<DnsAuthorization.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<DnsAuthorization.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<DnsAuthorization.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DnsAuthorization.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DnsAuthorization.Builder>
-
mergeFrom
public DnsAuthorization.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DnsAuthorization.Builder>- Throws:
IOException
-
getName
A user-defined name of the dns authorization. DnsAuthorization names must be unique globally and match pattern `projects/*/locations/*/dnsAuthorizations/*`.
string name = 1;- Specified by:
getNamein interfaceDnsAuthorizationOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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;- Specified by:
getNameBytesin interfaceDnsAuthorizationOrBuilder- Returns:
- The bytes for name.
-
setName
A user-defined name of the dns authorization. DnsAuthorization names must be unique globally and match pattern `projects/*/locations/*/dnsAuthorizations/*`.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setNameBytes
A user-defined name of the dns authorization. DnsAuthorization names must be unique globally and match pattern `projects/*/locations/*/dnsAuthorizations/*`.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()Output only. The creation timestamp of a DnsAuthorization.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceDnsAuthorizationOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. The creation timestamp of a DnsAuthorization.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceDnsAuthorizationOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. The creation timestamp of a DnsAuthorization.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
public DnsAuthorization.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only. The creation timestamp of a DnsAuthorization.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCreateTime
Output only. The creation timestamp of a DnsAuthorization.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCreateTime
Output only. The creation timestamp of a DnsAuthorization.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()Output only. The creation timestamp of a DnsAuthorization.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. The creation timestamp of a DnsAuthorization.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceDnsAuthorizationOrBuilder
-
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];- Specified by:
hasUpdateTimein interfaceDnsAuthorizationOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()Output only. The last update timestamp of a DnsAuthorization.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimein interfaceDnsAuthorizationOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
Output only. The last update timestamp of a DnsAuthorization.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setUpdateTime
public DnsAuthorization.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only. The last update timestamp of a DnsAuthorization.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeUpdateTime
Output only. The last update timestamp of a DnsAuthorization.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearUpdateTime
Output only. The last update timestamp of a DnsAuthorization.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()Output only. The last update timestamp of a DnsAuthorization.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. The last update timestamp of a DnsAuthorization.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimeOrBuilderin interfaceDnsAuthorizationOrBuilder
-
getLabelsCount
public int getLabelsCount()Description copied from interface:DnsAuthorizationOrBuilderSet of labels associated with a DnsAuthorization.
map<string, string> labels = 4;- Specified by:
getLabelsCountin interfaceDnsAuthorizationOrBuilder
-
containsLabels
Set of labels associated with a DnsAuthorization.
map<string, string> labels = 4;- Specified by:
containsLabelsin interfaceDnsAuthorizationOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceDnsAuthorizationOrBuilder
-
getLabelsMap
Set of labels associated with a DnsAuthorization.
map<string, string> labels = 4;- Specified by:
getLabelsMapin interfaceDnsAuthorizationOrBuilder
-
getLabelsOrDefault
Set of labels associated with a DnsAuthorization.
map<string, string> labels = 4;- Specified by:
getLabelsOrDefaultin interfaceDnsAuthorizationOrBuilder
-
getLabelsOrThrow
Set of labels associated with a DnsAuthorization.
map<string, string> labels = 4;- Specified by:
getLabelsOrThrowin interfaceDnsAuthorizationOrBuilder
-
clearLabels
-
removeLabels
Set of labels associated with a DnsAuthorization.
map<string, string> labels = 4; -
getMutableLabels
Deprecated.Use alternate mutation accessors instead. -
putLabels
Set of labels associated with a DnsAuthorization.
map<string, string> labels = 4; -
putAllLabels
Set of labels associated with a DnsAuthorization.
map<string, string> labels = 4; -
getDescription
One or more paragraphs of text description of a DnsAuthorization.
string description = 5;- Specified by:
getDescriptionin interfaceDnsAuthorizationOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()One or more paragraphs of text description of a DnsAuthorization.
string description = 5;- Specified by:
getDescriptionBytesin interfaceDnsAuthorizationOrBuilder- Returns:
- The bytes for description.
-
setDescription
One or more paragraphs of text description of a DnsAuthorization.
string description = 5;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
One or more paragraphs of text description of a DnsAuthorization.
string description = 5;- Returns:
- This builder for chaining.
-
setDescriptionBytes
One or more paragraphs of text description of a DnsAuthorization.
string description = 5;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getDomainin interfaceDnsAuthorizationOrBuilder- Returns:
- The domain.
-
getDomainBytes
public com.google.protobuf.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];- Specified by:
getDomainBytesin interfaceDnsAuthorizationOrBuilder- Returns:
- The bytes for domain.
-
setDomain
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];- Parameters:
value- The domain to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setDomainBytes
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];- Parameters:
value- The bytes for domain to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
hasDnsResourceRecordin interfaceDnsAuthorizationOrBuilder- Returns:
- Whether the dnsResourceRecord field is set.
-
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];- Specified by:
getDnsResourceRecordin interfaceDnsAuthorizationOrBuilder- Returns:
- The dnsResourceRecord.
-
setDnsResourceRecord
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]; -
setDnsResourceRecord
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]; -
mergeDnsResourceRecord
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]; -
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]; -
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]; -
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];- Specified by:
getDnsResourceRecordOrBuilderin interfaceDnsAuthorizationOrBuilder
-
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];- Specified by:
getTypeValuein interfaceDnsAuthorizationOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
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];- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getTypein interfaceDnsAuthorizationOrBuilder- Returns:
- The type.
-
setType
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];- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-