Class TargetImpressionShare.Builder

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

    public static final class TargetImpressionShare.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<TargetImpressionShare.Builder>
    implements TargetImpressionShareOrBuilder
     An automated bidding strategy that sets bids so that a certain percentage of
     search ads are shown at the top of the first page (or other targeted
     location).
     
    Protobuf type google.ads.googleads.v10.common.TargetImpressionShare
    • 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<TargetImpressionShare.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public int getLocationValue()
         The targeted location on the search results page.
         
        .google.ads.googleads.v10.enums.TargetImpressionShareLocationEnum.TargetImpressionShareLocation location = 1;
        Specified by:
        getLocationValue in interface TargetImpressionShareOrBuilder
        Returns:
        The enum numeric value on the wire for location.
      • setLocationValue

        public TargetImpressionShare.Builder setLocationValue​(int value)
         The targeted location on the search results page.
         
        .google.ads.googleads.v10.enums.TargetImpressionShareLocationEnum.TargetImpressionShareLocation location = 1;
        Parameters:
        value - The enum numeric value on the wire for location to set.
        Returns:
        This builder for chaining.
      • clearLocation

        public TargetImpressionShare.Builder clearLocation()
         The targeted location on the search results page.
         
        .google.ads.googleads.v10.enums.TargetImpressionShareLocationEnum.TargetImpressionShareLocation location = 1;
        Returns:
        This builder for chaining.
      • hasLocationFractionMicros

        public boolean hasLocationFractionMicros()
         The desired fraction of ads to be shown in the targeted location in micros.
         E.g. 1% equals 10,000.
         
        optional int64 location_fraction_micros = 4;
        Specified by:
        hasLocationFractionMicros in interface TargetImpressionShareOrBuilder
        Returns:
        Whether the locationFractionMicros field is set.
      • getLocationFractionMicros

        public long getLocationFractionMicros()
         The desired fraction of ads to be shown in the targeted location in micros.
         E.g. 1% equals 10,000.
         
        optional int64 location_fraction_micros = 4;
        Specified by:
        getLocationFractionMicros in interface TargetImpressionShareOrBuilder
        Returns:
        The locationFractionMicros.
      • setLocationFractionMicros

        public TargetImpressionShare.Builder setLocationFractionMicros​(long value)
         The desired fraction of ads to be shown in the targeted location in micros.
         E.g. 1% equals 10,000.
         
        optional int64 location_fraction_micros = 4;
        Parameters:
        value - The locationFractionMicros to set.
        Returns:
        This builder for chaining.
      • clearLocationFractionMicros

        public TargetImpressionShare.Builder clearLocationFractionMicros()
         The desired fraction of ads to be shown in the targeted location in micros.
         E.g. 1% equals 10,000.
         
        optional int64 location_fraction_micros = 4;
        Returns:
        This builder for chaining.
      • hasCpcBidCeilingMicros

        public boolean hasCpcBidCeilingMicros()
         The highest CPC bid the automated bidding system is permitted to specify.
         This is a required field entered by the advertiser that sets the ceiling
         and specified in local micros.
         
        optional int64 cpc_bid_ceiling_micros = 5;
        Specified by:
        hasCpcBidCeilingMicros in interface TargetImpressionShareOrBuilder
        Returns:
        Whether the cpcBidCeilingMicros field is set.
      • getCpcBidCeilingMicros

        public long getCpcBidCeilingMicros()
         The highest CPC bid the automated bidding system is permitted to specify.
         This is a required field entered by the advertiser that sets the ceiling
         and specified in local micros.
         
        optional int64 cpc_bid_ceiling_micros = 5;
        Specified by:
        getCpcBidCeilingMicros in interface TargetImpressionShareOrBuilder
        Returns:
        The cpcBidCeilingMicros.
      • setCpcBidCeilingMicros

        public TargetImpressionShare.Builder setCpcBidCeilingMicros​(long value)
         The highest CPC bid the automated bidding system is permitted to specify.
         This is a required field entered by the advertiser that sets the ceiling
         and specified in local micros.
         
        optional int64 cpc_bid_ceiling_micros = 5;
        Parameters:
        value - The cpcBidCeilingMicros to set.
        Returns:
        This builder for chaining.
      • clearCpcBidCeilingMicros

        public TargetImpressionShare.Builder clearCpcBidCeilingMicros()
         The highest CPC bid the automated bidding system is permitted to specify.
         This is a required field entered by the advertiser that sets the ceiling
         and specified in local micros.
         
        optional int64 cpc_bid_ceiling_micros = 5;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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