Class RunRealtimeReportRequest.Builder (0.30.0)

public static final class RunRealtimeReportRequest.Builder extends GeneratedMessageV3.Builder<RunRealtimeReportRequest.Builder> implements RunRealtimeReportRequestOrBuilder

The request to generate a realtime report.

Protobuf type google.analytics.data.v1beta.RunRealtimeReportRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllDimensions(Iterable<? extends Dimension> values)

public RunRealtimeReportRequest.Builder addAllDimensions(Iterable<? extends Dimension> values)

The dimensions requested and displayed.

repeated .google.analytics.data.v1beta.Dimension dimensions = 2;

Parameter
NameDescription
valuesIterable<? extends com.google.analytics.data.v1beta.Dimension>
Returns
TypeDescription
RunRealtimeReportRequest.Builder

addAllMetricAggregations(Iterable<? extends MetricAggregation> values)

public RunRealtimeReportRequest.Builder addAllMetricAggregations(Iterable<? extends MetricAggregation> values)

Aggregation of metrics. Aggregated metric values will be shown in rows where the dimension_values are set to "RESERVED_(MetricAggregation)".

repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 7;

Parameter
NameDescription
valuesIterable<? extends com.google.analytics.data.v1beta.MetricAggregation>

The metricAggregations to add.

Returns
TypeDescription
RunRealtimeReportRequest.Builder

This builder for chaining.

addAllMetricAggregationsValue(Iterable<Integer> values)

public RunRealtimeReportRequest.Builder addAllMetricAggregationsValue(Iterable<Integer> values)

Aggregation of metrics. Aggregated metric values will be shown in rows where the dimension_values are set to "RESERVED_(MetricAggregation)".

repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 7;

Parameter
NameDescription
valuesIterable<Integer>

The enum numeric values on the wire for metricAggregations to add.

Returns
TypeDescription
RunRealtimeReportRequest.Builder

This builder for chaining.

addAllMetrics(Iterable<? extends Metric> values)

public RunRealtimeReportRequest.Builder addAllMetrics(Iterable<? extends Metric> values)

The metrics requested and displayed.

repeated .google.analytics.data.v1beta.Metric metrics = 3;

Parameter
NameDescription
valuesIterable<? extends com.google.analytics.data.v1beta.Metric>
Returns
TypeDescription
RunRealtimeReportRequest.Builder

addAllMinuteRanges(Iterable<? extends MinuteRange> values)

public RunRealtimeReportRequest.Builder addAllMinuteRanges(Iterable<? extends MinuteRange> values)

The minute ranges of event data to read. If unspecified, one minute range for the last 30 minutes will be used. If multiple minute ranges are requested, each response row will contain a zero based minute range index. If two minute ranges overlap, the event data for the overlapping minutes is included in the response rows for both minute ranges.

repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10;

Parameter
NameDescription
valuesIterable<? extends com.google.analytics.data.v1beta.MinuteRange>
Returns
TypeDescription
RunRealtimeReportRequest.Builder

addAllOrderBys(Iterable<? extends OrderBy> values)

public RunRealtimeReportRequest.Builder addAllOrderBys(Iterable<? extends OrderBy> values)

Specifies how rows are ordered in the response.

repeated .google.analytics.data.v1beta.OrderBy order_bys = 8;

Parameter
NameDescription
valuesIterable<? extends com.google.analytics.data.v1beta.OrderBy>
Returns
TypeDescription
RunRealtimeReportRequest.Builder

addDimensions(Dimension value)

public RunRealtimeReportRequest.Builder addDimensions(Dimension value)

The dimensions requested and displayed.

repeated .google.analytics.data.v1beta.Dimension dimensions = 2;

Parameter
NameDescription
valueDimension
Returns
TypeDescription
RunRealtimeReportRequest.Builder

addDimensions(Dimension.Builder builderForValue)

public RunRealtimeReportRequest.Builder addDimensions(Dimension.Builder builderForValue)

The dimensions requested and displayed.

repeated .google.analytics.data.v1beta.Dimension dimensions = 2;

Parameter
NameDescription
builderForValueDimension.Builder
Returns
TypeDescription
RunRealtimeReportRequest.Builder

addDimensions(int index, Dimension value)

public RunRealtimeReportRequest.Builder addDimensions(int index, Dimension value)

The dimensions requested and displayed.

repeated .google.analytics.data.v1beta.Dimension dimensions = 2;

Parameters
NameDescription
indexint
valueDimension
Returns
TypeDescription
RunRealtimeReportRequest.Builder

addDimensions(int index, Dimension.Builder builderForValue)

public RunRealtimeReportRequest.Builder addDimensions(int index, Dimension.Builder builderForValue)

The dimensions requested and displayed.

repeated .google.analytics.data.v1beta.Dimension dimensions = 2;

Parameters
NameDescription
indexint
builderForValueDimension.Builder
Returns
TypeDescription
RunRealtimeReportRequest.Builder

addDimensionsBuilder()

public Dimension.Builder addDimensionsBuilder()

The dimensions requested and displayed.

repeated .google.analytics.data.v1beta.Dimension dimensions = 2;

Returns
TypeDescription
Dimension.Builder

