Class LabelFrequencyCap.Builder (0.3.0)

public static final class LabelFrequencyCap.Builder extends GeneratedMessageV3.Builder<LabelFrequencyCap.Builder> implements LabelFrequencyCapOrBuilder

Frequency cap using a label.

Protobuf type google.ads.admanager.v1.LabelFrequencyCap

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LabelFrequencyCap.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LabelFrequencyCap.Builder
Overrides

build()

public LabelFrequencyCap build()
Returns
Type Description
LabelFrequencyCap

buildPartial()

public LabelFrequencyCap buildPartial()
Returns
Type Description
LabelFrequencyCap

clear()

public LabelFrequencyCap.Builder clear()
Returns
Type Description
LabelFrequencyCap.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public LabelFrequencyCap.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
LabelFrequencyCap.Builder
Overrides

clearFrequencyCap()

public LabelFrequencyCap.Builder clearFrequencyCap()

The frequency cap.

.google.ads.admanager.v1.FrequencyCap frequency_cap = 2;

Returns
Type Description
LabelFrequencyCap.Builder

clearLabel()

public LabelFrequencyCap.Builder clearLabel()

The label to used for frequency capping. Format: "networks/{network_code}/labels/{label_id}"

string label = 1;

Returns
Type Description
LabelFrequencyCap.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public LabelFrequencyCap.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
LabelFrequencyCap.Builder
Overrides

clone()

public LabelFrequencyCap.Builder clone()
Returns
Type Description
LabelFrequencyCap.Builder
Overrides

getDefaultInstanceForType()

public LabelFrequencyCap getDefaultInstanceForType()
Returns
Type Description
LabelFrequencyCap

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFrequencyCap()

public FrequencyCap getFrequencyCap()

The frequency cap.

.google.ads.admanager.v1.FrequencyCap frequency_cap = 2;

Returns
Type Description
FrequencyCap

The frequencyCap.

getFrequencyCapBuilder()

public FrequencyCap.Builder getFrequencyCapBuilder()

The frequency cap.

.google.ads.admanager.v1.FrequencyCap frequency_cap = 2;

Returns
Type Description
FrequencyCap.Builder

getFrequencyCapOrBuilder()

public FrequencyCapOrBuilder getFrequencyCapOrBuilder()

The frequency cap.

.google.ads.admanager.v1.FrequencyCap frequency_cap = 2;

Returns
Type Description
FrequencyCapOrBuilder

getLabel()

public String getLabel()

The label to used for frequency capping. Format: "networks/{network_code}/labels/{label_id}"

string label = 1;

Returns
Type Description
String

The label.

getLabelBytes()

public ByteString getLabelBytes()

The label to used for frequency capping. Format: "networks/{network_code}/labels/{label_id}"

string label = 1;

Returns
Type Description
ByteString

The bytes for label.

hasFrequencyCap()

public boolean hasFrequencyCap()

The frequency cap.

.google.ads.admanager.v1.FrequencyCap frequency_cap = 2;

Returns
Type Description
boolean

Whether the frequencyCap field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrequencyCap(FrequencyCap value)

public LabelFrequencyCap.Builder mergeFrequencyCap(FrequencyCap value)

The frequency cap.

.google.ads.admanager.v1.FrequencyCap frequency_cap = 2;

Parameter
Name Description
value FrequencyCap
Returns
Type Description
LabelFrequencyCap.Builder

mergeFrom(LabelFrequencyCap other)

public LabelFrequencyCap.Builder mergeFrom(LabelFrequencyCap other)
Parameter
Name Description
other LabelFrequencyCap
Returns
Type Description
LabelFrequencyCap.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LabelFrequencyCap.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LabelFrequencyCap.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public LabelFrequencyCap.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
LabelFrequencyCap.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LabelFrequencyCap.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LabelFrequencyCap.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public LabelFrequencyCap.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LabelFrequencyCap.Builder
Overrides

setFrequencyCap(FrequencyCap value)

public LabelFrequencyCap.Builder setFrequencyCap(FrequencyCap value)

The frequency cap.

.google.ads.admanager.v1.FrequencyCap frequency_cap = 2;

Parameter
Name Description
value FrequencyCap
Returns
Type Description
LabelFrequencyCap.Builder

setFrequencyCap(FrequencyCap.Builder builderForValue)

public LabelFrequencyCap.Builder setFrequencyCap(FrequencyCap.Builder builderForValue)

The frequency cap.

.google.ads.admanager.v1.FrequencyCap frequency_cap = 2;

Parameter
Name Description
builderForValue FrequencyCap.Builder
Returns
Type Description
LabelFrequencyCap.Builder

setLabel(String value)

public LabelFrequencyCap.Builder setLabel(String value)

The label to used for frequency capping. Format: "networks/{network_code}/labels/{label_id}"

string label = 1;

Parameter
Name Description
value String

The label to set.

Returns
Type Description
LabelFrequencyCap.Builder

This builder for chaining.

setLabelBytes(ByteString value)

public LabelFrequencyCap.Builder setLabelBytes(ByteString value)

The label to used for frequency capping. Format: "networks/{network_code}/labels/{label_id}"

string label = 1;

Parameter
Name Description
value ByteString

The bytes for label to set.

Returns
Type Description
LabelFrequencyCap.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public LabelFrequencyCap.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
LabelFrequencyCap.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final LabelFrequencyCap.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LabelFrequencyCap.Builder
Overrides