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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<DnsAuthorization.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<DnsAuthorization.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<DnsAuthorization.Builder>
    • clear

      public DnsAuthorization.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<DnsAuthorization.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<DnsAuthorization.Builder>
    • getDefaultInstanceForType

      public DnsAuthorization getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public DnsAuthorization build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public DnsAuthorization buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public DnsAuthorization.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DnsAuthorization.Builder>
    • mergeFrom

      public DnsAuthorization.Builder mergeFrom(DnsAuthorization other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DnsAuthorization.Builder>
      Throws:
      IOException
    • 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;
      Specified by:
      getName in interface DnsAuthorizationOrBuilder
      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:
      getNameBytes in interface DnsAuthorizationOrBuilder
      Returns:
      The bytes for name.
    • setName

      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;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setNameBytes

      public DnsAuthorization.Builder setNameBytes(com.google.protobuf.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;
      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:
      hasCreateTime in interface DnsAuthorizationOrBuilder
      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:
      getCreateTime in interface DnsAuthorizationOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public DnsAuthorization.Builder setCreateTime(com.google.protobuf.Timestamp value)
       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

      public DnsAuthorization.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The creation timestamp of a DnsAuthorization.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • 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];
    • 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:
      getCreateTimeOrBuilder in interface DnsAuthorizationOrBuilder
    • 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:
      hasUpdateTime in interface DnsAuthorizationOrBuilder
      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:
      getUpdateTime in interface DnsAuthorizationOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public DnsAuthorization.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       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

      public DnsAuthorization.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The last update timestamp of a DnsAuthorization.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • 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];
    • 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:
      getUpdateTimeOrBuilder in interface DnsAuthorizationOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: DnsAuthorizationOrBuilder
       Set of labels associated with a DnsAuthorization.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsCount in interface DnsAuthorizationOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Set of labels associated with a DnsAuthorization.
       
      map<string, string> labels = 4;
      Specified by:
      containsLabels in interface DnsAuthorizationOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface DnsAuthorizationOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Set of labels associated with a DnsAuthorization.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsMap in interface DnsAuthorizationOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Set of labels associated with a DnsAuthorization.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsOrDefault in interface DnsAuthorizationOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Set of labels associated with a DnsAuthorization.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsOrThrow in interface DnsAuthorizationOrBuilder
    • clearLabels

      public DnsAuthorization.Builder clearLabels()
    • removeLabels

      public DnsAuthorization.Builder removeLabels(String key)
       Set of labels associated with a DnsAuthorization.
       
      map<string, string> labels = 4;
    • getMutableLabels

      @Deprecated public Map<String,String> getMutableLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLabels

      public DnsAuthorization.Builder putLabels(String key, String value)
       Set of labels associated with a DnsAuthorization.
       
      map<string, string> labels = 4;
    • putAllLabels

      public DnsAuthorization.Builder putAllLabels(Map<String,String> values)
       Set of labels associated with a DnsAuthorization.
       
      map<string, string> labels = 4;
    • getDescription

      public String getDescription()
       One or more paragraphs of text description of a DnsAuthorization.
       
      string description = 5;
      Specified by:
      getDescription in interface DnsAuthorizationOrBuilder
      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:
      getDescriptionBytes in interface DnsAuthorizationOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public DnsAuthorization.Builder setDescription(String value)
       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

      public DnsAuthorization.Builder clearDescription()
       One or more paragraphs of text description of a DnsAuthorization.
       
      string description = 5;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public DnsAuthorization.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       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

      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];
      Specified by:
      getDomain in interface DnsAuthorizationOrBuilder
      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:
      getDomainBytes in interface DnsAuthorizationOrBuilder
      Returns:
      The bytes for domain.
    • setDomain

      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];
      Parameters:
      value - The domain to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setDomainBytes

      public DnsAuthorization.Builder setDomainBytes(com.google.protobuf.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];
      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:
      hasDnsResourceRecord in interface DnsAuthorizationOrBuilder
      Returns:
      Whether the dnsResourceRecord field is set.
    • 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];
      Specified by:
      getDnsResourceRecord in interface DnsAuthorizationOrBuilder
      Returns:
      The dnsResourceRecord.
    • setDnsResourceRecord

      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];
    • 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

      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];
    • 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];
    • 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];
    • 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];
      Specified by:
      getDnsResourceRecordOrBuilder in interface DnsAuthorizationOrBuilder
    • 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:
      getTypeValue in interface DnsAuthorizationOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      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];
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getType in interface DnsAuthorizationOrBuilder
      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

      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:
      This builder for chaining.