Class CriterionCategoryChannelAvailability.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<CriterionCategoryChannelAvailability.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<CriterionCategoryChannelAvailability.Builder>
      • getDefaultInstanceForType

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

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

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

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

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

        public int getAvailabilityModeValue()
         Format of the channel availability. Can be ALL_CHANNELS (the rest of the
         fields will not be set), CHANNEL_TYPE (only advertising_channel_type type
         will be set, the category is available to all sub types under it) or
         CHANNEL_TYPE_AND_SUBTYPES (advertising_channel_type,
         advertising_channel_sub_type, and include_default_channel_sub_type will all
         be set).
         
        .google.ads.googleads.v13.enums.CriterionCategoryChannelAvailabilityModeEnum.CriterionCategoryChannelAvailabilityMode availability_mode = 1;
        Specified by:
        getAvailabilityModeValue in interface CriterionCategoryChannelAvailabilityOrBuilder
        Returns:
        The enum numeric value on the wire for availabilityMode.
      • setAvailabilityModeValue

        public CriterionCategoryChannelAvailability.Builder setAvailabilityModeValue​(int value)
         Format of the channel availability. Can be ALL_CHANNELS (the rest of the
         fields will not be set), CHANNEL_TYPE (only advertising_channel_type type
         will be set, the category is available to all sub types under it) or
         CHANNEL_TYPE_AND_SUBTYPES (advertising_channel_type,
         advertising_channel_sub_type, and include_default_channel_sub_type will all
         be set).
         
        .google.ads.googleads.v13.enums.CriterionCategoryChannelAvailabilityModeEnum.CriterionCategoryChannelAvailabilityMode availability_mode = 1;
        Parameters:
        value - The enum numeric value on the wire for availabilityMode to set.
        Returns:
        This builder for chaining.
      • getAvailabilityMode

        public CriterionCategoryChannelAvailabilityModeEnum.CriterionCategoryChannelAvailabilityMode getAvailabilityMode()
         Format of the channel availability. Can be ALL_CHANNELS (the rest of the
         fields will not be set), CHANNEL_TYPE (only advertising_channel_type type
         will be set, the category is available to all sub types under it) or
         CHANNEL_TYPE_AND_SUBTYPES (advertising_channel_type,
         advertising_channel_sub_type, and include_default_channel_sub_type will all
         be set).
         
        .google.ads.googleads.v13.enums.CriterionCategoryChannelAvailabilityModeEnum.CriterionCategoryChannelAvailabilityMode availability_mode = 1;
        Specified by:
        getAvailabilityMode in interface CriterionCategoryChannelAvailabilityOrBuilder
        Returns:
        The availabilityMode.
      • setAvailabilityMode

        public CriterionCategoryChannelAvailability.Builder setAvailabilityMode​(CriterionCategoryChannelAvailabilityModeEnum.CriterionCategoryChannelAvailabilityMode value)
         Format of the channel availability. Can be ALL_CHANNELS (the rest of the
         fields will not be set), CHANNEL_TYPE (only advertising_channel_type type
         will be set, the category is available to all sub types under it) or
         CHANNEL_TYPE_AND_SUBTYPES (advertising_channel_type,
         advertising_channel_sub_type, and include_default_channel_sub_type will all
         be set).
         
        .google.ads.googleads.v13.enums.CriterionCategoryChannelAvailabilityModeEnum.CriterionCategoryChannelAvailabilityMode availability_mode = 1;
        Parameters:
        value - The availabilityMode to set.
        Returns:
        This builder for chaining.
      • clearAvailabilityMode

        public CriterionCategoryChannelAvailability.Builder clearAvailabilityMode()
         Format of the channel availability. Can be ALL_CHANNELS (the rest of the
         fields will not be set), CHANNEL_TYPE (only advertising_channel_type type
         will be set, the category is available to all sub types under it) or
         CHANNEL_TYPE_AND_SUBTYPES (advertising_channel_type,
         advertising_channel_sub_type, and include_default_channel_sub_type will all
         be set).
         
        .google.ads.googleads.v13.enums.CriterionCategoryChannelAvailabilityModeEnum.CriterionCategoryChannelAvailabilityMode availability_mode = 1;
        Returns:
        This builder for chaining.
      • getAdvertisingChannelTypeValue

        public int getAdvertisingChannelTypeValue()
         Channel type the category is available to.
         
        .google.ads.googleads.v13.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 2;
        Specified by:
        getAdvertisingChannelTypeValue in interface CriterionCategoryChannelAvailabilityOrBuilder
        Returns:
        The enum numeric value on the wire for advertisingChannelType.
      • setAdvertisingChannelTypeValue

        public CriterionCategoryChannelAvailability.Builder setAdvertisingChannelTypeValue​(int value)
         Channel type the category is available to.
         
        .google.ads.googleads.v13.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 2;
        Parameters:
        value - The enum numeric value on the wire for advertisingChannelType to set.
        Returns:
        This builder for chaining.
      • clearAdvertisingChannelType

        public CriterionCategoryChannelAvailability.Builder clearAdvertisingChannelType()
         Channel type the category is available to.
         
        .google.ads.googleads.v13.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 2;
        Returns:
        This builder for chaining.
      • getAdvertisingChannelSubTypeCount

        public int getAdvertisingChannelSubTypeCount()
         Channel subtypes under the channel type the category is available to.
         
        repeated .google.ads.googleads.v13.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType advertising_channel_sub_type = 3;
        Specified by:
        getAdvertisingChannelSubTypeCount in interface CriterionCategoryChannelAvailabilityOrBuilder
        Returns:
        The count of advertisingChannelSubType.
      • setAdvertisingChannelSubType

        public CriterionCategoryChannelAvailability.Builder setAdvertisingChannelSubType​(int index,
                                                                                         AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType value)
         Channel subtypes under the channel type the category is available to.
         
        repeated .google.ads.googleads.v13.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType advertising_channel_sub_type = 3;
        Parameters:
        index - The index to set the value at.
        value - The advertisingChannelSubType to set.
        Returns:
        This builder for chaining.
      • addAllAdvertisingChannelSubType

        public CriterionCategoryChannelAvailability.Builder addAllAdvertisingChannelSubType​(java.lang.Iterable<? extends AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType> values)
         Channel subtypes under the channel type the category is available to.
         
        repeated .google.ads.googleads.v13.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType advertising_channel_sub_type = 3;
        Parameters:
        values - The advertisingChannelSubType to add.
        Returns:
        This builder for chaining.
      • clearAdvertisingChannelSubType

        public CriterionCategoryChannelAvailability.Builder clearAdvertisingChannelSubType()
         Channel subtypes under the channel type the category is available to.
         
        repeated .google.ads.googleads.v13.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType advertising_channel_sub_type = 3;
        Returns:
        This builder for chaining.
      • getAdvertisingChannelSubTypeValueList

        public java.util.List<java.lang.Integer> getAdvertisingChannelSubTypeValueList()
         Channel subtypes under the channel type the category is available to.
         
        repeated .google.ads.googleads.v13.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType advertising_channel_sub_type = 3;
        Specified by:
        getAdvertisingChannelSubTypeValueList in interface CriterionCategoryChannelAvailabilityOrBuilder
        Returns:
        A list containing the enum numeric values on the wire for advertisingChannelSubType.
      • getAdvertisingChannelSubTypeValue

        public int getAdvertisingChannelSubTypeValue​(int index)
         Channel subtypes under the channel type the category is available to.
         
        repeated .google.ads.googleads.v13.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType advertising_channel_sub_type = 3;
        Specified by:
        getAdvertisingChannelSubTypeValue in interface CriterionCategoryChannelAvailabilityOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The enum numeric value on the wire of advertisingChannelSubType at the given index.
      • setAdvertisingChannelSubTypeValue

        public CriterionCategoryChannelAvailability.Builder setAdvertisingChannelSubTypeValue​(int index,
                                                                                              int value)
         Channel subtypes under the channel type the category is available to.
         
        repeated .google.ads.googleads.v13.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType advertising_channel_sub_type = 3;
        Parameters:
        index - The index to set the value at.
        value - The enum numeric value on the wire for advertisingChannelSubType to set.
        Returns:
        This builder for chaining.
      • addAdvertisingChannelSubTypeValue

        public CriterionCategoryChannelAvailability.Builder addAdvertisingChannelSubTypeValue​(int value)
         Channel subtypes under the channel type the category is available to.
         
        repeated .google.ads.googleads.v13.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType advertising_channel_sub_type = 3;
        Parameters:
        value - The enum numeric value on the wire for advertisingChannelSubType to add.
        Returns:
        This builder for chaining.
      • addAllAdvertisingChannelSubTypeValue

        public CriterionCategoryChannelAvailability.Builder addAllAdvertisingChannelSubTypeValue​(java.lang.Iterable<java.lang.Integer> values)
         Channel subtypes under the channel type the category is available to.
         
        repeated .google.ads.googleads.v13.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType advertising_channel_sub_type = 3;
        Parameters:
        values - The enum numeric values on the wire for advertisingChannelSubType to add.
        Returns:
        This builder for chaining.
      • hasIncludeDefaultChannelSubType

        public boolean hasIncludeDefaultChannelSubType()
         Whether default channel sub type is included. For example,
         advertising_channel_type being DISPLAY and include_default_channel_sub_type
         being false means that the default display campaign where channel sub type
         is not set is not included in this availability configuration.
         
        optional bool include_default_channel_sub_type = 5;
        Specified by:
        hasIncludeDefaultChannelSubType in interface CriterionCategoryChannelAvailabilityOrBuilder
        Returns:
        Whether the includeDefaultChannelSubType field is set.
      • getIncludeDefaultChannelSubType

        public boolean getIncludeDefaultChannelSubType()
         Whether default channel sub type is included. For example,
         advertising_channel_type being DISPLAY and include_default_channel_sub_type
         being false means that the default display campaign where channel sub type
         is not set is not included in this availability configuration.
         
        optional bool include_default_channel_sub_type = 5;
        Specified by:
        getIncludeDefaultChannelSubType in interface CriterionCategoryChannelAvailabilityOrBuilder
        Returns:
        The includeDefaultChannelSubType.
      • setIncludeDefaultChannelSubType

        public CriterionCategoryChannelAvailability.Builder setIncludeDefaultChannelSubType​(boolean value)
         Whether default channel sub type is included. For example,
         advertising_channel_type being DISPLAY and include_default_channel_sub_type
         being false means that the default display campaign where channel sub type
         is not set is not included in this availability configuration.
         
        optional bool include_default_channel_sub_type = 5;
        Parameters:
        value - The includeDefaultChannelSubType to set.
        Returns:
        This builder for chaining.
      • clearIncludeDefaultChannelSubType

        public CriterionCategoryChannelAvailability.Builder clearIncludeDefaultChannelSubType()
         Whether default channel sub type is included. For example,
         advertising_channel_type being DISPLAY and include_default_channel_sub_type
         being false means that the default display campaign where channel sub type
         is not set is not included in this availability configuration.
         
        optional bool include_default_channel_sub_type = 5;
        Returns:
        This builder for chaining.