Class BillingSetup.Builder

  • All Implemented Interfaces:
    BillingSetupOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    BillingSetup

    public static final class BillingSetup.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<BillingSetup.Builder>
    implements BillingSetupOrBuilder
     A billing setup, which associates a payments account and an advertiser. A
     billing setup is specific to one advertiser.
     
    Protobuf type google.ads.googleads.v10.resources.BillingSetup
    • Method Detail

      • getDescriptor

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

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

        public BillingSetup.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<BillingSetup.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<BillingSetup.Builder>
      • getDefaultInstanceForType

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

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

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

        public BillingSetup.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<BillingSetup.Builder>
      • setField

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

        public BillingSetup.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<BillingSetup.Builder>
      • clearOneof

        public BillingSetup.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<BillingSetup.Builder>
      • setRepeatedField

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

        public BillingSetup.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BillingSetup.Builder>
      • mergeFrom

        public BillingSetup.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<BillingSetup.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<BillingSetup.Builder>
      • mergeFrom

        public BillingSetup.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws java.io.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<BillingSetup.Builder>
        Throws:
        java.io.IOException
      • getResourceName

        public java.lang.String getResourceName()
         Immutable. The resource name of the billing setup.
         BillingSetup resource names have the form:
         `customers/{customer_id}/billingSetups/{billing_setup_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        getResourceName in interface BillingSetupOrBuilder
        Returns:
        The resourceName.
      • getResourceNameBytes

        public com.google.protobuf.ByteString getResourceNameBytes()
         Immutable. The resource name of the billing setup.
         BillingSetup resource names have the form:
         `customers/{customer_id}/billingSetups/{billing_setup_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        getResourceNameBytes in interface BillingSetupOrBuilder
        Returns:
        The bytes for resourceName.
      • setResourceName

        public BillingSetup.Builder setResourceName​(java.lang.String value)
         Immutable. The resource name of the billing setup.
         BillingSetup resource names have the form:
         `customers/{customer_id}/billingSetups/{billing_setup_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The resourceName to set.
        Returns:
        This builder for chaining.
      • clearResourceName

        public BillingSetup.Builder clearResourceName()
         Immutable. The resource name of the billing setup.
         BillingSetup resource names have the form:
         `customers/{customer_id}/billingSetups/{billing_setup_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setResourceNameBytes

        public BillingSetup.Builder setResourceNameBytes​(com.google.protobuf.ByteString value)
         Immutable. The resource name of the billing setup.
         BillingSetup resource names have the form:
         `customers/{customer_id}/billingSetups/{billing_setup_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for resourceName to set.
        Returns:
        This builder for chaining.
      • hasId

        public boolean hasId()
         Output only. The ID of the billing setup.
         
        optional int64 id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasId in interface BillingSetupOrBuilder
        Returns:
        Whether the id field is set.
      • getId

        public long getId()
         Output only. The ID of the billing setup.
         
        optional int64 id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getId in interface BillingSetupOrBuilder
        Returns:
        The id.
      • setId

        public BillingSetup.Builder setId​(long value)
         Output only. The ID of the billing setup.
         
        optional int64 id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • clearId

        public BillingSetup.Builder clearId()
         Output only. The ID of the billing setup.
         
        optional int64 id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getStatusValue

        public int getStatusValue()
         Output only. The status of the billing setup.
         
        .google.ads.googleads.v10.enums.BillingSetupStatusEnum.BillingSetupStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStatusValue in interface BillingSetupOrBuilder
        Returns:
        The enum numeric value on the wire for status.
      • setStatusValue

        public BillingSetup.Builder setStatusValue​(int value)
         Output only. The status of the billing setup.
         
        .google.ads.googleads.v10.enums.BillingSetupStatusEnum.BillingSetupStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for status to set.
        Returns:
        This builder for chaining.
      • setStatus

        public BillingSetup.Builder setStatus​(BillingSetupStatusEnum.BillingSetupStatus value)
         Output only. The status of the billing setup.
         
        .google.ads.googleads.v10.enums.BillingSetupStatusEnum.BillingSetupStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The status to set.
        Returns:
        This builder for chaining.
      • clearStatus

        public BillingSetup.Builder clearStatus()
         Output only. The status of the billing setup.
         
        .google.ads.googleads.v10.enums.BillingSetupStatusEnum.BillingSetupStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • hasPaymentsAccount

        public boolean hasPaymentsAccount()
         Immutable. The resource name of the payments account associated with this billing
         setup. Payments resource names have the form:
         `customers/{customer_id}/paymentsAccounts/{payments_account_id}`
         When setting up billing, this is used to signup with an existing payments
         account (and then payments_account_info should not be set).
         When getting a billing setup, this and payments_account_info will be
         populated.
         
        optional string payments_account = 18 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        hasPaymentsAccount in interface BillingSetupOrBuilder
        Returns:
        Whether the paymentsAccount field is set.
      • getPaymentsAccount

        public java.lang.String getPaymentsAccount()
         Immutable. The resource name of the payments account associated with this billing
         setup. Payments resource names have the form:
         `customers/{customer_id}/paymentsAccounts/{payments_account_id}`
         When setting up billing, this is used to signup with an existing payments
         account (and then payments_account_info should not be set).
         When getting a billing setup, this and payments_account_info will be
         populated.
         
        optional string payments_account = 18 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        getPaymentsAccount in interface BillingSetupOrBuilder
        Returns:
        The paymentsAccount.
      • getPaymentsAccountBytes

        public com.google.protobuf.ByteString getPaymentsAccountBytes()
         Immutable. The resource name of the payments account associated with this billing
         setup. Payments resource names have the form:
         `customers/{customer_id}/paymentsAccounts/{payments_account_id}`
         When setting up billing, this is used to signup with an existing payments
         account (and then payments_account_info should not be set).
         When getting a billing setup, this and payments_account_info will be
         populated.
         
        optional string payments_account = 18 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        getPaymentsAccountBytes in interface BillingSetupOrBuilder
        Returns:
        The bytes for paymentsAccount.
      • setPaymentsAccount

        public BillingSetup.Builder setPaymentsAccount​(java.lang.String value)
         Immutable. The resource name of the payments account associated with this billing
         setup. Payments resource names have the form:
         `customers/{customer_id}/paymentsAccounts/{payments_account_id}`
         When setting up billing, this is used to signup with an existing payments
         account (and then payments_account_info should not be set).
         When getting a billing setup, this and payments_account_info will be
         populated.
         
        optional string payments_account = 18 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The paymentsAccount to set.
        Returns:
        This builder for chaining.
      • clearPaymentsAccount

        public BillingSetup.Builder clearPaymentsAccount()
         Immutable. The resource name of the payments account associated with this billing
         setup. Payments resource names have the form:
         `customers/{customer_id}/paymentsAccounts/{payments_account_id}`
         When setting up billing, this is used to signup with an existing payments
         account (and then payments_account_info should not be set).
         When getting a billing setup, this and payments_account_info will be
         populated.
         
        optional string payments_account = 18 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setPaymentsAccountBytes

        public BillingSetup.Builder setPaymentsAccountBytes​(com.google.protobuf.ByteString value)
         Immutable. The resource name of the payments account associated with this billing
         setup. Payments resource names have the form:
         `customers/{customer_id}/paymentsAccounts/{payments_account_id}`
         When setting up billing, this is used to signup with an existing payments
         account (and then payments_account_info should not be set).
         When getting a billing setup, this and payments_account_info will be
         populated.
         
        optional string payments_account = 18 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for paymentsAccount to set.
        Returns:
        This builder for chaining.
      • hasPaymentsAccountInfo

        public boolean hasPaymentsAccountInfo()
         Immutable. The payments account information associated with this billing setup.
         When setting up billing, this is used to signup with a new payments account
         (and then payments_account should not be set).
         When getting a billing setup, this and payments_account will be
         populated.
         
        .google.ads.googleads.v10.resources.BillingSetup.PaymentsAccountInfo payments_account_info = 12 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        hasPaymentsAccountInfo in interface BillingSetupOrBuilder
        Returns:
        Whether the paymentsAccountInfo field is set.
      • getPaymentsAccountInfo

        public BillingSetup.PaymentsAccountInfo getPaymentsAccountInfo()
         Immutable. The payments account information associated with this billing setup.
         When setting up billing, this is used to signup with a new payments account
         (and then payments_account should not be set).
         When getting a billing setup, this and payments_account will be
         populated.
         
        .google.ads.googleads.v10.resources.BillingSetup.PaymentsAccountInfo payments_account_info = 12 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getPaymentsAccountInfo in interface BillingSetupOrBuilder
        Returns:
        The paymentsAccountInfo.
      • setPaymentsAccountInfo

        public BillingSetup.Builder setPaymentsAccountInfo​(BillingSetup.PaymentsAccountInfo value)
         Immutable. The payments account information associated with this billing setup.
         When setting up billing, this is used to signup with a new payments account
         (and then payments_account should not be set).
         When getting a billing setup, this and payments_account will be
         populated.
         
        .google.ads.googleads.v10.resources.BillingSetup.PaymentsAccountInfo payments_account_info = 12 [(.google.api.field_behavior) = IMMUTABLE];
      • setPaymentsAccountInfo

        public BillingSetup.Builder setPaymentsAccountInfo​(BillingSetup.PaymentsAccountInfo.Builder builderForValue)
         Immutable. The payments account information associated with this billing setup.
         When setting up billing, this is used to signup with a new payments account
         (and then payments_account should not be set).
         When getting a billing setup, this and payments_account will be
         populated.
         
        .google.ads.googleads.v10.resources.BillingSetup.PaymentsAccountInfo payments_account_info = 12 [(.google.api.field_behavior) = IMMUTABLE];
      • mergePaymentsAccountInfo

        public BillingSetup.Builder mergePaymentsAccountInfo​(BillingSetup.PaymentsAccountInfo value)
         Immutable. The payments account information associated with this billing setup.
         When setting up billing, this is used to signup with a new payments account
         (and then payments_account should not be set).
         When getting a billing setup, this and payments_account will be
         populated.
         
        .google.ads.googleads.v10.resources.BillingSetup.PaymentsAccountInfo payments_account_info = 12 [(.google.api.field_behavior) = IMMUTABLE];
      • clearPaymentsAccountInfo

        public BillingSetup.Builder clearPaymentsAccountInfo()
         Immutable. The payments account information associated with this billing setup.
         When setting up billing, this is used to signup with a new payments account
         (and then payments_account should not be set).
         When getting a billing setup, this and payments_account will be
         populated.
         
        .google.ads.googleads.v10.resources.BillingSetup.PaymentsAccountInfo payments_account_info = 12 [(.google.api.field_behavior) = IMMUTABLE];
      • getPaymentsAccountInfoBuilder

        public BillingSetup.PaymentsAccountInfo.Builder getPaymentsAccountInfoBuilder()
         Immutable. The payments account information associated with this billing setup.
         When setting up billing, this is used to signup with a new payments account
         (and then payments_account should not be set).
         When getting a billing setup, this and payments_account will be
         populated.
         
        .google.ads.googleads.v10.resources.BillingSetup.PaymentsAccountInfo payments_account_info = 12 [(.google.api.field_behavior) = IMMUTABLE];
      • getPaymentsAccountInfoOrBuilder

        public BillingSetup.PaymentsAccountInfoOrBuilder getPaymentsAccountInfoOrBuilder()
         Immutable. The payments account information associated with this billing setup.
         When setting up billing, this is used to signup with a new payments account
         (and then payments_account should not be set).
         When getting a billing setup, this and payments_account will be
         populated.
         
        .google.ads.googleads.v10.resources.BillingSetup.PaymentsAccountInfo payments_account_info = 12 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getPaymentsAccountInfoOrBuilder in interface BillingSetupOrBuilder
      • hasStartDateTime

        public boolean hasStartDateTime()
         Immutable. The start date time in yyyy-MM-dd or yyyy-MM-dd HH:mm:ss format. Only a
         future time is allowed.
         
        string start_date_time = 16 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        hasStartDateTime in interface BillingSetupOrBuilder
        Returns:
        Whether the startDateTime field is set.
      • getStartDateTime

        public java.lang.String getStartDateTime()
         Immutable. The start date time in yyyy-MM-dd or yyyy-MM-dd HH:mm:ss format. Only a
         future time is allowed.
         
        string start_date_time = 16 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getStartDateTime in interface BillingSetupOrBuilder
        Returns:
        The startDateTime.
      • getStartDateTimeBytes

        public com.google.protobuf.ByteString getStartDateTimeBytes()
         Immutable. The start date time in yyyy-MM-dd or yyyy-MM-dd HH:mm:ss format. Only a
         future time is allowed.
         
        string start_date_time = 16 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getStartDateTimeBytes in interface BillingSetupOrBuilder
        Returns:
        The bytes for startDateTime.
      • setStartDateTime

        public BillingSetup.Builder setStartDateTime​(java.lang.String value)
         Immutable. The start date time in yyyy-MM-dd or yyyy-MM-dd HH:mm:ss format. Only a
         future time is allowed.
         
        string start_date_time = 16 [(.google.api.field_behavior) = IMMUTABLE];
        Parameters:
        value - The startDateTime to set.
        Returns:
        This builder for chaining.
      • clearStartDateTime

        public BillingSetup.Builder clearStartDateTime()
         Immutable. The start date time in yyyy-MM-dd or yyyy-MM-dd HH:mm:ss format. Only a
         future time is allowed.
         
        string start_date_time = 16 [(.google.api.field_behavior) = IMMUTABLE];
        Returns:
        This builder for chaining.
      • setStartDateTimeBytes

        public BillingSetup.Builder setStartDateTimeBytes​(com.google.protobuf.ByteString value)
         Immutable. The start date time in yyyy-MM-dd or yyyy-MM-dd HH:mm:ss format. Only a
         future time is allowed.
         
        string start_date_time = 16 [(.google.api.field_behavior) = IMMUTABLE];
        Parameters:
        value - The bytes for startDateTime to set.
        Returns:
        This builder for chaining.
      • hasStartTimeType

        public boolean hasStartTimeType()
         Immutable. The start time as a type. Only NOW is allowed.
         
        .google.ads.googleads.v10.enums.TimeTypeEnum.TimeType start_time_type = 10 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        hasStartTimeType in interface BillingSetupOrBuilder
        Returns:
        Whether the startTimeType field is set.
      • getStartTimeTypeValue

        public int getStartTimeTypeValue()
         Immutable. The start time as a type. Only NOW is allowed.
         
        .google.ads.googleads.v10.enums.TimeTypeEnum.TimeType start_time_type = 10 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getStartTimeTypeValue in interface BillingSetupOrBuilder
        Returns:
        The enum numeric value on the wire for startTimeType.
      • setStartTimeTypeValue

        public BillingSetup.Builder setStartTimeTypeValue​(int value)
         Immutable. The start time as a type. Only NOW is allowed.
         
        .google.ads.googleads.v10.enums.TimeTypeEnum.TimeType start_time_type = 10 [(.google.api.field_behavior) = IMMUTABLE];
        Parameters:
        value - The enum numeric value on the wire for startTimeType to set.
        Returns:
        This builder for chaining.
      • getStartTimeType

        public TimeTypeEnum.TimeType getStartTimeType()
         Immutable. The start time as a type. Only NOW is allowed.
         
        .google.ads.googleads.v10.enums.TimeTypeEnum.TimeType start_time_type = 10 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getStartTimeType in interface BillingSetupOrBuilder
        Returns:
        The startTimeType.
      • setStartTimeType

        public BillingSetup.Builder setStartTimeType​(TimeTypeEnum.TimeType value)
         Immutable. The start time as a type. Only NOW is allowed.
         
        .google.ads.googleads.v10.enums.TimeTypeEnum.TimeType start_time_type = 10 [(.google.api.field_behavior) = IMMUTABLE];
        Parameters:
        value - The startTimeType to set.
        Returns:
        This builder for chaining.
      • clearStartTimeType

        public BillingSetup.Builder clearStartTimeType()
         Immutable. The start time as a type. Only NOW is allowed.
         
        .google.ads.googleads.v10.enums.TimeTypeEnum.TimeType start_time_type = 10 [(.google.api.field_behavior) = IMMUTABLE];
        Returns:
        This builder for chaining.
      • hasEndDateTime

        public boolean hasEndDateTime()
         Output only. The end date time in yyyy-MM-dd or yyyy-MM-dd HH:mm:ss format.
         
        string end_date_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasEndDateTime in interface BillingSetupOrBuilder
        Returns:
        Whether the endDateTime field is set.
      • getEndDateTime

        public java.lang.String getEndDateTime()
         Output only. The end date time in yyyy-MM-dd or yyyy-MM-dd HH:mm:ss format.
         
        string end_date_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEndDateTime in interface BillingSetupOrBuilder
        Returns:
        The endDateTime.
      • getEndDateTimeBytes

        public com.google.protobuf.ByteString getEndDateTimeBytes()
         Output only. The end date time in yyyy-MM-dd or yyyy-MM-dd HH:mm:ss format.
         
        string end_date_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEndDateTimeBytes in interface BillingSetupOrBuilder
        Returns:
        The bytes for endDateTime.
      • setEndDateTime

        public BillingSetup.Builder setEndDateTime​(java.lang.String value)
         Output only. The end date time in yyyy-MM-dd or yyyy-MM-dd HH:mm:ss format.
         
        string end_date_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The endDateTime to set.
        Returns:
        This builder for chaining.
      • clearEndDateTime

        public BillingSetup.Builder clearEndDateTime()
         Output only. The end date time in yyyy-MM-dd or yyyy-MM-dd HH:mm:ss format.
         
        string end_date_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setEndDateTimeBytes

        public BillingSetup.Builder setEndDateTimeBytes​(com.google.protobuf.ByteString value)
         Output only. The end date time in yyyy-MM-dd or yyyy-MM-dd HH:mm:ss format.
         
        string end_date_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for endDateTime to set.
        Returns:
        This builder for chaining.
      • hasEndTimeType

        public boolean hasEndTimeType()
         Output only. The end time as a type.  The only possible value is FOREVER.
         
        .google.ads.googleads.v10.enums.TimeTypeEnum.TimeType end_time_type = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasEndTimeType in interface BillingSetupOrBuilder
        Returns:
        Whether the endTimeType field is set.
      • getEndTimeTypeValue

        public int getEndTimeTypeValue()
         Output only. The end time as a type.  The only possible value is FOREVER.
         
        .google.ads.googleads.v10.enums.TimeTypeEnum.TimeType end_time_type = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEndTimeTypeValue in interface BillingSetupOrBuilder
        Returns:
        The enum numeric value on the wire for endTimeType.
      • setEndTimeTypeValue

        public BillingSetup.Builder setEndTimeTypeValue​(int value)
         Output only. The end time as a type.  The only possible value is FOREVER.
         
        .google.ads.googleads.v10.enums.TimeTypeEnum.TimeType end_time_type = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for endTimeType to set.
        Returns:
        This builder for chaining.
      • getEndTimeType

        public TimeTypeEnum.TimeType getEndTimeType()
         Output only. The end time as a type.  The only possible value is FOREVER.
         
        .google.ads.googleads.v10.enums.TimeTypeEnum.TimeType end_time_type = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEndTimeType in interface BillingSetupOrBuilder
        Returns:
        The endTimeType.
      • setEndTimeType

        public BillingSetup.Builder setEndTimeType​(TimeTypeEnum.TimeType value)
         Output only. The end time as a type.  The only possible value is FOREVER.
         
        .google.ads.googleads.v10.enums.TimeTypeEnum.TimeType end_time_type = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The endTimeType to set.
        Returns:
        This builder for chaining.
      • clearEndTimeType

        public BillingSetup.Builder clearEndTimeType()
         Output only. The end time as a type.  The only possible value is FOREVER.
         
        .google.ads.googleads.v10.enums.TimeTypeEnum.TimeType end_time_type = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final BillingSetup.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<BillingSetup.Builder>
      • mergeUnknownFields

        public final BillingSetup.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<BillingSetup.Builder>