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.v13.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
,java.lang.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 typegoogle.ads.googleads.v13.common.CriterionCategoryChannelAvailability
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<CriterionCategoryChannelAvailability.Builder>
-
clear
public CriterionCategoryChannelAvailability.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<CriterionCategoryChannelAvailability.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<CriterionCategoryChannelAvailability.Builder>
-
getDefaultInstanceForType
public CriterionCategoryChannelAvailability getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public CriterionCategoryChannelAvailability build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CriterionCategoryChannelAvailability buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CriterionCategoryChannelAvailability.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<CriterionCategoryChannelAvailability.Builder>
-
setField
public CriterionCategoryChannelAvailability.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CriterionCategoryChannelAvailability.Builder>
-
clearField
public CriterionCategoryChannelAvailability.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CriterionCategoryChannelAvailability.Builder>
-
clearOneof
public CriterionCategoryChannelAvailability.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<CriterionCategoryChannelAvailability.Builder>
-
setRepeatedField
public CriterionCategoryChannelAvailability.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CriterionCategoryChannelAvailability.Builder>
-
addRepeatedField
public CriterionCategoryChannelAvailability.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CriterionCategoryChannelAvailability.Builder>
-
mergeFrom
public CriterionCategoryChannelAvailability.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CriterionCategoryChannelAvailability.Builder>
-
mergeFrom
public CriterionCategoryChannelAvailability.Builder mergeFrom(CriterionCategoryChannelAvailability other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.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 interfaceCriterionCategoryChannelAvailabilityOrBuilder
- 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 interfaceCriterionCategoryChannelAvailabilityOrBuilder
- 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 interfaceCriterionCategoryChannelAvailabilityOrBuilder
- 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.
-
getAdvertisingChannelType
public AdvertisingChannelTypeEnum.AdvertisingChannelType getAdvertisingChannelType()
Channel type the category is available to.
.google.ads.googleads.v13.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 2;
- Specified by:
getAdvertisingChannelType
in interfaceCriterionCategoryChannelAvailabilityOrBuilder
- Returns:
- The advertisingChannelType.
-
setAdvertisingChannelType
public CriterionCategoryChannelAvailability.Builder setAdvertisingChannelType(AdvertisingChannelTypeEnum.AdvertisingChannelType value)
Channel type the category is available to.
.google.ads.googleads.v13.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.v13.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 2;
- Returns:
- This builder for chaining.
-
getAdvertisingChannelSubTypeList
public java.util.List<AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType> getAdvertisingChannelSubTypeList()
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:
getAdvertisingChannelSubTypeList
in interfaceCriterionCategoryChannelAvailabilityOrBuilder
- 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.v13.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType advertising_channel_sub_type = 3;
- Specified by:
getAdvertisingChannelSubTypeCount
in interfaceCriterionCategoryChannelAvailabilityOrBuilder
- 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.v13.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType advertising_channel_sub_type = 3;
- Specified by:
getAdvertisingChannelSubType
in interfaceCriterionCategoryChannelAvailabilityOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The advertisingChannelSubType at the given index.
-
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.
-
addAdvertisingChannelSubType
public CriterionCategoryChannelAvailability.Builder addAdvertisingChannelSubType(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:
value
- The advertisingChannelSubType to add.- 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 interfaceCriterionCategoryChannelAvailabilityOrBuilder
- 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 interfaceCriterionCategoryChannelAvailabilityOrBuilder
- 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 interfaceCriterionCategoryChannelAvailabilityOrBuilder
- 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 interfaceCriterionCategoryChannelAvailabilityOrBuilder
- 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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CriterionCategoryChannelAvailability.Builder>
-
mergeUnknownFields
public final CriterionCategoryChannelAvailability.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CriterionCategoryChannelAvailability.Builder>
-
-