Class PivotHeader.Builder (0.60.0)

public static final class PivotHeader.Builder extends GeneratedMessageV3.Builder<PivotHeader.Builder> implements PivotHeaderOrBuilder

Dimensions' values in a single pivot.

Protobuf type google.analytics.data.v1beta.PivotHeader

Static Methods

getDescriptor()

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

Methods

addAllPivotDimensionHeaders(Iterable<? extends PivotDimensionHeader> values)

public PivotHeader.Builder addAllPivotDimensionHeaders(Iterable<? extends PivotDimensionHeader> values)

The size is the same as the cardinality of the corresponding dimension combinations.

repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1;

Parameter
Name Description
values Iterable<? extends com.google.analytics.data.v1beta.PivotDimensionHeader>
Returns
Type Description
PivotHeader.Builder

addPivotDimensionHeaders(PivotDimensionHeader value)

public PivotHeader.Builder addPivotDimensionHeaders(PivotDimensionHeader value)

The size is the same as the cardinality of the corresponding dimension combinations.

repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1;

Parameter
Name Description
value PivotDimensionHeader
Returns
Type Description
PivotHeader.Builder

addPivotDimensionHeaders(PivotDimensionHeader.Builder builderForValue)

public PivotHeader.Builder addPivotDimensionHeaders(PivotDimensionHeader.Builder builderForValue)

The size is the same as the cardinality of the corresponding dimension combinations.

repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1;

Parameter
Name Description
builderForValue PivotDimensionHeader.Builder
Returns
Type Description
PivotHeader.Builder

addPivotDimensionHeaders(int index, PivotDimensionHeader value)

public PivotHeader.Builder addPivotDimensionHeaders(int index, PivotDimensionHeader value)

The size is the same as the cardinality of the corresponding dimension combinations.

repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1;

Parameters
Name Description
index int
value PivotDimensionHeader
Returns
Type Description
PivotHeader.Builder

addPivotDimensionHeaders(int index, PivotDimensionHeader.Builder builderForValue)

public PivotHeader.Builder addPivotDimensionHeaders(int index, PivotDimensionHeader.Builder builderForValue)

The size is the same as the cardinality of the corresponding dimension combinations.

repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1;

Parameters
Name Description
index int
builderForValue PivotDimensionHeader.Builder
Returns
Type Description
PivotHeader.Builder

addPivotDimensionHeadersBuilder()

public PivotDimensionHeader.Builder addPivotDimensionHeadersBuilder()

The size is the same as the cardinality of the corresponding dimension combinations.

repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1;

Returns
Type Description
PivotDimensionHeader.Builder

addPivotDimensionHeadersBuilder(int index)

public PivotDimensionHeader.Builder addPivotDimensionHeadersBuilder(int index)

The size is the same as the cardinality of the corresponding dimension combinations.

repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1;

Parameter
Name Description
index int
Returns
Type Description
PivotDimensionHeader.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PivotHeader build()
Returns
Type Description
PivotHeader

buildPartial()

public PivotHeader buildPartial()
Returns
Type Description
PivotHeader

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPivotDimensionHeaders()

public PivotHeader.Builder clearPivotDimensionHeaders()

The size is the same as the cardinality of the corresponding dimension combinations.

repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1;

Returns
Type Description
PivotHeader.Builder

clearRowCount()

public PivotHeader.Builder clearRowCount()

The cardinality of the pivot. The total number of rows for this pivot's fields regardless of how the parameters offset and limit are specified in the request.

int32 row_count = 2;

Returns
Type Description
PivotHeader.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public PivotHeader getDefaultInstanceForType()
Returns
Type Description
PivotHeader

getDescriptorForType()

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

getPivotDimensionHeaders(int index)

public PivotDimensionHeader getPivotDimensionHeaders(int index)

The size is the same as the cardinality of the corresponding dimension combinations.

repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1;

Parameter
Name Description
index int
Returns
Type Description
PivotDimensionHeader

getPivotDimensionHeadersBuilder(int index)

public PivotDimensionHeader.Builder getPivotDimensionHeadersBuilder(int index)

The size is the same as the cardinality of the corresponding dimension combinations.

repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1;

Parameter
Name Description
index int
Returns
Type Description
PivotDimensionHeader.Builder

getPivotDimensionHeadersBuilderList()

public List<PivotDimensionHeader.Builder> getPivotDimensionHeadersBuilderList()

The size is the same as the cardinality of the corresponding dimension combinations.

repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1;

Returns
Type Description
List<Builder>

getPivotDimensionHeadersCount()

public int getPivotDimensionHeadersCount()

The size is the same as the cardinality of the corresponding dimension combinations.

repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1;

Returns
Type Description
int

getPivotDimensionHeadersList()

public List<PivotDimensionHeader> getPivotDimensionHeadersList()

The size is the same as the cardinality of the corresponding dimension combinations.

repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1;

Returns
Type Description
List<PivotDimensionHeader>

getPivotDimensionHeadersOrBuilder(int index)

public PivotDimensionHeaderOrBuilder getPivotDimensionHeadersOrBuilder(int index)

The size is the same as the cardinality of the corresponding dimension combinations.

repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1;

Parameter
Name Description
index int
Returns
Type Description
PivotDimensionHeaderOrBuilder

getPivotDimensionHeadersOrBuilderList()

public List<? extends PivotDimensionHeaderOrBuilder> getPivotDimensionHeadersOrBuilderList()

The size is the same as the cardinality of the corresponding dimension combinations.

repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1;

Returns
Type Description
List<? extends com.google.analytics.data.v1beta.PivotDimensionHeaderOrBuilder>

getRowCount()

public int getRowCount()

The cardinality of the pivot. The total number of rows for this pivot's fields regardless of how the parameters offset and limit are specified in the request.

int32 row_count = 2;

Returns
Type Description
int

The rowCount.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PivotHeader other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removePivotDimensionHeaders(int index)

public PivotHeader.Builder removePivotDimensionHeaders(int index)

The size is the same as the cardinality of the corresponding dimension combinations.

repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1;

Parameter
Name Description
index int
Returns
Type Description
PivotHeader.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setPivotDimensionHeaders(int index, PivotDimensionHeader value)

public PivotHeader.Builder setPivotDimensionHeaders(int index, PivotDimensionHeader value)

The size is the same as the cardinality of the corresponding dimension combinations.

repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1;

Parameters
Name Description
index int
value PivotDimensionHeader
Returns
Type Description
PivotHeader.Builder

setPivotDimensionHeaders(int index, PivotDimensionHeader.Builder builderForValue)

public PivotHeader.Builder setPivotDimensionHeaders(int index, PivotDimensionHeader.Builder builderForValue)

The size is the same as the cardinality of the corresponding dimension combinations.

repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1;

Parameters
Name Description
index int
builderForValue PivotDimensionHeader.Builder
Returns
Type Description
PivotHeader.Builder

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

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

setRowCount(int value)

public PivotHeader.Builder setRowCount(int value)

The cardinality of the pivot. The total number of rows for this pivot's fields regardless of how the parameters offset and limit are specified in the request.

int32 row_count = 2;

Parameter
Name Description
value int

The rowCount to set.

Returns
Type Description
PivotHeader.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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