Class Report.Flag.Builder (0.11.0)

public static final class Report.Flag.Builder extends GeneratedMessageV3.Builder<Report.Flag.Builder> implements Report.FlagOrBuilder

A flag for a report. Flags are used show if certain thresholds are met. Result rows that match the filter will have the corresponding MetricValueGroup.flagValues index set to true. For more information about flags see: https://support.google.com/admanager/answer/15079975

Protobuf type google.ads.admanager.v1.Report.Flag

Static Methods

getDescriptor()

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

Methods

addAllFilters(Iterable<? extends Report.Filter> values)

public Report.Flag.Builder addAllFilters(Iterable<? extends Report.Filter> values)

Required. Filters to apply for the flag.

repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.ads.admanager.v1.Report.Filter>
Returns
Type Description
Report.Flag.Builder

addFilters(Report.Filter value)

public Report.Flag.Builder addFilters(Report.Filter value)

Required. Filters to apply for the flag.

repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Report.Filter
Returns
Type Description
Report.Flag.Builder

addFilters(Report.Filter.Builder builderForValue)

public Report.Flag.Builder addFilters(Report.Filter.Builder builderForValue)

Required. Filters to apply for the flag.

repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Report.Filter.Builder
Returns
Type Description
Report.Flag.Builder

addFilters(int index, Report.Filter value)

public Report.Flag.Builder addFilters(int index, Report.Filter value)

Required. Filters to apply for the flag.

repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value Report.Filter
Returns
Type Description
Report.Flag.Builder

addFilters(int index, Report.Filter.Builder builderForValue)

public Report.Flag.Builder addFilters(int index, Report.Filter.Builder builderForValue)

Required. Filters to apply for the flag.

repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue Report.Filter.Builder
Returns
Type Description
Report.Flag.Builder

addFiltersBuilder()

public Report.Filter.Builder addFiltersBuilder()

Required. Filters to apply for the flag.

repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Report.Filter.Builder

addFiltersBuilder(int index)

public Report.Filter.Builder addFiltersBuilder(int index)

Required. Filters to apply for the flag.

repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Report.Filter.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Report.Flag build()
Returns
Type Description
Report.Flag

buildPartial()

public Report.Flag buildPartial()
Returns
Type Description
Report.Flag

clear()

public Report.Flag.Builder clear()
Returns
Type Description
Report.Flag.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearFilters()

public Report.Flag.Builder clearFilters()

Required. Filters to apply for the flag.

repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Report.Flag.Builder

clearName()

public Report.Flag.Builder clearName()

Optional. Name of the flag. The flag names RED, YELLOW, GREEN, BLUE, PURPLE, and GREY correspond to the colored flags that appear in the UI. The UI will not display flags with other names, but they are available for use by API clients.

string name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Report.Flag.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public Report.Flag.Builder clone()
Returns
Type Description
Report.Flag.Builder
Overrides

getDefaultInstanceForType()

public Report.Flag getDefaultInstanceForType()
Returns
Type Description
Report.Flag

getDescriptorForType()

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

getFilters(int index)

public Report.Filter getFilters(int index)

Required. Filters to apply for the flag.

repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Report.Filter

getFiltersBuilder(int index)

public Report.Filter.Builder getFiltersBuilder(int index)

Required. Filters to apply for the flag.

repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Report.Filter.Builder

getFiltersBuilderList()

public List<Report.Filter.Builder> getFiltersBuilderList()

Required. Filters to apply for the flag.

repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getFiltersCount()

public int getFiltersCount()

Required. Filters to apply for the flag.

repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getFiltersList()

public List<Report.Filter> getFiltersList()

Required. Filters to apply for the flag.

repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Filter>

getFiltersOrBuilder(int index)

public Report.FilterOrBuilder getFiltersOrBuilder(int index)

Required. Filters to apply for the flag.

repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Report.FilterOrBuilder

getFiltersOrBuilderList()

public List<? extends Report.FilterOrBuilder> getFiltersOrBuilderList()

Required. Filters to apply for the flag.

repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.ads.admanager.v1.Report.FilterOrBuilder>

getName()

public String getName()

Optional. Name of the flag. The flag names RED, YELLOW, GREEN, BLUE, PURPLE, and GREY correspond to the colored flags that appear in the UI. The UI will not display flags with other names, but they are available for use by API clients.

string name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Optional. Name of the flag. The flag names RED, YELLOW, GREEN, BLUE, PURPLE, and GREY correspond to the colored flags that appear in the UI. The UI will not display flags with other names, but they are available for use by API clients.

string name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Report.Flag other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeFilters(int index)

public Report.Flag.Builder removeFilters(int index)

Required. Filters to apply for the flag.

repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Report.Flag.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFilters(int index, Report.Filter value)

public Report.Flag.Builder setFilters(int index, Report.Filter value)

Required. Filters to apply for the flag.

repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value Report.Filter
Returns
Type Description
Report.Flag.Builder

setFilters(int index, Report.Filter.Builder builderForValue)

public Report.Flag.Builder setFilters(int index, Report.Filter.Builder builderForValue)

Required. Filters to apply for the flag.

repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue Report.Filter.Builder
Returns
Type Description
Report.Flag.Builder

setName(String value)

public Report.Flag.Builder setName(String value)

Optional. Name of the flag. The flag names RED, YELLOW, GREEN, BLUE, PURPLE, and GREY correspond to the colored flags that appear in the UI. The UI will not display flags with other names, but they are available for use by API clients.

string name = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Report.Flag.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Report.Flag.Builder setNameBytes(ByteString value)

Optional. Name of the flag. The flag names RED, YELLOW, GREEN, BLUE, PURPLE, and GREY correspond to the colored flags that appear in the UI. The UI will not display flags with other names, but they are available for use by API clients.

string name = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Report.Flag.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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