public static final class AdcandidateOuterClass.FrequencyCapsInfo.FrequencyCap extends com.google.protobuf.GeneratedMessage implements AdcandidateOuterClass.FrequencyCapsInfo.FrequencyCapOrBuilder
bid.FrequencyCapsInfo.FrequencyCap
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
| Modifier and Type | Class and Description |
|---|---|
static class |
AdcandidateOuterClass.FrequencyCapsInfo.FrequencyCap.Builder
Protobuf type
bid.FrequencyCapsInfo.FrequencyCap |
com.google.protobuf.GeneratedMessage.BuilderParent, com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingType extends com.google.protobuf.Message,Type>| 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, newFileScopedGeneratedExtension, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, writeReplace, writeString, writeStringNoTagequals, findInitializationErrors, getInitializationErrorString, hashBoolean, hashCode, 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.GeneratedMessagepublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic boolean hasMaxImpressions()
optional uint32 max_impressions = 1;
Allowed number of impressions in the duration .
hasMaxImpressions in interface AdcandidateOuterClass.FrequencyCapsInfo.FrequencyCapOrBuilderpublic int getMaxImpressions()
optional uint32 max_impressions = 1;
Allowed number of impressions in the duration .
getMaxImpressions in interface AdcandidateOuterClass.FrequencyCapsInfo.FrequencyCapOrBuilderpublic boolean hasDurationSeconds()
optional uint32 duration_seconds = 2;
The duration (in second) in which max_impressions should not be exceeded.
hasDurationSeconds in interface AdcandidateOuterClass.FrequencyCapsInfo.FrequencyCapOrBuilderpublic int getDurationSeconds()
optional uint32 duration_seconds = 2;
The duration (in second) in which max_impressions should not be exceeded.
getDurationSeconds in interface AdcandidateOuterClass.FrequencyCapsInfo.FrequencyCapOrBuilderpublic boolean hasCurrentImpressionCount()
optional uint32 current_impression_count = 3;
Actual impression numbers served in the duration.
hasCurrentImpressionCount in interface AdcandidateOuterClass.FrequencyCapsInfo.FrequencyCapOrBuilderpublic int getCurrentImpressionCount()
optional uint32 current_impression_count = 3;
Actual impression numbers served in the duration.
getCurrentImpressionCount in interface AdcandidateOuterClass.FrequencyCapsInfo.FrequencyCapOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessagepublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageIOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessagepublic 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.GeneratedMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessagepublic 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.GeneratedMessagepublic AdcandidateOuterClass.FrequencyCapsInfo.FrequencyCap getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2017. All rights reserved.