Class Recommendation.CampaignBudget.Builder

    • 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<Recommendation.CampaignBudget.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<Recommendation.CampaignBudget.Builder>
      • getDefaultInstanceForType

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

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

        public Recommendation.CampaignBudget buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • setRepeatedField

        public Recommendation.CampaignBudget.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<Recommendation.CampaignBudget.Builder>
      • addRepeatedField

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

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

        public Recommendation.CampaignBudget.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<Recommendation.CampaignBudget.Builder>
        Throws:
        java.io.IOException
      • getCurrentAmountMicros

        public long getCurrentAmountMicros()
         Output only. Current budget amount.
         
        int64 current_amount_micros = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCurrentAmountMicros in interface Recommendation.CampaignBudgetOrBuilder
        Returns:
        The currentAmountMicros.
      • setCurrentAmountMicros

        public Recommendation.CampaignBudget.Builder setCurrentAmountMicros​(long value)
         Output only. Current budget amount.
         
        int64 current_amount_micros = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The currentAmountMicros to set.
        Returns:
        This builder for chaining.
      • clearCurrentAmountMicros

        public Recommendation.CampaignBudget.Builder clearCurrentAmountMicros()
         Output only. Current budget amount.
         
        int64 current_amount_micros = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getRecommendedNewAmountMicros

        public long getRecommendedNewAmountMicros()
         Output only. Recommended budget amount.
         
        int64 recommended_new_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getRecommendedNewAmountMicros in interface Recommendation.CampaignBudgetOrBuilder
        Returns:
        The recommendedNewAmountMicros.
      • setRecommendedNewAmountMicros

        public Recommendation.CampaignBudget.Builder setRecommendedNewAmountMicros​(long value)
         Output only. Recommended budget amount.
         
        int64 recommended_new_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The recommendedNewAmountMicros to set.
        Returns:
        This builder for chaining.
      • clearRecommendedNewAmountMicros

        public Recommendation.CampaignBudget.Builder clearRecommendedNewAmountMicros()
         Output only. Recommended budget amount.
         
        int64 recommended_new_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getNewStartDate

        public java.lang.String getNewStartDate()
         Output only. The date when the new budget would start being used.
         This field will be set for the following recommendation types:
         FORECASTING_SET_TARGET_ROAS
         YYYY-MM-DD format, for example, 2018-04-17.
         
        string new_start_date = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNewStartDate in interface Recommendation.CampaignBudgetOrBuilder
        Returns:
        The newStartDate.
      • getNewStartDateBytes

        public com.google.protobuf.ByteString getNewStartDateBytes()
         Output only. The date when the new budget would start being used.
         This field will be set for the following recommendation types:
         FORECASTING_SET_TARGET_ROAS
         YYYY-MM-DD format, for example, 2018-04-17.
         
        string new_start_date = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNewStartDateBytes in interface Recommendation.CampaignBudgetOrBuilder
        Returns:
        The bytes for newStartDate.
      • setNewStartDate

        public Recommendation.CampaignBudget.Builder setNewStartDate​(java.lang.String value)
         Output only. The date when the new budget would start being used.
         This field will be set for the following recommendation types:
         FORECASTING_SET_TARGET_ROAS
         YYYY-MM-DD format, for example, 2018-04-17.
         
        string new_start_date = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The newStartDate to set.
        Returns:
        This builder for chaining.
      • clearNewStartDate

        public Recommendation.CampaignBudget.Builder clearNewStartDate()
         Output only. The date when the new budget would start being used.
         This field will be set for the following recommendation types:
         FORECASTING_SET_TARGET_ROAS
         YYYY-MM-DD format, for example, 2018-04-17.
         
        string new_start_date = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setNewStartDateBytes

        public Recommendation.CampaignBudget.Builder setNewStartDateBytes​(com.google.protobuf.ByteString value)
         Output only. The date when the new budget would start being used.
         This field will be set for the following recommendation types:
         FORECASTING_SET_TARGET_ROAS
         YYYY-MM-DD format, for example, 2018-04-17.
         
        string new_start_date = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for newStartDate to set.
        Returns:
        This builder for chaining.