public static final class AdcandidateOuterClass.FrequencyCapsInfo.FrequencyCap extends com.google.protobuf.GeneratedMessageV3 implements AdcandidateOuterClass.FrequencyCapsInfo.FrequencyCapOrBuilder
FrequencyCap contains the frequency constraints for a given user to not
view the ad more than `max_impressions` times within a duration of
`duration_seconds`, and the actual impression counts within the duration
for the user as in `current_impression_count`.
`max_impressions` and `duration_seconds` are defined using Buzz API, and
`current_impression_count` is populated real-time per request.
E.g. If a line item specifies hourly frequency cap
constraints of 10 impression/user, and it has had impressions for the
past hour, the value will be
{max_impressions = 10, duration_secs = 3600, current_impression_count = 2}.
Next Id: 4
Protobuf type bid.FrequencyCapsInfo.FrequencyCap| Modifier and Type | Class and Description |
|---|---|
static class |
AdcandidateOuterClass.FrequencyCapsInfo.FrequencyCap.Builder
FrequencyCap contains the frequency constraints for a given user to not
view the ad more than `max_impressions` times within a duration of
`duration_seconds`, and the actual impression counts within the duration
for the user as in `current_impression_count`.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
CURRENT_IMPRESSION_COUNT_FIELD_NUMBER |
static int |
DURATION_SECONDS_FIELD_NUMBER |
static int |
MAX_IMPRESSIONS_FIELD_NUMBER |
static com.google.protobuf.Parser<AdcandidateOuterClass.FrequencyCapsInfo.FrequencyCap> |
PARSER
Deprecated.
|
computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int MAX_IMPRESSIONS_FIELD_NUMBER
public static final int DURATION_SECONDS_FIELD_NUMBER
public static final int CURRENT_IMPRESSION_COUNT_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<AdcandidateOuterClass.FrequencyCapsInfo.FrequencyCap> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasMaxImpressions()
Allowed number of impressions in the duration .
optional uint32 max_impressions = 1;hasMaxImpressions in interface AdcandidateOuterClass.FrequencyCapsInfo.FrequencyCapOrBuilderpublic int getMaxImpressions()
Allowed number of impressions in the duration .
optional uint32 max_impressions = 1;getMaxImpressions in interface AdcandidateOuterClass.FrequencyCapsInfo.FrequencyCapOrBuilderpublic boolean hasDurationSeconds()
The duration (in second) in which max_impressions should not be exceeded.
optional uint32 duration_seconds = 2;hasDurationSeconds in interface AdcandidateOuterClass.FrequencyCapsInfo.FrequencyCapOrBuilderpublic int getDurationSeconds()
The duration (in second) in which max_impressions should not be exceeded.
optional uint32 duration_seconds = 2;getDurationSeconds in interface AdcandidateOuterClass.FrequencyCapsInfo.FrequencyCapOrBuilderpublic boolean hasCurrentImpressionCount()
Actual impression numbers served in the duration.
optional uint32 current_impression_count = 3;hasCurrentImpressionCount in interface AdcandidateOuterClass.FrequencyCapsInfo.FrequencyCapOrBuilderpublic int getCurrentImpressionCount()
Actual impression numbers served in the duration.
optional uint32 current_impression_count = 3;getCurrentImpressionCount in interface AdcandidateOuterClass.FrequencyCapsInfo.FrequencyCapOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static AdcandidateOuterClass.FrequencyCapsInfo.FrequencyCap parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AdcandidateOuterClass.FrequencyCapsInfo.FrequencyCap parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AdcandidateOuterClass.FrequencyCapsInfo.FrequencyCap parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AdcandidateOuterClass.FrequencyCapsInfo.FrequencyCap parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AdcandidateOuterClass.FrequencyCapsInfo.FrequencyCap parseFrom(InputStream input) throws IOException
IOExceptionpublic static AdcandidateOuterClass.FrequencyCapsInfo.FrequencyCap parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AdcandidateOuterClass.FrequencyCapsInfo.FrequencyCap parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static AdcandidateOuterClass.FrequencyCapsInfo.FrequencyCap parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AdcandidateOuterClass.FrequencyCapsInfo.FrequencyCap parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static AdcandidateOuterClass.FrequencyCapsInfo.FrequencyCap parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic AdcandidateOuterClass.FrequencyCapsInfo.FrequencyCap.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AdcandidateOuterClass.FrequencyCapsInfo.FrequencyCap.Builder newBuilder()
public static AdcandidateOuterClass.FrequencyCapsInfo.FrequencyCap.Builder newBuilder(AdcandidateOuterClass.FrequencyCapsInfo.FrequencyCap prototype)
public AdcandidateOuterClass.FrequencyCapsInfo.FrequencyCap.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AdcandidateOuterClass.FrequencyCapsInfo.FrequencyCap.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static AdcandidateOuterClass.FrequencyCapsInfo.FrequencyCap getDefaultInstance()
public static com.google.protobuf.Parser<AdcandidateOuterClass.FrequencyCapsInfo.FrequencyCap> parser()
public com.google.protobuf.Parser<AdcandidateOuterClass.FrequencyCapsInfo.FrequencyCap> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public AdcandidateOuterClass.FrequencyCapsInfo.FrequencyCap getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2017. All rights reserved.