addDimensionsBuilder(int index)

public Dimension.Builder addDimensionsBuilder(int index)

The dimensions requested and displayed.

repeated .google.analytics.data.v1beta.Dimension dimensions = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Dimension.Builder

addMetricAggregations(MetricAggregation value)

public RunRealtimeReportRequest.Builder addMetricAggregations(MetricAggregation value)

Aggregation of metrics. Aggregated metric values will be shown in rows where the dimension_values are set to "RESERVED_(MetricAggregation)".

repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 7;

Parameter
NameDescription
valueMetricAggregation

The metricAggregations to add.

Returns
TypeDescription
RunRealtimeReportRequest.Builder

This builder for chaining.

addMetricAggregationsValue(int value)

public RunRealtimeReportRequest.Builder addMetricAggregationsValue(int value)

Aggregation of metrics. Aggregated metric values will be shown in rows where the dimension_values are set to "RESERVED_(MetricAggregation)".

repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 7;

Parameter
NameDescription
valueint

The enum numeric value on the wire for metricAggregations to add.

Returns
TypeDescription
RunRealtimeReportRequest.Builder

This builder for chaining.

addMetrics(Metric value)

public RunRealtimeReportRequest.Builder addMetrics(Metric value)

The metrics requested and displayed.

repeated .google.analytics.data.v1beta.Metric metrics = 3;

Parameter
NameDescription
valueMetric
Returns
TypeDescription
RunRealtimeReportRequest.Builder

addMetrics(Metric.Builder builderForValue)

public RunRealtimeReportRequest.Builder addMetrics(Metric.Builder builderForValue)

The metrics requested and displayed.

repeated .google.analytics.data.v1beta.Metric metrics = 3;

Parameter
NameDescription
builderForValueMetric.Builder
Returns
TypeDescription
RunRealtimeReportRequest.Builder

addMetrics(int index, Metric value)

public RunRealtimeReportRequest.Builder addMetrics(int index, Metric value)

The metrics requested and displayed.

repeated .google.analytics.data.v1beta.Metric metrics = 3;

Parameters
NameDescription
indexint
valueMetric
Returns
TypeDescription
RunRealtimeReportRequest.Builder

addMetrics(int index, Metric.Builder builderForValue)

public RunRealtimeReportRequest.Builder addMetrics(int index, Metric.Builder builderForValue)

The metrics requested and displayed.

repeated .google.analytics.data.v1beta.Metric metrics = 3;

Parameters
NameDescription
indexint
builderForValueMetric.Builder
Returns
TypeDescription
RunRealtimeReportRequest.Builder

addMetricsBuilder()

public Metric.Builder addMetricsBuilder()

The metrics requested and displayed.

repeated .google.analytics.data.v1beta.Metric metrics = 3;

Returns
TypeDescription
Metric.Builder

addMetricsBuilder(int index)

public Metric.Builder addMetricsBuilder(int index)

The metrics requested and displayed.

repeated .google.analytics.data.v1beta.Metric metrics = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
Metric.Builder

addMinuteRanges(MinuteRange value)

public RunRealtimeReportRequest.Builder addMinuteRanges(MinuteRange value)

The minute ranges of event data to read. If unspecified, one minute range for the last 30 minutes will be used. If multiple minute ranges are requested, each response row will contain a zero based minute range index. If two minute ranges overlap, the event data for the overlapping minutes is included in the response rows for both minute ranges.

repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10;

Parameter
NameDescription
valueMinuteRange
Returns
TypeDescription
RunRealtimeReportRequest.Builder

addMinuteRanges(MinuteRange.Builder builderForValue)

public RunRealtimeReportRequest.Builder addMinuteRanges(MinuteRange.Builder builderForValue)

The minute ranges of event data to read. If unspecified, one minute range for the last 30 minutes will be used. If multiple minute ranges are requested, each response row will contain a zero based minute range index. If two minute ranges overlap, the event data for the overlapping minutes is included in the response rows for both minute ranges.

repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10;

Parameter
NameDescription
builderForValueMinuteRange.Builder
Returns
TypeDescription
RunRealtimeReportRequest.Builder

addMinuteRanges(int index, MinuteRange value)

public RunRealtimeReportRequest.Builder addMinuteRanges(int index, MinuteRange value)

The minute ranges of event data to read. If unspecified, one minute range for the last 30 minutes will be used. If multiple minute ranges are requested, each response row will contain a zero based minute range index. If two minute ranges overlap, the event data for the overlapping minutes is included in the response rows for both minute ranges.

repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10;

Parameters
NameDescription
indexint
valueMinuteRange
Returns
TypeDescription
RunRealtimeReportRequest.Builder

addMinuteRanges(int index, MinuteRange.Builder builderForValue)

public RunRealtimeReportRequest.Builder addMinuteRanges(int index, MinuteRange.Builder builderForValue)

The minute ranges of event data to read. If unspecified, one minute range for the last 30 minutes will be used. If multiple minute ranges are requested, each response row will contain a zero based minute range index. If two minute ranges overlap, the event data for the overlapping minutes is included in the response rows for both minute ranges.

repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10;

