Class CriterionCategoryChannelAvailability.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<CriterionCategoryChannelAvailability.Builder>
com.google.ads.googleads.v18.common.CriterionCategoryChannelAvailability.Builder
All Implemented Interfaces:
CriterionCategoryChannelAvailabilityOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CriterionCategoryChannelAvailability

public static final class CriterionCategoryChannelAvailability.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CriterionCategoryChannelAvailability.Builder> implements CriterionCategoryChannelAvailabilityOrBuilder
 Information of advertising channel type and subtypes a category is available
 in.
 
Protobuf type google.ads.googleads.v18.common.CriterionCategoryChannelAvailability
  • Method Details

    • 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>
    • 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<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

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

      public CriterionCategoryChannelAvailability.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<CriterionCategoryChannelAvailability.Builder>
    • clearField

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

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

      public CriterionCategoryChannelAvailability.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CriterionCategoryChannelAvailability.Builder>
    • addRepeatedField

      public CriterionCategoryChannelAvailability.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CriterionCategoryChannelAvailability.Builder>
    • mergeFrom

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

    • 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 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:
      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.v18.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.v18.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

       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.v18.enums.CriterionCategoryChannelAvailabilityModeEnum.CriterionCategoryChannelAvailabilityMode availability_mode = 1;
      Specified by:
      getAvailabilityMode in interface CriterionCategoryChannelAvailabilityOrBuilder
      Returns:
      The availabilityMode.
    • setAvailabilityMode

       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.v18.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.v18.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.v18.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.v18.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.
    • getAdvertisingChannelType

      public AdvertisingChannelTypeEnum.AdvertisingChannelType getAdvertisingChannelType()
       Channel type the category is available to.
       
      .google.ads.googleads.v18.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 2;
      Specified by:
      getAdvertisingChannelType in interface CriterionCategoryChannelAvailabilityOrBuilder
      Returns:
      The advertisingChannelType.
    • setAdvertisingChannelType

       Channel type the category is available to.
       
      .google.ads.googleads.v18.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 2;
      Parameters:
      value - The advertisingChannelType to set.
      Returns:
      This builder for chaining.
    • clearAdvertisingChannelType

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

      public List<AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType> getAdvertisingChannelSubTypeList()
       Channel subtypes under the channel type the category is available to.
       
      repeated .google.ads.googleads.v18.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType advertising_channel_sub_type = 3;
      Specified by:
      getAdvertisingChannelSubTypeList in interface CriterionCategoryChannelAvailabilityOrBuilder
      Returns:
      A list containing the advertisingChannelSubType.
    • getAdvertisingChannelSubTypeCount

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

      public AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType getAdvertisingChannelSubType(int index)
       Channel subtypes under the channel type the category is available to.
       
      repeated .google.ads.googleads.v18.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType advertising_channel_sub_type = 3;
      Specified by:
      getAdvertisingChannelSubType in interface CriterionCategoryChannelAvailabilityOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The advertisingChannelSubType at the given index.
    • setAdvertisingChannelSubType

       Channel subtypes under the channel type the category is available to.
       
      repeated .google.ads.googleads.v18.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.
    • addAdvertisingChannelSubType

       Channel subtypes under the channel type the category is available to.
       
      repeated .google.ads.googleads.v18.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType advertising_channel_sub_type = 3;
      Parameters:
      value - The advertisingChannelSubType to add.
      Returns:
      This builder for chaining.
    • addAllAdvertisingChannelSubType

       Channel subtypes under the channel type the category is available to.
       
      repeated .google.ads.googleads.v18.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.v18.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType advertising_channel_sub_type = 3;
      Returns:
      This builder for chaining.
    • getAdvertisingChannelSubTypeValueList

      public List<Integer> getAdvertisingChannelSubTypeValueList()
       Channel subtypes under the channel type the category is available to.
       
      repeated .google.ads.googleads.v18.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.v18.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.v18.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.v18.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(Iterable<Integer> values)
       Channel subtypes under the channel type the category is available to.
       
      repeated .google.ads.googleads.v18.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.
    • setUnknownFields

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

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