Class Preferences.Builder

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

    public static final class Preferences.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Preferences.Builder>
    implements PreferencesOrBuilder
     Set of preferences about the planned mix.
     
    Protobuf type google.ads.googleads.v10.services.Preferences
    • 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<Preferences.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

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

        public boolean hasIsSkippable()
         True if ad skippable.
         If not set, default is any value.
         
        optional bool is_skippable = 6;
        Specified by:
        hasIsSkippable in interface PreferencesOrBuilder
        Returns:
        Whether the isSkippable field is set.
      • getIsSkippable

        public boolean getIsSkippable()
         True if ad skippable.
         If not set, default is any value.
         
        optional bool is_skippable = 6;
        Specified by:
        getIsSkippable in interface PreferencesOrBuilder
        Returns:
        The isSkippable.
      • setIsSkippable

        public Preferences.Builder setIsSkippable​(boolean value)
         True if ad skippable.
         If not set, default is any value.
         
        optional bool is_skippable = 6;
        Parameters:
        value - The isSkippable to set.
        Returns:
        This builder for chaining.
      • clearIsSkippable

        public Preferences.Builder clearIsSkippable()
         True if ad skippable.
         If not set, default is any value.
         
        optional bool is_skippable = 6;
        Returns:
        This builder for chaining.
      • hasStartsWithSound

        public boolean hasStartsWithSound()
         True if ad start with sound.
         If not set, default is any value.
         
        optional bool starts_with_sound = 7;
        Specified by:
        hasStartsWithSound in interface PreferencesOrBuilder
        Returns:
        Whether the startsWithSound field is set.
      • getStartsWithSound

        public boolean getStartsWithSound()
         True if ad start with sound.
         If not set, default is any value.
         
        optional bool starts_with_sound = 7;
        Specified by:
        getStartsWithSound in interface PreferencesOrBuilder
        Returns:
        The startsWithSound.
      • setStartsWithSound

        public Preferences.Builder setStartsWithSound​(boolean value)
         True if ad start with sound.
         If not set, default is any value.
         
        optional bool starts_with_sound = 7;
        Parameters:
        value - The startsWithSound to set.
        Returns:
        This builder for chaining.
      • clearStartsWithSound

        public Preferences.Builder clearStartsWithSound()
         True if ad start with sound.
         If not set, default is any value.
         
        optional bool starts_with_sound = 7;
        Returns:
        This builder for chaining.
      • getAdLengthValue

        public int getAdLengthValue()
         The length of the ad.
         If not set, default is any value.
         
        .google.ads.googleads.v10.enums.ReachPlanAdLengthEnum.ReachPlanAdLength ad_length = 3;
        Specified by:
        getAdLengthValue in interface PreferencesOrBuilder
        Returns:
        The enum numeric value on the wire for adLength.
      • setAdLengthValue

        public Preferences.Builder setAdLengthValue​(int value)
         The length of the ad.
         If not set, default is any value.
         
        .google.ads.googleads.v10.enums.ReachPlanAdLengthEnum.ReachPlanAdLength ad_length = 3;
        Parameters:
        value - The enum numeric value on the wire for adLength to set.
        Returns:
        This builder for chaining.
      • setAdLength

        public Preferences.Builder setAdLength​(ReachPlanAdLengthEnum.ReachPlanAdLength value)
         The length of the ad.
         If not set, default is any value.
         
        .google.ads.googleads.v10.enums.ReachPlanAdLengthEnum.ReachPlanAdLength ad_length = 3;
        Parameters:
        value - The adLength to set.
        Returns:
        This builder for chaining.
      • clearAdLength

        public Preferences.Builder clearAdLength()
         The length of the ad.
         If not set, default is any value.
         
        .google.ads.googleads.v10.enums.ReachPlanAdLengthEnum.ReachPlanAdLength ad_length = 3;
        Returns:
        This builder for chaining.
      • hasTopContentOnly

        public boolean hasTopContentOnly()
         True if ad will only show on the top content.
         If not set, default is false.
         
        optional bool top_content_only = 8;
        Specified by:
        hasTopContentOnly in interface PreferencesOrBuilder
        Returns:
        Whether the topContentOnly field is set.
      • getTopContentOnly

        public boolean getTopContentOnly()
         True if ad will only show on the top content.
         If not set, default is false.
         
        optional bool top_content_only = 8;
        Specified by:
        getTopContentOnly in interface PreferencesOrBuilder
        Returns:
        The topContentOnly.
      • setTopContentOnly

        public Preferences.Builder setTopContentOnly​(boolean value)
         True if ad will only show on the top content.
         If not set, default is false.
         
        optional bool top_content_only = 8;
        Parameters:
        value - The topContentOnly to set.
        Returns:
        This builder for chaining.
      • clearTopContentOnly

        public Preferences.Builder clearTopContentOnly()
         True if ad will only show on the top content.
         If not set, default is false.
         
        optional bool top_content_only = 8;
        Returns:
        This builder for chaining.
      • hasHasGuaranteedPrice

        public boolean hasHasGuaranteedPrice()
         True if the price guaranteed. The cost of serving the ad is agreed upfront
         and not subject to an auction.
         If not set, default is any value.
         
        optional bool has_guaranteed_price = 9;
        Specified by:
        hasHasGuaranteedPrice in interface PreferencesOrBuilder
        Returns:
        Whether the hasGuaranteedPrice field is set.
      • getHasGuaranteedPrice

        public boolean getHasGuaranteedPrice()
         True if the price guaranteed. The cost of serving the ad is agreed upfront
         and not subject to an auction.
         If not set, default is any value.
         
        optional bool has_guaranteed_price = 9;
        Specified by:
        getHasGuaranteedPrice in interface PreferencesOrBuilder
        Returns:
        The hasGuaranteedPrice.
      • setHasGuaranteedPrice

        public Preferences.Builder setHasGuaranteedPrice​(boolean value)
         True if the price guaranteed. The cost of serving the ad is agreed upfront
         and not subject to an auction.
         If not set, default is any value.
         
        optional bool has_guaranteed_price = 9;
        Parameters:
        value - The hasGuaranteedPrice to set.
        Returns:
        This builder for chaining.
      • clearHasGuaranteedPrice

        public Preferences.Builder clearHasGuaranteedPrice()
         True if the price guaranteed. The cost of serving the ad is agreed upfront
         and not subject to an auction.
         If not set, default is any value.
         
        optional bool has_guaranteed_price = 9;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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