Parameters
NameDescription
indexint
builderForValueMinuteRange.Builder
Returns
TypeDescription
RunRealtimeReportRequest.Builder

addMinuteRangesBuilder()

public MinuteRange.Builder addMinuteRangesBuilder()

The minute ranges of event data to read. If unspecified, one minute range for the last 30 minutes will be used. If multiple minute ranges are requested, each response row will contain a zero based minute range index. If two minute ranges overlap, the event data for the overlapping minutes is included in the response rows for both minute ranges.

repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10;

Returns
TypeDescription
MinuteRange.Builder

addMinuteRangesBuilder(int index)

public MinuteRange.Builder addMinuteRangesBuilder(int index)

The minute ranges of event data to read. If unspecified, one minute range for the last 30 minutes will be used. If multiple minute ranges are requested, each response row will contain a zero based minute range index. If two minute ranges overlap, the event data for the overlapping minutes is included in the response rows for both minute ranges.

repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
MinuteRange.Builder

addOrderBys(OrderBy value)

public RunRealtimeReportRequest.Builder addOrderBys(OrderBy value)

Specifies how rows are ordered in the response.

repeated .google.analytics.data.v1beta.OrderBy order_bys = 8;

Parameter
NameDescription
valueOrderBy
Returns
TypeDescription
RunRealtimeReportRequest.Builder

addOrderBys(OrderBy.Builder builderForValue)

public RunRealtimeReportRequest.Builder addOrderBys(OrderBy.Builder builderForValue)

Specifies how rows are ordered in the response.

repeated .google.analytics.data.v1beta.OrderBy order_bys = 8;

Parameter
NameDescription
builderForValueOrderBy.Builder
Returns
TypeDescription
RunRealtimeReportRequest.Builder

addOrderBys(int index, OrderBy value)

public RunRealtimeReportRequest.Builder addOrderBys(int index, OrderBy value)

Specifies how rows are ordered in the response.

repeated .google.analytics.data.v1beta.OrderBy order_bys = 8;

Parameters
NameDescription
indexint
valueOrderBy
Returns
TypeDescription
RunRealtimeReportRequest.Builder

addOrderBys(int index, OrderBy.Builder builderForValue)

public RunRealtimeReportRequest.Builder addOrderBys(int index, OrderBy.Builder builderForValue)

Specifies how rows are ordered in the response.

repeated .google.analytics.data.v1beta.OrderBy order_bys = 8;

Parameters
NameDescription
indexint
builderForValueOrderBy.Builder
Returns
TypeDescription
RunRealtimeReportRequest.Builder

addOrderBysBuilder()

public OrderBy.Builder addOrderBysBuilder()

Specifies how rows are ordered in the response.

repeated .google.analytics.data.v1beta.OrderBy order_bys = 8;

Returns
TypeDescription
OrderBy.Builder

addOrderBysBuilder(int index)

public OrderBy.Builder addOrderBysBuilder(int index)

Specifies how rows are ordered in the response.

repeated .google.analytics.data.v1beta.OrderBy order_bys = 8;

Parameter
NameDescription
indexint
Returns
TypeDescription
OrderBy.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RunRealtimeReportRequest build()
Returns
TypeDescription
RunRealtimeReportRequest

buildPartial()

public RunRealtimeReportRequest buildPartial()
Returns
TypeDescription
RunRealtimeReportRequest

clear()

public RunRealtimeReportRequest.Builder clear()
Returns
TypeDescription
RunRealtimeReportRequest.Builder
Overrides

clearDimensionFilter()

public RunRealtimeReportRequest.Builder clearDimensionFilter()

The filter clause of dimensions. Metrics cannot be used in this filter.

.google.analytics.data.v1beta.FilterExpression dimension_filter = 4;

Returns
TypeDescription
RunRealtimeReportRequest.Builder

clearDimensions()

public RunRealtimeReportRequest.Builder clearDimensions()

The dimensions requested and displayed.

repeated .google.analytics.data.v1beta.Dimension dimensions = 2;

Returns
TypeDescription
RunRealtimeReportRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearLimit()

public RunRealtimeReportRequest.Builder clearLimit()

The number of rows to return. If unspecified, 10,000 rows are returned. The API returns a maximum of 100,000 rows per request, no matter how many you ask for. limit must be positive.

The API can also return fewer rows than the requested limit, if there aren't as many dimension values as the limit. For instance, there are fewer than 300 possible values for the dimension country, so when reporting on only country, you can't get more than 300 rows, even if you set limit to a higher value.

int64 limit = 6;

Returns
TypeDescription
RunRealtimeReportRequest.Builder

This builder for chaining.

clearMetricAggregations()

public RunRealtimeReportRequest.Builder clearMetricAggregations()

Aggregation of metrics. Aggregated metric values will be shown in rows where the dimension_values are set to "RESERVED_(MetricAggregation)".

repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 7;

Returns
TypeDescription
RunRealtimeReportRequest.Builder

This builder for chaining.

clearMetricFilter()

public RunRealtimeReportRequest.Builder clearMetricFilter()

The filter clause of metrics. Applied at post aggregation phase, similar to SQL having-clause. Dimensions cannot be used in this filter.

.google.analytics.data.v1beta.FilterExpression metric_filter = 5;

