Class TargetRoas.Builder

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

    public static final class TargetRoas.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<TargetRoas.Builder>
    implements TargetRoasOrBuilder
     An automated bidding strategy that helps you maximize revenue while
     averaging a specific target return on ad spend (ROAS).
     
    Protobuf type google.ads.googleads.v10.common.TargetRoas
    • 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<TargetRoas.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

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

        public boolean hasTargetRoas()
         Required. The desired revenue (based on conversion data) per unit of spend.
         Value must be between 0.01 and 1000.0, inclusive.
         
        optional double target_roas = 4;
        Specified by:
        hasTargetRoas in interface TargetRoasOrBuilder
        Returns:
        Whether the targetRoas field is set.
      • getTargetRoas

        public double getTargetRoas()
         Required. The desired revenue (based on conversion data) per unit of spend.
         Value must be between 0.01 and 1000.0, inclusive.
         
        optional double target_roas = 4;
        Specified by:
        getTargetRoas in interface TargetRoasOrBuilder
        Returns:
        The targetRoas.
      • setTargetRoas

        public TargetRoas.Builder setTargetRoas​(double value)
         Required. The desired revenue (based on conversion data) per unit of spend.
         Value must be between 0.01 and 1000.0, inclusive.
         
        optional double target_roas = 4;
        Parameters:
        value - The targetRoas to set.
        Returns:
        This builder for chaining.
      • clearTargetRoas

        public TargetRoas.Builder clearTargetRoas()
         Required. The desired revenue (based on conversion data) per unit of spend.
         Value must be between 0.01 and 1000.0, inclusive.
         
        optional double target_roas = 4;
        Returns:
        This builder for chaining.
      • hasCpcBidCeilingMicros

        public boolean hasCpcBidCeilingMicros()
         Maximum bid limit that can be set by the bid strategy.
         The limit applies to all keywords managed by the strategy.
         This should only be set for portfolio bid strategies.
         
        optional int64 cpc_bid_ceiling_micros = 5;
        Specified by:
        hasCpcBidCeilingMicros in interface TargetRoasOrBuilder
        Returns:
        Whether the cpcBidCeilingMicros field is set.
      • getCpcBidCeilingMicros

        public long getCpcBidCeilingMicros()
         Maximum bid limit that can be set by the bid strategy.
         The limit applies to all keywords managed by the strategy.
         This should only be set for portfolio bid strategies.
         
        optional int64 cpc_bid_ceiling_micros = 5;
        Specified by:
        getCpcBidCeilingMicros in interface TargetRoasOrBuilder
        Returns:
        The cpcBidCeilingMicros.
      • setCpcBidCeilingMicros

        public TargetRoas.Builder setCpcBidCeilingMicros​(long value)
         Maximum bid limit that can be set by the bid strategy.
         The limit applies to all keywords managed by the strategy.
         This should only be set for portfolio bid strategies.
         
        optional int64 cpc_bid_ceiling_micros = 5;
        Parameters:
        value - The cpcBidCeilingMicros to set.
        Returns:
        This builder for chaining.
      • clearCpcBidCeilingMicros

        public TargetRoas.Builder clearCpcBidCeilingMicros()
         Maximum bid limit that can be set by the bid strategy.
         The limit applies to all keywords managed by the strategy.
         This should only be set for portfolio bid strategies.
         
        optional int64 cpc_bid_ceiling_micros = 5;
        Returns:
        This builder for chaining.
      • hasCpcBidFloorMicros

        public boolean hasCpcBidFloorMicros()
         Minimum bid limit that can be set by the bid strategy.
         The limit applies to all keywords managed by the strategy.
         This should only be set for portfolio bid strategies.
         
        optional int64 cpc_bid_floor_micros = 6;
        Specified by:
        hasCpcBidFloorMicros in interface TargetRoasOrBuilder
        Returns:
        Whether the cpcBidFloorMicros field is set.
      • getCpcBidFloorMicros

        public long getCpcBidFloorMicros()
         Minimum bid limit that can be set by the bid strategy.
         The limit applies to all keywords managed by the strategy.
         This should only be set for portfolio bid strategies.
         
        optional int64 cpc_bid_floor_micros = 6;
        Specified by:
        getCpcBidFloorMicros in interface TargetRoasOrBuilder
        Returns:
        The cpcBidFloorMicros.
      • setCpcBidFloorMicros

        public TargetRoas.Builder setCpcBidFloorMicros​(long value)
         Minimum bid limit that can be set by the bid strategy.
         The limit applies to all keywords managed by the strategy.
         This should only be set for portfolio bid strategies.
         
        optional int64 cpc_bid_floor_micros = 6;
        Parameters:
        value - The cpcBidFloorMicros to set.
        Returns:
        This builder for chaining.
      • clearCpcBidFloorMicros

        public TargetRoas.Builder clearCpcBidFloorMicros()
         Minimum bid limit that can be set by the bid strategy.
         The limit applies to all keywords managed by the strategy.
         This should only be set for portfolio bid strategies.
         
        optional int64 cpc_bid_floor_micros = 6;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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