Class Row.Builder (0.58.0)

public static final class Row.Builder extends GeneratedMessageV3.Builder<Row.Builder> implements RowOrBuilder

Report data for each row. For example if RunReportRequest contains:

`none "dimensions": [ { "name": "eventName" }, { "name": "countryId" } ], "metrics": [ { "name": "eventCount" } ]

One row with 'in_app_purchase' as the eventName, 'JP' as the countryId, and 15 as the eventCount, would be:

none "dimensionValues": [ { "value": "in_app_purchase" }, { "value": "JP" } ], "metricValues": [ { "value": "15" } ] `

Protobuf type google.analytics.data.v1alpha.Row

Implements

RowOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllDimensionValues(Iterable<? extends DimensionValue> values)

public Row.Builder addAllDimensionValues(Iterable<? extends DimensionValue> values)

List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot.

repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;

Parameter
Name Description
values Iterable<? extends com.google.analytics.data.v1alpha.DimensionValue>
Returns
Type Description
Row.Builder

addAllMetricValues(Iterable<? extends MetricValue> values)

public Row.Builder addAllMetricValues(Iterable<? extends MetricValue> values)

List of requested visible metric values.

repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2;

Parameter
Name Description
values Iterable<? extends com.google.analytics.data.v1alpha.MetricValue>
Returns
Type Description
Row.Builder

addDimensionValues(DimensionValue value)

public Row.Builder addDimensionValues(DimensionValue value)

List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot.

repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;

Parameter
Name Description
value DimensionValue
Returns
Type Description
Row.Builder

addDimensionValues(DimensionValue.Builder builderForValue)

public Row.Builder addDimensionValues(DimensionValue.Builder builderForValue)

List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot.

repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;

Parameter
Name Description
builderForValue DimensionValue.Builder
Returns
Type Description
Row.Builder

addDimensionValues(int index, DimensionValue value)

public Row.Builder addDimensionValues(int index, DimensionValue value)

List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot.

repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;

Parameters
Name Description
index int
value DimensionValue
Returns
Type Description
Row.Builder

addDimensionValues(int index, DimensionValue.Builder builderForValue)

public Row.Builder addDimensionValues(int index, DimensionValue.Builder builderForValue)

List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot.

repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;

Parameters
Name Description
index int
builderForValue DimensionValue.Builder
Returns
Type Description
Row.Builder

addDimensionValuesBuilder()

public DimensionValue.Builder addDimensionValuesBuilder()

List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot.

repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;

Returns
Type Description
DimensionValue.Builder

addDimensionValuesBuilder(int index)

public DimensionValue.Builder addDimensionValuesBuilder(int index)

List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot.

repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;

Parameter
Name Description
index int
Returns
Type Description
DimensionValue.Builder

addMetricValues(MetricValue value)

public Row.Builder addMetricValues(MetricValue value)

List of requested visible metric values.

repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2;

Parameter
Name Description
value MetricValue
Returns
Type Description
Row.Builder

addMetricValues(MetricValue.Builder builderForValue)

public Row.Builder addMetricValues(MetricValue.Builder builderForValue)

List of requested visible metric values.

repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2;

Parameter
Name Description
builderForValue MetricValue.Builder
Returns
Type Description
Row.Builder

addMetricValues(int index, MetricValue value)

public Row.Builder addMetricValues(int index, MetricValue value)

List of requested visible metric values.

repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2;

Parameters
Name Description
index int
value MetricValue
Returns
Type Description
Row.Builder

addMetricValues(int index, MetricValue.Builder builderForValue)

public Row.Builder addMetricValues(int index, MetricValue.Builder builderForValue)

List of requested visible metric values.

repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2;

Parameters
Name Description
index int
builderForValue MetricValue.Builder
Returns
Type Description
Row.Builder

addMetricValuesBuilder()

public MetricValue.Builder addMetricValuesBuilder()

List of requested visible metric values.

repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2;

Returns
Type Description
MetricValue.Builder

addMetricValuesBuilder(int index)

public MetricValue.Builder addMetricValuesBuilder(int index)

List of requested visible metric values.

repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2;

Parameter
Name Description
index int
Returns
Type Description
MetricValue.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Row build()
Returns
Type Description
Row

buildPartial()

public Row buildPartial()
Returns
Type Description
Row

clear()

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

clearDimensionValues()

public Row.Builder clearDimensionValues()

List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot.

repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;