Returns
TypeDescription
RunRealtimeReportRequest.Builder

clearMetrics()

public RunRealtimeReportRequest.Builder clearMetrics()

The metrics requested and displayed.

repeated .google.analytics.data.v1beta.Metric metrics = 3;

Returns
TypeDescription
RunRealtimeReportRequest.Builder

clearMinuteRanges()

public RunRealtimeReportRequest.Builder clearMinuteRanges()

The minute ranges of event data to read. If unspecified, one minute range for the last 30 minutes will be used. If multiple minute ranges are requested, each response row will contain a zero based minute range index. If two minute ranges overlap, the event data for the overlapping minutes is included in the response rows for both minute ranges.

repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10;

Returns
TypeDescription
RunRealtimeReportRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOrderBys()

public RunRealtimeReportRequest.Builder clearOrderBys()

Specifies how rows are ordered in the response.

repeated .google.analytics.data.v1beta.OrderBy order_bys = 8;

Returns
TypeDescription
RunRealtimeReportRequest.Builder

clearProperty()

public RunRealtimeReportRequest.Builder clearProperty()

A Google Analytics GA4 property identifier whose events are tracked. Specified in the URL path and not the body. To learn more, see where to find your Property ID.

Example: properties/1234

string property = 1;

Returns
TypeDescription
RunRealtimeReportRequest.Builder

This builder for chaining.

clearReturnPropertyQuota()

public RunRealtimeReportRequest.Builder clearReturnPropertyQuota()

Toggles whether to return the current state of this Analytics Property's Realtime quota. Quota is returned in PropertyQuota.

bool return_property_quota = 9;

Returns
TypeDescription
RunRealtimeReportRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public RunRealtimeReportRequest getDefaultInstanceForType()
Returns
TypeDescription
RunRealtimeReportRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDimensionFilter()

public FilterExpression getDimensionFilter()

The filter clause of dimensions. Metrics cannot be used in this filter.

.google.analytics.data.v1beta.FilterExpression dimension_filter = 4;

Returns
TypeDescription
FilterExpression

The dimensionFilter.

getDimensionFilterBuilder()

public FilterExpression.Builder getDimensionFilterBuilder()

The filter clause of dimensions. Metrics cannot be used in this filter.

.google.analytics.data.v1beta.FilterExpression dimension_filter = 4;

Returns
TypeDescription
FilterExpression.Builder

getDimensionFilterOrBuilder()

public FilterExpressionOrBuilder getDimensionFilterOrBuilder()

The filter clause of dimensions. Metrics cannot be used in this filter.

.google.analytics.data.v1beta.FilterExpression dimension_filter = 4;

Returns
TypeDescription
FilterExpressionOrBuilder

getDimensions(int index)

public Dimension getDimensions(int index)

The dimensions requested and displayed.

repeated .google.analytics.data.v1beta.Dimension dimensions = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Dimension

getDimensionsBuilder(int index)

public Dimension.Builder getDimensionsBuilder(int index)

The dimensions requested and displayed.

repeated .google.analytics.data.v1beta.Dimension dimensions = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Dimension.Builder

getDimensionsBuilderList()

public List<Dimension.Builder> getDimensionsBuilderList()

The dimensions requested and displayed.

repeated .google.analytics.data.v1beta.Dimension dimensions = 2;

Returns
TypeDescription
List<Builder>

getDimensionsCount()

public int getDimensionsCount()

The dimensions requested and displayed.

repeated .google.analytics.data.v1beta.Dimension dimensions = 2;

Returns
TypeDescription
int

getDimensionsList()

public List<Dimension> getDimensionsList()

The dimensions requested and displayed.

repeated .google.analytics.data.v1beta.Dimension dimensions = 2;

Returns
TypeDescription
List<Dimension>

getDimensionsOrBuilder(int index)

public DimensionOrBuilder getDimensionsOrBuilder(int index)

The dimensions requested and displayed.

repeated .google.analytics.data.v1beta.Dimension dimensions = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
DimensionOrBuilder

getDimensionsOrBuilderList()

public List<? extends DimensionOrBuilder> getDimensionsOrBuilderList()

The dimensions requested and displayed.

repeated .google.analytics.data.v1beta.Dimension dimensions = 2;

Returns
TypeDescription
List<? extends com.google.analytics.data.v1beta.DimensionOrBuilder>

getLimit()

public long getLimit()

The number of rows to return. If unspecified, 10,000 rows are returned. The API returns a maximum of 100,000 rows per request, no matter how many you ask for. limit must be positive.

The API can also return fewer rows than the requested limit, if there aren't as many dimension values as the limit. For instance, there are fewer than 300 possible values for the dimension country, so when reporting on only country, you can't get more than 300 rows, even if you set limit to a higher value.

int64 limit = 6;

Returns
TypeDescription
long

The limit.

getMetricAggregations(int index)

public MetricAggregation getMetricAggregations(int index)

Aggregation of metrics. Aggregated metric values will be shown in rows where the dimension_values are set to "RESERVED_(MetricAggregation)".

repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 7;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
MetricAggregation

The metricAggregations at the given index.

getMetricAggregationsCount()

public int getMetricAggregationsCount()

