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.v15.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.v15.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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<CriterionCategoryChannelAvailability.Builder>
-
clear
public CriterionCategoryChannelAvailability.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<CriterionCategoryChannelAvailability.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<CriterionCategoryChannelAvailability.Builder>
-
getDefaultInstanceForType
public CriterionCategoryChannelAvailability getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public CriterionCategoryChannelAvailability build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CriterionCategoryChannelAvailability buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CriterionCategoryChannelAvailability.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<CriterionCategoryChannelAvailability.Builder>
-
setField
public CriterionCategoryChannelAvailability.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CriterionCategoryChannelAvailability.Builder>
-
clearField
public CriterionCategoryChannelAvailability.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CriterionCategoryChannelAvailability.Builder>
-
clearOneof
public CriterionCategoryChannelAvailability.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin 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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CriterionCategoryChannelAvailability.Builder>
-
addRepeatedField
public CriterionCategoryChannelAvailability.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CriterionCategoryChannelAvailability.Builder>
-
mergeFrom
public CriterionCategoryChannelAvailability.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CriterionCategoryChannelAvailability.Builder>
-
mergeFrom
public CriterionCategoryChannelAvailability.Builder mergeFrom(CriterionCategoryChannelAvailability other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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.v15.enums.CriterionCategoryChannelAvailabilityModeEnum.CriterionCategoryChannelAvailabilityMode availability_mode = 1;- Specified by:
getAvailabilityModeValuein 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.v15.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.v15.enums.CriterionCategoryChannelAvailabilityModeEnum.CriterionCategoryChannelAvailabilityMode availability_mode = 1;- Specified by:
getAvailabilityModein 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.v15.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.v15.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.v15.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 2;- Specified by:
getAdvertisingChannelTypeValuein 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.v15.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.v15.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 2;- Specified by:
getAdvertisingChannelTypein interfaceCriterionCategoryChannelAvailabilityOrBuilder- Returns:
- The advertisingChannelType.
-
setAdvertisingChannelType
public CriterionCategoryChannelAvailability.Builder setAdvertisingChannelType(AdvertisingChannelTypeEnum.AdvertisingChannelType value)
Channel type the category is available to.
.google.ads.googleads.v15.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.v15.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.v15.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType advertising_channel_sub_type = 3;- Specified by:
getAdvertisingChannelSubTypeListin 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.v15.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType advertising_channel_sub_type = 3;- Specified by:
getAdvertisingChannelSubTypeCountin 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.v15.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType advertising_channel_sub_type = 3;- Specified by:
getAdvertisingChannelSubTypein 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.v15.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.v15.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.v15.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.v15.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.v15.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType advertising_channel_sub_type = 3;- Specified by:
getAdvertisingChannelSubTypeValueListin 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.v15.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType advertising_channel_sub_type = 3;- Specified by:
getAdvertisingChannelSubTypeValuein 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.v15.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.v15.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.v15.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:
hasIncludeDefaultChannelSubTypein 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:
getIncludeDefaultChannelSubTypein 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CriterionCategoryChannelAvailability.Builder>
-
mergeUnknownFields
public final CriterionCategoryChannelAvailability.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CriterionCategoryChannelAvailability.Builder>
-
-