Returns
Type Description
Row.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearMetricValues()

public Row.Builder clearMetricValues()

List of requested visible metric values.

repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2;

Returns
Type Description
Row.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public Row getDefaultInstanceForType()
Returns
Type Description
Row

getDescriptorForType()

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

getDimensionValues(int index)

public DimensionValue getDimensionValues(int index)

List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot.

repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;

Parameter
Name Description
index int
Returns
Type Description
DimensionValue

getDimensionValuesBuilder(int index)

public DimensionValue.Builder getDimensionValuesBuilder(int index)

List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot.

repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;

Parameter
Name Description
index int
Returns
Type Description
DimensionValue.Builder

getDimensionValuesBuilderList()

public List<DimensionValue.Builder> getDimensionValuesBuilderList()

List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot.

repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;

Returns
Type Description
List<Builder>

getDimensionValuesCount()

public int getDimensionValuesCount()

List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot.

repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;

Returns
Type Description
int

getDimensionValuesList()

public List<DimensionValue> getDimensionValuesList()

List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot.

repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;

Returns
Type Description
List<DimensionValue>

getDimensionValuesOrBuilder(int index)

public DimensionValueOrBuilder getDimensionValuesOrBuilder(int index)

List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot.

repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;

Parameter
Name Description
index int
Returns
Type Description
DimensionValueOrBuilder

getDimensionValuesOrBuilderList()

public List<? extends DimensionValueOrBuilder> getDimensionValuesOrBuilderList()

List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot.

repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;

Returns
Type Description
List<? extends com.google.analytics.data.v1alpha.DimensionValueOrBuilder>

getMetricValues(int index)

public MetricValue getMetricValues(int index)

List of requested visible metric values.

repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2;

Parameter
Name Description
index int
Returns
Type Description
MetricValue

getMetricValuesBuilder(int index)

public MetricValue.Builder getMetricValuesBuilder(int index)

List of requested visible metric values.

repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2;

Parameter
Name Description
index int
Returns
Type Description
MetricValue.Builder

getMetricValuesBuilderList()

public List<MetricValue.Builder> getMetricValuesBuilderList()

List of requested visible metric values.

repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2;

Returns
Type Description
List<Builder>

getMetricValuesCount()

public int getMetricValuesCount()

List of requested visible metric values.

repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2;

Returns
Type Description
int

getMetricValuesList()

public List<MetricValue> getMetricValuesList()

List of requested visible metric values.

repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2;

Returns
Type Description
List<MetricValue>

getMetricValuesOrBuilder(int index)

public MetricValueOrBuilder getMetricValuesOrBuilder(int index)

List of requested visible metric values.

repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2;

Parameter
Name Description
index int
Returns
Type Description
MetricValueOrBuilder

getMetricValuesOrBuilderList()

public List<? extends MetricValueOrBuilder> getMetricValuesOrBuilderList()

List of requested visible metric values.

repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2;

Returns
Type Description
List<? extends com.google.analytics.data.v1alpha.MetricValueOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Row other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeDimensionValues(int index)

public Row.Builder removeDimensionValues(int index)

List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot.

repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;

Parameter
Name Description
index int
Returns
Type Description
Row.Builder

removeMetricValues(int index)

public Row.Builder removeMetricValues(int index)

List of requested visible metric values.

repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2;

Parameter
Name Description
index int
Returns
Type Description
Row.Builder

setDimensionValues(int index, DimensionValue value)

public Row.Builder setDimensionValues(int index, DimensionValue value)

List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot.

repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;

Parameters
Name Description
index int
value DimensionValue
Returns
Type Description
Row.Builder

setDimensionValues(int index, DimensionValue.Builder builderForValue)

public Row.Builder setDimensionValues(int index, DimensionValue.Builder builderForValue)

List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot.

repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;

Parameters
Name Description
index int
builderForValue DimensionValue.Builder
Returns
Type Description
Row.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMetricValues(int index, MetricValue value)

public Row.Builder setMetricValues(int index, MetricValue value)

List of requested visible metric values.

repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2;

Parameters
Name Description
index int
value MetricValue
Returns
Type Description
Row.Builder

setMetricValues(int index, MetricValue.Builder builderForValue)

public Row.Builder setMetricValues(int index, MetricValue.Builder builderForValue)

List of requested visible metric values.

repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2;

Parameters
Name Description
index int
builderForValue MetricValue.Builder
Returns
Type Description
Row.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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