Aggregation of metrics. Aggregated metric values will be shown in rows where the dimension_values are set to "RESERVED_(MetricAggregation)".

repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 7;

Returns
TypeDescription
int

The count of metricAggregations.

getMetricAggregationsList()

public List<MetricAggregation> getMetricAggregationsList()

Aggregation of metrics. Aggregated metric values will be shown in rows where the dimension_values are set to "RESERVED_(MetricAggregation)".

repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 7;

Returns
TypeDescription
List<MetricAggregation>

A list containing the metricAggregations.

getMetricAggregationsValue(int index)

public int getMetricAggregationsValue(int index)

Aggregation of metrics. Aggregated metric values will be shown in rows where the dimension_values are set to "RESERVED_(MetricAggregation)".

repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 7;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
int

The enum numeric value on the wire of metricAggregations at the given index.

getMetricAggregationsValueList()

public List<Integer> getMetricAggregationsValueList()

Aggregation of metrics. Aggregated metric values will be shown in rows where the dimension_values are set to "RESERVED_(MetricAggregation)".

repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 7;

Returns
TypeDescription
List<Integer>

A list containing the enum numeric values on the wire for metricAggregations.

getMetricFilter()

public FilterExpression getMetricFilter()

The filter clause of metrics. Applied at post aggregation phase, similar to SQL having-clause. Dimensions cannot be used in this filter.

.google.analytics.data.v1beta.FilterExpression metric_filter = 5;

Returns
TypeDescription
FilterExpression

The metricFilter.

getMetricFilterBuilder()

public FilterExpression.Builder getMetricFilterBuilder()

The filter clause of metrics. Applied at post aggregation phase, similar to SQL having-clause. Dimensions cannot be used in this filter.

.google.analytics.data.v1beta.FilterExpression metric_filter = 5;

Returns
TypeDescription
FilterExpression.Builder

getMetricFilterOrBuilder()

public FilterExpressionOrBuilder getMetricFilterOrBuilder()

The filter clause of metrics. Applied at post aggregation phase, similar to SQL having-clause. Dimensions cannot be used in this filter.

.google.analytics.data.v1beta.FilterExpression metric_filter = 5;

Returns
TypeDescription
FilterExpressionOrBuilder

getMetrics(int index)

public Metric getMetrics(int index)

The metrics requested and displayed.

repeated .google.analytics.data.v1beta.Metric metrics = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
Metric

getMetricsBuilder(int index)

public Metric.Builder getMetricsBuilder(int index)

The metrics requested and displayed.

repeated .google.analytics.data.v1beta.Metric metrics = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
Metric.Builder

getMetricsBuilderList()

public List<Metric.Builder> getMetricsBuilderList()

The metrics requested and displayed.

repeated .google.analytics.data.v1beta.Metric metrics = 3;

Returns
TypeDescription
List<Builder>

getMetricsCount()

public int getMetricsCount()

The metrics requested and displayed.

repeated .google.analytics.data.v1beta.Metric metrics = 3;

Returns
TypeDescription
int

getMetricsList()

public List<Metric> getMetricsList()

The metrics requested and displayed.

repeated .google.analytics.data.v1beta.Metric metrics = 3;

Returns
TypeDescription
List<Metric>

getMetricsOrBuilder(int index)

public MetricOrBuilder getMetricsOrBuilder(int index)

The metrics requested and displayed.

repeated .google.analytics.data.v1beta.Metric metrics = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
MetricOrBuilder

getMetricsOrBuilderList()

public List<? extends MetricOrBuilder> getMetricsOrBuilderList()

The metrics requested and displayed.

repeated .google.analytics.data.v1beta.Metric metrics = 3;

Returns
TypeDescription
List<? extends com.google.analytics.data.v1beta.MetricOrBuilder>

getMinuteRanges(int index)

public MinuteRange getMinuteRanges(int index)

The minute ranges of event data to read. If unspecified, one minute range for the last 30 minutes will be used. If multiple minute ranges are requested, each response row will contain a zero based minute range index. If two minute ranges overlap, the event data for the overlapping minutes is included in the response rows for both minute ranges.

repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
MinuteRange

getMinuteRangesBuilder(int index)

public MinuteRange.Builder getMinuteRangesBuilder(int index)

The minute ranges of event data to read. If unspecified, one minute range for the last 30 minutes will be used. If multiple minute ranges are requested, each response row will contain a zero based minute range index. If two minute ranges overlap, the event data for the overlapping minutes is included in the response rows for both minute ranges.

repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
MinuteRange.Builder

getMinuteRangesBuilderList()

public List<MinuteRange.Builder> getMinuteRangesBuilderList()

The minute ranges of event data to read. If unspecified, one minute range for the last 30 minutes will be used. If multiple minute ranges are requested, each response row will contain a zero based minute range index. If two minute ranges overlap, the event data for the overlapping minutes is included in the response rows for both minute ranges.

repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10;

Returns
TypeDescription
List<Builder>

getMinuteRangesCount()

public int getMinuteRangesCount()

The minute ranges of event data to read. If unspecified, one minute range for the last 30 minutes will be used. If multiple minute ranges are requested, each response row will contain a zero based minute range index. If two minute ranges overlap, the event data for the overlapping minutes is included in the response rows for both minute ranges.

repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10;

Returns
TypeDescription
int

getMinuteRangesList()

public List<MinuteRange> getMinuteRangesList()

The minute ranges of event data to read. If unspecified, one minute range for the last 30 minutes will be used. If multiple minute ranges are requested, each response row will contain a zero based minute range index. If two minute ranges overlap, the event data for the overlapping minutes is included in the response rows for both minute ranges.

repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10;

Returns
TypeDescription
List<MinuteRange>

getMinuteRangesOrBuilder(int index)

public MinuteRangeOrBuilder getMinuteRangesOrBuilder(int index)

The minute ranges of event data to read. If unspecified, one minute range for the last 30 minutes will be used. If multiple minute ranges are requested, each response row will contain a zero based minute range index. If two minute ranges overlap, the event data for the overlapping minutes is included in the response rows for both minute ranges.

repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
MinuteRangeOrBuilder

getMinuteRangesOrBuilderList()

public List<? extends MinuteRangeOrBuilder> getMinuteRangesOrBuilderList()

The minute ranges of event data to read. If unspecified, one minute range for the last 30 minutes will be used. If multiple minute ranges are requested, each response row will contain a zero based minute range index. If two minute ranges overlap, the event data for the overlapping minutes is included in the response rows for both minute ranges.

repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10;

Returns
TypeDescription
List<? extends com.google.analytics.data.v1beta.MinuteRangeOrBuilder>

getOrderBys(int index)

public OrderBy getOrderBys(int index)

Specifies how rows are ordered in the response.

repeated .google.analytics.data.v1beta.OrderBy order_bys = 8;

Parameter
NameDescription
indexint
Returns
TypeDescription
OrderBy

getOrderBysBuilder(int index)

public OrderBy.Builder getOrderBysBuilder(int index)

Specifies how rows are ordered in the response.

repeated .google.analytics.data.v1beta.OrderBy order_bys = 8;

Parameter
NameDescription
indexint
Returns
TypeDescription
OrderBy.Builder

getOrderBysBuilderList()

public List<OrderBy.Builder> getOrderBysBuilderList()

Specifies how rows are ordered in the response.

repeated .google.analytics.data.v1beta.OrderBy order_bys = 8;

Returns
TypeDescription
List<Builder>

getOrderBysCount()

public int getOrderBysCount()

Specifies how rows are ordered in the response.

repeated .google.analytics.data.v1beta.OrderBy order_bys = 8;

Returns
TypeDescription
int

getOrderBysList()

public List<OrderBy> getOrderBysList()

Specifies how rows are ordered in the response.

repeated .google.analytics.data.v1beta.OrderBy order_bys = 8;

Returns
TypeDescription
List<OrderBy>

getOrderBysOrBuilder(int index)

public OrderByOrBuilder getOrderBysOrBuilder(int index)

Specifies how rows are ordered in the response.

repeated .google.analytics.data.v1beta.OrderBy order_bys = 8;

Parameter
NameDescription
indexint
Returns
TypeDescription
OrderByOrBuilder

getOrderBysOrBuilderList()

public List<? extends OrderByOrBuilder> getOrderBysOrBuilderList()

Specifies how rows are ordered in the response.

repeated .google.analytics.data.v1beta.OrderBy order_bys = 8;

Returns
TypeDescription
List<? extends com.google.analytics.data.v1beta.OrderByOrBuilder>

getProperty()

public String getProperty()

A Google Analytics GA4 property identifier whose events are tracked. Specified in the URL path and not the body. To learn more, see where to find your Property ID.

Example: properties/1234

string property = 1;

Returns
TypeDescription
String

The property.

getPropertyBytes()

public ByteString getPropertyBytes()

A Google Analytics GA4 property identifier whose events are tracked. Specified in the URL path and not the body. To learn more, see where to find your Property ID.

Example: properties/1234

string property = 1;

Returns
TypeDescription
ByteString

The bytes for property.

getReturnPropertyQuota()

public boolean getReturnPropertyQuota()

Toggles whether to return the current state of this Analytics Property's Realtime quota. Quota is returned in PropertyQuota.

bool return_property_quota = 9;

Returns
TypeDescription
boolean

The returnPropertyQuota.

hasDimensionFilter()

public boolean hasDimensionFilter()

The filter clause of dimensions. Metrics cannot be used in this filter.

.google.analytics.data.v1beta.FilterExpression dimension_filter = 4;

Returns
TypeDescription
boolean

Whether the dimensionFilter field is set.

hasMetricFilter()

public boolean hasMetricFilter()

The filter clause of metrics. Applied at post aggregation phase, similar to SQL having-clause. Dimensions cannot be used in this filter.

.google.analytics.data.v1beta.FilterExpression metric_filter = 5;

Returns
TypeDescription
boolean

Whether the metricFilter field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeDimensionFilter(FilterExpression value)

public RunRealtimeReportRequest.Builder mergeDimensionFilter(FilterExpression value)

The filter clause of dimensions. Metrics cannot be used in this filter.

.google.analytics.data.v1beta.FilterExpression dimension_filter = 4;

