Package com.google.doubleclick
Class AdxExt.BidExt.FrequencyCap.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<AdxExt.BidExt.FrequencyCap.Builder>
-
- com.google.doubleclick.AdxExt.BidExt.FrequencyCap.Builder
-
- All Implemented Interfaces:
AdxExt.BidExt.FrequencyCapOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AdxExt.BidExt.FrequencyCap
public static final class AdxExt.BidExt.FrequencyCap.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AdxExt.BidExt.FrequencyCap.Builder> implements AdxExt.BidExt.FrequencyCapOrBuilder
Experimental feature; may be subject to change. See https://support.google.com/authorizedbuyers/answer/10890762 for more information. Specifies frequency capping to be applied to the bid. Impressions for each user are capped at the level specified by fcap_id. A bid will not participate in the auction if an additional impression for the user would violate any of the specified caps. Multiple frequency caps can be specified for the same fcap_id. A bid is filtered before the auction if the frequency cap is malformed. Instances where the cap is malformed include: - fcap_id is empty or is very long - max_mpressions or time_range are non-positive - there are a large number of frequency caps for a single bid - time_unit is not specified Note that if a subsequent bid with the same fcap_id uses a different duration (represented by time_unit and time_range) then impressions counted against the old frequency cap will not count against the new one and vice versa.
Protobuf typecom.google.doubleclick.BidExt.FrequencyCap
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AdxExt.BidExt.FrequencyCap.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AdxExt.BidExt.FrequencyCapbuild()AdxExt.BidExt.FrequencyCapbuildPartial()AdxExt.BidExt.FrequencyCap.Builderclear()AdxExt.BidExt.FrequencyCap.BuilderclearFcapId()An ID that can represent a bidder's use-case for frequency capping; for example, it could represent their campaign, ad, line item, etc.AdxExt.BidExt.FrequencyCap.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)AdxExt.BidExt.FrequencyCap.BuilderclearMaxImp()The maximum number of impressions allowed to be shown to a user for the provided frequency_cap_id within the time window described by time_unit and time_range.AdxExt.BidExt.FrequencyCap.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)AdxExt.BidExt.FrequencyCap.BuilderclearTimeRange()The length of the time window, in units specified by time_unit, for which the frequency cap applies.AdxExt.BidExt.FrequencyCap.BuilderclearTimeUnit()The unit of time used to specify the time window for which a frequency cap applies.AdxExt.BidExt.FrequencyCap.Builderclone()AdxExt.BidExt.FrequencyCapgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetFcapId()An ID that can represent a bidder's use-case for frequency capping; for example, it could represent their campaign, ad, line item, etc.com.google.protobuf.ByteStringgetFcapIdBytes()An ID that can represent a bidder's use-case for frequency capping; for example, it could represent their campaign, ad, line item, etc.intgetMaxImp()The maximum number of impressions allowed to be shown to a user for the provided frequency_cap_id within the time window described by time_unit and time_range.intgetTimeRange()The length of the time window, in units specified by time_unit, for which the frequency cap applies.AdxExt.BidExt.FrequencyCap.TimeUnitgetTimeUnit()The unit of time used to specify the time window for which a frequency cap applies.booleanhasFcapId()An ID that can represent a bidder's use-case for frequency capping; for example, it could represent their campaign, ad, line item, etc.booleanhasMaxImp()The maximum number of impressions allowed to be shown to a user for the provided frequency_cap_id within the time window described by time_unit and time_range.booleanhasTimeRange()The length of the time window, in units specified by time_unit, for which the frequency cap applies.booleanhasTimeUnit()The unit of time used to specify the time window for which a frequency cap applies.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()AdxExt.BidExt.FrequencyCap.BuildermergeFrom(AdxExt.BidExt.FrequencyCap other)AdxExt.BidExt.FrequencyCap.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)AdxExt.BidExt.FrequencyCap.BuildermergeFrom(com.google.protobuf.Message other)AdxExt.BidExt.FrequencyCap.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)AdxExt.BidExt.FrequencyCap.BuildersetFcapId(String value)An ID that can represent a bidder's use-case for frequency capping; for example, it could represent their campaign, ad, line item, etc.AdxExt.BidExt.FrequencyCap.BuildersetFcapIdBytes(com.google.protobuf.ByteString value)An ID that can represent a bidder's use-case for frequency capping; for example, it could represent their campaign, ad, line item, etc.AdxExt.BidExt.FrequencyCap.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AdxExt.BidExt.FrequencyCap.BuildersetMaxImp(int value)The maximum number of impressions allowed to be shown to a user for the provided frequency_cap_id within the time window described by time_unit and time_range.AdxExt.BidExt.FrequencyCap.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)AdxExt.BidExt.FrequencyCap.BuildersetTimeRange(int value)The length of the time window, in units specified by time_unit, for which the frequency cap applies.AdxExt.BidExt.FrequencyCap.BuildersetTimeUnit(AdxExt.BidExt.FrequencyCap.TimeUnit value)The unit of time used to specify the time window for which a frequency cap applies.AdxExt.BidExt.FrequencyCap.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, 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<AdxExt.BidExt.FrequencyCap.Builder>
-
clear
public AdxExt.BidExt.FrequencyCap.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<AdxExt.BidExt.FrequencyCap.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<AdxExt.BidExt.FrequencyCap.Builder>
-
getDefaultInstanceForType
public AdxExt.BidExt.FrequencyCap getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public AdxExt.BidExt.FrequencyCap build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AdxExt.BidExt.FrequencyCap buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AdxExt.BidExt.FrequencyCap.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<AdxExt.BidExt.FrequencyCap.Builder>
-
setField
public AdxExt.BidExt.FrequencyCap.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<AdxExt.BidExt.FrequencyCap.Builder>
-
clearField
public AdxExt.BidExt.FrequencyCap.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AdxExt.BidExt.FrequencyCap.Builder>
-
clearOneof
public AdxExt.BidExt.FrequencyCap.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<AdxExt.BidExt.FrequencyCap.Builder>
-
setRepeatedField
public AdxExt.BidExt.FrequencyCap.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<AdxExt.BidExt.FrequencyCap.Builder>
-
addRepeatedField
public AdxExt.BidExt.FrequencyCap.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<AdxExt.BidExt.FrequencyCap.Builder>
-
mergeFrom
public AdxExt.BidExt.FrequencyCap.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AdxExt.BidExt.FrequencyCap.Builder>
-
mergeFrom
public AdxExt.BidExt.FrequencyCap.Builder mergeFrom(AdxExt.BidExt.FrequencyCap other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<AdxExt.BidExt.FrequencyCap.Builder>
-
mergeFrom
public AdxExt.BidExt.FrequencyCap.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<AdxExt.BidExt.FrequencyCap.Builder>- Throws:
IOException
-
hasFcapId
public boolean hasFcapId()
An ID that can represent a bidder's use-case for frequency capping; for example, it could represent their campaign, ad, line item, etc. It should not contain any user-specific information or identifiers and should not be longer than 64 characters.
optional string fcap_id = 1;- Specified by:
hasFcapIdin interfaceAdxExt.BidExt.FrequencyCapOrBuilder- Returns:
- Whether the fcapId field is set.
-
getFcapId
public String getFcapId()
An ID that can represent a bidder's use-case for frequency capping; for example, it could represent their campaign, ad, line item, etc. It should not contain any user-specific information or identifiers and should not be longer than 64 characters.
optional string fcap_id = 1;- Specified by:
getFcapIdin interfaceAdxExt.BidExt.FrequencyCapOrBuilder- Returns:
- The fcapId.
-
getFcapIdBytes
public com.google.protobuf.ByteString getFcapIdBytes()
An ID that can represent a bidder's use-case for frequency capping; for example, it could represent their campaign, ad, line item, etc. It should not contain any user-specific information or identifiers and should not be longer than 64 characters.
optional string fcap_id = 1;- Specified by:
getFcapIdBytesin interfaceAdxExt.BidExt.FrequencyCapOrBuilder- Returns:
- The bytes for fcapId.
-
setFcapId
public AdxExt.BidExt.FrequencyCap.Builder setFcapId(String value)
An ID that can represent a bidder's use-case for frequency capping; for example, it could represent their campaign, ad, line item, etc. It should not contain any user-specific information or identifiers and should not be longer than 64 characters.
optional string fcap_id = 1;- Parameters:
value- The fcapId to set.- Returns:
- This builder for chaining.
-
clearFcapId
public AdxExt.BidExt.FrequencyCap.Builder clearFcapId()
An ID that can represent a bidder's use-case for frequency capping; for example, it could represent their campaign, ad, line item, etc. It should not contain any user-specific information or identifiers and should not be longer than 64 characters.
optional string fcap_id = 1;- Returns:
- This builder for chaining.
-
setFcapIdBytes
public AdxExt.BidExt.FrequencyCap.Builder setFcapIdBytes(com.google.protobuf.ByteString value)
An ID that can represent a bidder's use-case for frequency capping; for example, it could represent their campaign, ad, line item, etc. It should not contain any user-specific information or identifiers and should not be longer than 64 characters.
optional string fcap_id = 1;- Parameters:
value- The bytes for fcapId to set.- Returns:
- This builder for chaining.
-
hasTimeUnit
public boolean hasTimeUnit()
The unit of time used to specify the time window for which a frequency cap applies.
optional .com.google.doubleclick.BidExt.FrequencyCap.TimeUnit time_unit = 2;- Specified by:
hasTimeUnitin interfaceAdxExt.BidExt.FrequencyCapOrBuilder- Returns:
- Whether the timeUnit field is set.
-
getTimeUnit
public AdxExt.BidExt.FrequencyCap.TimeUnit getTimeUnit()
The unit of time used to specify the time window for which a frequency cap applies.
optional .com.google.doubleclick.BidExt.FrequencyCap.TimeUnit time_unit = 2;- Specified by:
getTimeUnitin interfaceAdxExt.BidExt.FrequencyCapOrBuilder- Returns:
- The timeUnit.
-
setTimeUnit
public AdxExt.BidExt.FrequencyCap.Builder setTimeUnit(AdxExt.BidExt.FrequencyCap.TimeUnit value)
The unit of time used to specify the time window for which a frequency cap applies.
optional .com.google.doubleclick.BidExt.FrequencyCap.TimeUnit time_unit = 2;- Parameters:
value- The timeUnit to set.- Returns:
- This builder for chaining.
-
clearTimeUnit
public AdxExt.BidExt.FrequencyCap.Builder clearTimeUnit()
The unit of time used to specify the time window for which a frequency cap applies.
optional .com.google.doubleclick.BidExt.FrequencyCap.TimeUnit time_unit = 2;- Returns:
- This builder for chaining.
-
hasTimeRange
public boolean hasTimeRange()
The length of the time window, in units specified by time_unit, for which the frequency cap applies. For instance, if time_unit=WEEK and time_range=3, then capping is applied for a three week period. If the time_unit=INDEFINITE, this will be ignored.
optional int32 time_range = 3 [default = 1];- Specified by:
hasTimeRangein interfaceAdxExt.BidExt.FrequencyCapOrBuilder- Returns:
- Whether the timeRange field is set.
-
getTimeRange
public int getTimeRange()
The length of the time window, in units specified by time_unit, for which the frequency cap applies. For instance, if time_unit=WEEK and time_range=3, then capping is applied for a three week period. If the time_unit=INDEFINITE, this will be ignored.
optional int32 time_range = 3 [default = 1];- Specified by:
getTimeRangein interfaceAdxExt.BidExt.FrequencyCapOrBuilder- Returns:
- The timeRange.
-
setTimeRange
public AdxExt.BidExt.FrequencyCap.Builder setTimeRange(int value)
The length of the time window, in units specified by time_unit, for which the frequency cap applies. For instance, if time_unit=WEEK and time_range=3, then capping is applied for a three week period. If the time_unit=INDEFINITE, this will be ignored.
optional int32 time_range = 3 [default = 1];- Parameters:
value- The timeRange to set.- Returns:
- This builder for chaining.
-
clearTimeRange
public AdxExt.BidExt.FrequencyCap.Builder clearTimeRange()
The length of the time window, in units specified by time_unit, for which the frequency cap applies. For instance, if time_unit=WEEK and time_range=3, then capping is applied for a three week period. If the time_unit=INDEFINITE, this will be ignored.
optional int32 time_range = 3 [default = 1];- Returns:
- This builder for chaining.
-
hasMaxImp
public boolean hasMaxImp()
The maximum number of impressions allowed to be shown to a user for the provided frequency_cap_id within the time window described by time_unit and time_range.
optional int32 max_imp = 4;- Specified by:
hasMaxImpin interfaceAdxExt.BidExt.FrequencyCapOrBuilder- Returns:
- Whether the maxImp field is set.
-
getMaxImp
public int getMaxImp()
The maximum number of impressions allowed to be shown to a user for the provided frequency_cap_id within the time window described by time_unit and time_range.
optional int32 max_imp = 4;- Specified by:
getMaxImpin interfaceAdxExt.BidExt.FrequencyCapOrBuilder- Returns:
- The maxImp.
-
setMaxImp
public AdxExt.BidExt.FrequencyCap.Builder setMaxImp(int value)
The maximum number of impressions allowed to be shown to a user for the provided frequency_cap_id within the time window described by time_unit and time_range.
optional int32 max_imp = 4;- Parameters:
value- The maxImp to set.- Returns:
- This builder for chaining.
-
clearMaxImp
public AdxExt.BidExt.FrequencyCap.Builder clearMaxImp()
The maximum number of impressions allowed to be shown to a user for the provided frequency_cap_id within the time window described by time_unit and time_range.
optional int32 max_imp = 4;- Returns:
- This builder for chaining.
-
setUnknownFields
public final AdxExt.BidExt.FrequencyCap.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AdxExt.BidExt.FrequencyCap.Builder>
-
mergeUnknownFields
public final AdxExt.BidExt.FrequencyCap.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AdxExt.BidExt.FrequencyCap.Builder>
-
-