Class 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.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
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<DnsAuthorization.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<DnsAuthorization.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public DnsAuthorization.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<DnsAuthorization.Builder>
      • setField

        public DnsAuthorization.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<DnsAuthorization.Builder>
      • clearField

        public DnsAuthorization.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<DnsAuthorization.Builder>
      • clearOneof

        public DnsAuthorization.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<DnsAuthorization.Builder>
      • setRepeatedField

        public DnsAuthorization.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                         int index,
                                                         Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DnsAuthorization.Builder>
      • addRepeatedField

        public DnsAuthorization.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                         Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DnsAuthorization.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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
      • 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.
      • 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];
      • setUnknownFields

        public final DnsAuthorization.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DnsAuthorization.Builder>
      • mergeUnknownFields

        public final DnsAuthorization.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DnsAuthorization.Builder>