Class ProductAllocation.Builder

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

    public static final class ProductAllocation.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ProductAllocation.Builder>
    implements ProductAllocationOrBuilder
     An allocation of a part of the budget on a given product.
     
    Protobuf type google.ads.googleads.v10.services.ProductAllocation
    • 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<ProductAllocation.Builder>
      • clear

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

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

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

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

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

        public ProductAllocation.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<ProductAllocation.Builder>
      • clearField

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

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

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

        public ProductAllocation.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<ProductAllocation.Builder>
      • mergeFrom

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

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

        public ProductAllocation.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<ProductAllocation.Builder>
        Throws:
        java.io.IOException
      • hasPlannableProductCode

        public boolean hasPlannableProductCode()
         Selected product for planning. The product codes returned are within the
         set of the ones returned by ListPlannableProducts when using the same
         location ID.
         
        optional string plannable_product_code = 3;
        Specified by:
        hasPlannableProductCode in interface ProductAllocationOrBuilder
        Returns:
        Whether the plannableProductCode field is set.
      • getPlannableProductCode

        public java.lang.String getPlannableProductCode()
         Selected product for planning. The product codes returned are within the
         set of the ones returned by ListPlannableProducts when using the same
         location ID.
         
        optional string plannable_product_code = 3;
        Specified by:
        getPlannableProductCode in interface ProductAllocationOrBuilder
        Returns:
        The plannableProductCode.
      • getPlannableProductCodeBytes

        public com.google.protobuf.ByteString getPlannableProductCodeBytes()
         Selected product for planning. The product codes returned are within the
         set of the ones returned by ListPlannableProducts when using the same
         location ID.
         
        optional string plannable_product_code = 3;
        Specified by:
        getPlannableProductCodeBytes in interface ProductAllocationOrBuilder
        Returns:
        The bytes for plannableProductCode.
      • setPlannableProductCode

        public ProductAllocation.Builder setPlannableProductCode​(java.lang.String value)
         Selected product for planning. The product codes returned are within the
         set of the ones returned by ListPlannableProducts when using the same
         location ID.
         
        optional string plannable_product_code = 3;
        Parameters:
        value - The plannableProductCode to set.
        Returns:
        This builder for chaining.
      • clearPlannableProductCode

        public ProductAllocation.Builder clearPlannableProductCode()
         Selected product for planning. The product codes returned are within the
         set of the ones returned by ListPlannableProducts when using the same
         location ID.
         
        optional string plannable_product_code = 3;
        Returns:
        This builder for chaining.
      • setPlannableProductCodeBytes

        public ProductAllocation.Builder setPlannableProductCodeBytes​(com.google.protobuf.ByteString value)
         Selected product for planning. The product codes returned are within the
         set of the ones returned by ListPlannableProducts when using the same
         location ID.
         
        optional string plannable_product_code = 3;
        Parameters:
        value - The bytes for plannableProductCode to set.
        Returns:
        This builder for chaining.
      • hasBudgetMicros

        public boolean hasBudgetMicros()
         The value to be allocated for the suggested product in requested currency.
         Amount in micros. One million is equivalent to one unit.
         
        optional int64 budget_micros = 4;
        Specified by:
        hasBudgetMicros in interface ProductAllocationOrBuilder
        Returns:
        Whether the budgetMicros field is set.
      • getBudgetMicros

        public long getBudgetMicros()
         The value to be allocated for the suggested product in requested currency.
         Amount in micros. One million is equivalent to one unit.
         
        optional int64 budget_micros = 4;
        Specified by:
        getBudgetMicros in interface ProductAllocationOrBuilder
        Returns:
        The budgetMicros.
      • setBudgetMicros

        public ProductAllocation.Builder setBudgetMicros​(long value)
         The value to be allocated for the suggested product in requested currency.
         Amount in micros. One million is equivalent to one unit.
         
        optional int64 budget_micros = 4;
        Parameters:
        value - The budgetMicros to set.
        Returns:
        This builder for chaining.
      • clearBudgetMicros

        public ProductAllocation.Builder clearBudgetMicros()
         The value to be allocated for the suggested product in requested currency.
         Amount in micros. One million is equivalent to one unit.
         
        optional int64 budget_micros = 4;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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