Class Row.Builder (0.24.0)

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

Report data for each row. For example if RunReportRequest contains: <code><code>none "dimensions": [ { "name": "eventName" }, { "name": "countryId" } ], "metrics": [ { "name": "eventCount" } ] </code></code><code> One row with 'in_app_purchase' as the eventName, 'JP' as the countryId, and 15 as the eventCount, would be: </code><code><code>none "dimensionValues": [ { "value": "in_app_purchase" }, { "value": "JP" } ], "metricValues": [ { "value": "15" } ] </code></code>

Protobuf type google.analytics.data.v1alpha.Row

Implements

RowOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.analytics.data.v1alpha.DimensionValue>
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.analytics.data.v1alpha.MetricValue>
Returns
TypeDescription
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
NameDescription
valueDimensionValue
Returns
TypeDescription
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
NameDescription
builderForValueDimensionValue.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueDimensionValue
Returns
TypeDescription
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
NameDescription
indexint
builderForValueDimensionValue.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueMetricValue
Returns
TypeDescription
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
NameDescription
builderForValueMetricValue.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueMetricValue
Returns
TypeDescription
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
NameDescription
indexint
builderForValueMetricValue.Builder
Returns
TypeDescription
Row.Builder

addMetricValuesBuilder()

public MetricValue.Builder addMetricValuesBuilder()

List of requested visible metric values.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
MetricValue.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Row.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Row.Builder
Overrides

build()

public Row build()
Returns
TypeDescription
Row

buildPartial()

public Row buildPartial()
Returns
TypeDescription
Row

clear()

public Row.Builder clear()
Returns
TypeDescription
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
TypeDescription
Row.Builder

clearField(Descriptors.FieldDescriptor field)

public Row.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Row.Builder
Overrides

clearMetricValues()

public Row.Builder clearMetricValues()

List of requested visible metric values.

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

Returns
TypeDescription
Row.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Row.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Row.Builder
Overrides

clone()

public Row.Builder clone()
Returns
TypeDescription
Row.Builder
Overrides

getDefaultInstanceForType()

public Row getDefaultInstanceForType()
Returns
TypeDescription
Row

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
MetricValue.Builder

getMetricValuesBuilderList()

public List<MetricValue.Builder> getMetricValuesBuilderList()

List of requested visible metric values.

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

Returns
TypeDescription
List<Builder>

getMetricValuesCount()

public int getMetricValuesCount()

List of requested visible metric values.

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

Returns
TypeDescription
int

getMetricValuesList()

public List<MetricValue> getMetricValuesList()

List of requested visible metric values.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
MetricValueOrBuilder

getMetricValuesOrBuilderList()

public List<? extends MetricValueOrBuilder> getMetricValuesOrBuilderList()

List of requested visible metric values.

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

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Row other)

public Row.Builder mergeFrom(Row other)
Parameter
NameDescription
otherRow
Returns
TypeDescription
Row.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Row.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Row.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Row.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Row.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Row.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueDimensionValue
Returns
TypeDescription
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
NameDescription
indexint
builderForValueDimensionValue.Builder
Returns
TypeDescription
Row.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Row.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueMetricValue
Returns
TypeDescription
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
NameDescription
indexint
builderForValueMetricValue.Builder
Returns
TypeDescription
Row.Builder

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

public Row.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Row.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Row.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Row.Builder
Overrides