Parameter
NameDescription
valueFilterExpression
Returns
TypeDescription
RunRealtimeReportRequest.Builder

mergeFrom(RunRealtimeReportRequest other)

public RunRealtimeReportRequest.Builder mergeFrom(RunRealtimeReportRequest other)
Parameter
NameDescription
otherRunRealtimeReportRequest
Returns
TypeDescription
RunRealtimeReportRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMetricFilter(FilterExpression value)

public RunRealtimeReportRequest.Builder mergeMetricFilter(FilterExpression value)

The filter clause of metrics. Applied at post aggregation phase, similar to SQL having-clause. Dimensions cannot be used in this filter.

.google.analytics.data.v1beta.FilterExpression metric_filter = 5;

Parameter
NameDescription
valueFilterExpression
Returns
TypeDescription
RunRealtimeReportRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RunRealtimeReportRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RunRealtimeReportRequest.Builder
Overrides

removeDimensions(int index)

public RunRealtimeReportRequest.Builder removeDimensions(int index)

The dimensions requested and displayed.

repeated .google.analytics.data.v1beta.Dimension dimensions = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
RunRealtimeReportRequest.Builder

removeMetrics(int index)

public RunRealtimeReportRequest.Builder removeMetrics(int index)

The metrics requested and displayed.

repeated .google.analytics.data.v1beta.Metric metrics = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
RunRealtimeReportRequest.Builder

removeMinuteRanges(int index)

public RunRealtimeReportRequest.Builder removeMinuteRanges(int index)

The minute ranges of event data to read. If unspecified, one minute range for the last 30 minutes will be used. If multiple minute ranges are requested, each response row will contain a zero based minute range index. If two minute ranges overlap, the event data for the overlapping minutes is included in the response rows for both minute ranges.

repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
RunRealtimeReportRequest.Builder

removeOrderBys(int index)

public RunRealtimeReportRequest.Builder removeOrderBys(int index)

Specifies how rows are ordered in the response.

repeated .google.analytics.data.v1beta.OrderBy order_bys = 8;

Parameter
NameDescription
indexint
Returns
TypeDescription
RunRealtimeReportRequest.Builder

setDimensionFilter(FilterExpression value)

public RunRealtimeReportRequest.Builder setDimensionFilter(FilterExpression value)

The filter clause of dimensions. Metrics cannot be used in this filter.

.google.analytics.data.v1beta.FilterExpression dimension_filter = 4;

Parameter
NameDescription
valueFilterExpression
Returns
TypeDescription
RunRealtimeReportRequest.Builder

setDimensionFilter(FilterExpression.Builder builderForValue)

public RunRealtimeReportRequest.Builder setDimensionFilter(FilterExpression.Builder builderForValue)

The filter clause of dimensions. Metrics cannot be used in this filter.

.google.analytics.data.v1beta.FilterExpression dimension_filter = 4;

Parameter
NameDescription
builderForValueFilterExpression.Builder
Returns
TypeDescription
RunRealtimeReportRequest.Builder

setDimensions(int index, Dimension value)

public RunRealtimeReportRequest.Builder setDimensions(int index, Dimension value)

The dimensions requested and displayed.

repeated .google.analytics.data.v1beta.Dimension dimensions = 2;

Parameters
NameDescription
indexint
valueDimension
Returns
TypeDescription
RunRealtimeReportRequest.Builder

setDimensions(int index, Dimension.Builder builderForValue)

public RunRealtimeReportRequest.Builder setDimensions(int index, Dimension.Builder builderForValue)

The dimensions requested and displayed.

repeated .google.analytics.data.v1beta.Dimension dimensions = 2;

Parameters
NameDescription
indexint
builderForValueDimension.Builder
Returns
TypeDescription
RunRealtimeReportRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setLimit(long value)

public RunRealtimeReportRequest.Builder setLimit(long value)

The number of rows to return. If unspecified, 10,000 rows are returned. The API returns a maximum of 100,000 rows per request, no matter how many you ask for. limit must be positive.

The API can also return fewer rows than the requested limit, if there aren't as many dimension values as the limit. For instance, there are fewer than 300 possible values for the dimension country, so when reporting on only country, you can't get more than 300 rows, even if you set limit to a higher value.

int64 limit = 6;

Parameter
NameDescription
valuelong

The limit to set.

Returns
TypeDescription
RunRealtimeReportRequest.Builder

This builder for chaining.

setMetricAggregations(int index, MetricAggregation value)

public RunRealtimeReportRequest.Builder setMetricAggregations(int index, MetricAggregation value)

Aggregation of metrics. Aggregated metric values will be shown in rows where the dimension_values are set to "RESERVED_(MetricAggregation)".

repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 7;

Parameters
NameDescription
indexint

The index to set the value at.

valueMetricAggregation

The metricAggregations to set.

Returns
TypeDescription
RunRealtimeReportRequest.Builder

This builder for chaining.

setMetricAggregationsValue(int index, int value)

public RunRealtimeReportRequest.Builder setMetricAggregationsValue(int index, int value)

Aggregation of metrics. Aggregated metric values will be shown in rows where the dimension_values are set to "RESERVED_(MetricAggregation)".

repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 7;

Parameters
NameDescription
indexint

The index to set the value at.

valueint

The enum numeric value on the wire for metricAggregations to set.

Returns
TypeDescription
RunRealtimeReportRequest.Builder

This builder for chaining.

setMetricFilter(FilterExpression value)

public RunRealtimeReportRequest.Builder setMetricFilter(FilterExpression value)

The filter clause of metrics. Applied at post aggregation phase, similar to SQL having-clause. Dimensions cannot be used in this filter.

.google.analytics.data.v1beta.FilterExpression metric_filter = 5;

Parameter
NameDescription
valueFilterExpression
Returns
TypeDescription
RunRealtimeReportRequest.Builder

setMetricFilter(FilterExpression.Builder builderForValue)

public RunRealtimeReportRequest.Builder setMetricFilter(FilterExpression.Builder builderForValue)

The filter clause of metrics. Applied at post aggregation phase, similar to SQL having-clause. Dimensions cannot be used in this filter.

.google.analytics.data.v1beta.FilterExpression metric_filter = 5;

Parameter
NameDescription
builderForValueFilterExpression.Builder
Returns
TypeDescription
RunRealtimeReportRequest.Builder

setMetrics(int index, Metric value)

public RunRealtimeReportRequest.Builder setMetrics(int index, Metric value)

The metrics requested and displayed.

repeated .google.analytics.data.v1beta.Metric metrics = 3;

Parameters
NameDescription
indexint
valueMetric
Returns
TypeDescription
RunRealtimeReportRequest.Builder

setMetrics(int index, Metric.Builder builderForValue)

public RunRealtimeReportRequest.Builder setMetrics(int index, Metric.Builder builderForValue)

The metrics requested and displayed.

repeated .google.analytics.data.v1beta.Metric metrics = 3;

Parameters
NameDescription
indexint
builderForValueMetric.Builder
Returns
TypeDescription
RunRealtimeReportRequest.Builder

setMinuteRanges(int index, MinuteRange value)

public RunRealtimeReportRequest.Builder setMinuteRanges(int index, MinuteRange value)

The minute ranges of event data to read. If unspecified, one minute range for the last 30 minutes will be used. If multiple minute ranges are requested, each response row will contain a zero based minute range index. If two minute ranges overlap, the event data for the overlapping minutes is included in the response rows for both minute ranges.

repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10;

Parameters
NameDescription
indexint
valueMinuteRange
Returns
TypeDescription
RunRealtimeReportRequest.Builder

setMinuteRanges(int index, MinuteRange.Builder builderForValue)

public RunRealtimeReportRequest.Builder setMinuteRanges(int index, MinuteRange.Builder builderForValue)

The minute ranges of event data to read. If unspecified, one minute range for the last 30 minutes will be used. If multiple minute ranges are requested, each response row will contain a zero based minute range index. If two minute ranges overlap, the event data for the overlapping minutes is included in the response rows for both minute ranges.

repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10;

Parameters
NameDescription
indexint
builderForValueMinuteRange.Builder
Returns
TypeDescription
RunRealtimeReportRequest.Builder

setOrderBys(int index, OrderBy value)

public RunRealtimeReportRequest.Builder setOrderBys(int index, OrderBy value)

Specifies how rows are ordered in the response.

repeated .google.analytics.data.v1beta.OrderBy order_bys = 8;

Parameters
NameDescription
indexint
valueOrderBy
Returns
TypeDescription
RunRealtimeReportRequest.Builder

setOrderBys(int index, OrderBy.Builder builderForValue)

public RunRealtimeReportRequest.Builder setOrderBys(int index, OrderBy.Builder builderForValue)

Specifies how rows are ordered in the response.

repeated .google.analytics.data.v1beta.OrderBy order_bys = 8;

Parameters
NameDescription
indexint
builderForValueOrderBy.Builder
Returns
TypeDescription
RunRealtimeReportRequest.Builder

setProperty(String value)

public RunRealtimeReportRequest.Builder setProperty(String value)

A Google Analytics GA4 property identifier whose events are tracked. Specified in the URL path and not the body. To learn more, see where to find your Property ID.

Example: properties/1234

string property = 1;

Parameter
NameDescription
valueString

The property to set.

Returns
TypeDescription
RunRealtimeReportRequest.Builder

This builder for chaining.

setPropertyBytes(ByteString value)

public RunRealtimeReportRequest.Builder setPropertyBytes(ByteString value)

A Google Analytics GA4 property identifier whose events are tracked. Specified in the URL path and not the body. To learn more, see where to find your Property ID.

Example: properties/1234

string property = 1;

Parameter
NameDescription
valueByteString

The bytes for property to set.

Returns
TypeDescription
RunRealtimeReportRequest.Builder

This builder for chaining.

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

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

setReturnPropertyQuota(boolean value)

public RunRealtimeReportRequest.Builder setReturnPropertyQuota(boolean value)

Toggles whether to return the current state of this Analytics Property's Realtime quota. Quota is returned in PropertyQuota.

bool return_property_quota = 9;

Parameter
NameDescription
valueboolean

The returnPropertyQuota to set.

Returns
TypeDescription
RunRealtimeReportRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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