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 Summary
Modifier and TypeMethodDescriptionChannel subtypes under the channel type the category is available to.addAdvertisingChannelSubTypeValue(int value) Channel subtypes under the channel type the category is available to.addAllAdvertisingChannelSubType(Iterable<? extends AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType> values) Channel subtypes under the channel type the category is available to.Channel subtypes under the channel type the category is available to.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Channel subtypes under the channel type the category is available to.Channel type the category is available to.Format of the channel availability.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Whether default channel sub type is included.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()getAdvertisingChannelSubType(int index) Channel subtypes under the channel type the category is available to.intChannel subtypes under the channel type the category is available to.Channel subtypes under the channel type the category is available to.intgetAdvertisingChannelSubTypeValue(int index) Channel subtypes under the channel type the category is available to.Channel subtypes under the channel type the category is available to.Channel type the category is available to.intChannel type the category is available to.Format of the channel availability.intFormat of the channel availability.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanWhether default channel sub type is included.booleanWhether default channel sub type is included.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setAdvertisingChannelSubType(int index, AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType value) Channel subtypes under the channel type the category is available to.setAdvertisingChannelSubTypeValue(int index, int value) Channel subtypes under the channel type the category is available to.Channel type the category is available to.setAdvertisingChannelTypeValue(int value) Channel type the category is available to.setAvailabilityMode(CriterionCategoryChannelAvailabilityModeEnum.CriterionCategoryChannelAvailabilityMode value) Format of the channel availability.setAvailabilityModeValue(int value) Format of the channel availability.setIncludeDefaultChannelSubType(boolean value) Whether default channel sub type is included.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) 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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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
- 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
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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, 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, 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, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CriterionCategoryChannelAvailability.Builder>
-
mergeFrom
- 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 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:
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:
getAvailabilityModeValuein interfaceCriterionCategoryChannelAvailabilityOrBuilder- Returns:
- The enum numeric value on the wire for availabilityMode.
-
setAvailabilityModeValue
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
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.v18.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.v18.enums.CriterionCategoryChannelAvailabilityModeEnum.CriterionCategoryChannelAvailabilityMode availability_mode = 1;- Parameters:
value- The availabilityMode to set.- Returns:
- This builder for chaining.
-
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:
getAdvertisingChannelTypeValuein interfaceCriterionCategoryChannelAvailabilityOrBuilder- Returns:
- The enum numeric value on the wire for advertisingChannelType.
-
setAdvertisingChannelTypeValue
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
Channel type the category is available to.
.google.ads.googleads.v18.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.v18.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 2;- Parameters:
value- The advertisingChannelType to set.- Returns:
- This builder for chaining.
-
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:
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.v18.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.v18.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.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
public CriterionCategoryChannelAvailability.Builder addAdvertisingChannelSubType(AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType 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 advertisingChannelSubType to add.- Returns:
- This builder for chaining.
-
addAllAdvertisingChannelSubType
public CriterionCategoryChannelAvailability.Builder addAllAdvertisingChannelSubType(Iterable<? extends AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType> 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 advertisingChannelSubType to add.- Returns:
- This builder for chaining.
-
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
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:
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.v18.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.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
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:
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
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
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>
-