public final class FrequencyCap extends GeneratedMessageV3 implements FrequencyCapOrBuilder
Represents a Frequency Cap that can be applied to an entity.
Protobuf type google.ads.admanager.v1.FrequencyCap
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
MAX_IMPRESSIONS_FIELD_NUMBER
public static final int MAX_IMPRESSIONS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
TIME_AMOUNT_FIELD_NUMBER
public static final int TIME_AMOUNT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
TIME_UNIT_FIELD_NUMBER
public static final int TIME_UNIT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static FrequencyCap getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static FrequencyCap.Builder newBuilder()
newBuilder(FrequencyCap prototype)
public static FrequencyCap.Builder newBuilder(FrequencyCap prototype)
public static FrequencyCap parseDelimitedFrom(InputStream input)
public static FrequencyCap parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static FrequencyCap parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static FrequencyCap parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static FrequencyCap parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static FrequencyCap parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static FrequencyCap parseFrom(CodedInputStream input)
public static FrequencyCap parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static FrequencyCap parseFrom(InputStream input)
public static FrequencyCap parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static FrequencyCap parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static FrequencyCap parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<FrequencyCap> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public FrequencyCap getDefaultInstanceForType()
getMaxImpressions()
public long getMaxImpressions()
The maximum number of impressions for this frequency cap.
optional int64 max_impressions = 1;
Returns |
Type |
Description |
long |
The maxImpressions.
|
getParserForType()
public Parser<FrequencyCap> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getTimeAmount()
public long getTimeAmount()
The number of time units over which the frequency cap is effective.
optional int64 time_amount = 2;
Returns |
Type |
Description |
long |
The timeAmount.
|
getTimeUnit()
public TimeUnitEnum.TimeUnit getTimeUnit()
The units of time of this frequency cap.
optional .google.ads.admanager.v1.TimeUnitEnum.TimeUnit time_unit = 3;
getTimeUnitValue()
public int getTimeUnitValue()
The units of time of this frequency cap.
optional .google.ads.admanager.v1.TimeUnitEnum.TimeUnit time_unit = 3;
Returns |
Type |
Description |
int |
The enum numeric value on the wire for timeUnit.
|
hasMaxImpressions()
public boolean hasMaxImpressions()
The maximum number of impressions for this frequency cap.
optional int64 max_impressions = 1;
Returns |
Type |
Description |
boolean |
Whether the maxImpressions field is set.
|
hasTimeAmount()
public boolean hasTimeAmount()
The number of time units over which the frequency cap is effective.
optional int64 time_amount = 2;
Returns |
Type |
Description |
boolean |
Whether the timeAmount field is set.
|
hasTimeUnit()
public boolean hasTimeUnit()
The units of time of this frequency cap.
optional .google.ads.admanager.v1.TimeUnitEnum.TimeUnit time_unit = 3;
Returns |
Type |
Description |
boolean |
Whether the timeUnit field is set.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public FrequencyCap.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected FrequencyCap.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public FrequencyCap.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides