Class PivotHeader.Builder (0.29.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.analytics.data.v1beta.PivotDimensionHeader>
Returns
TypeDescription
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
NameDescription
valuePivotDimensionHeader
Returns
TypeDescription
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
NameDescription
builderForValuePivotDimensionHeader.Builder
Returns
TypeDescription
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
NameDescription
indexint
valuePivotDimensionHeader
Returns
TypeDescription
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
NameDescription
indexint
builderForValuePivotDimensionHeader.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
PivotDimensionHeader.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PivotHeader build()
Returns
TypeDescription
PivotHeader

buildPartial()

public PivotHeader buildPartial()
Returns
TypeDescription
PivotHeader

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public PivotHeader.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
PivotHeader.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public PivotHeader getDefaultInstanceForType()
Returns
TypeDescription
PivotHeader

getDescriptorForType()

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

The rowCount.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PivotHeader other)

public PivotHeader.Builder mergeFrom(PivotHeader other)
Parameter
NameDescription
otherPivotHeader
Returns
TypeDescription
PivotHeader.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public PivotHeader.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueint

The rowCount to set.

Returns
TypeDescription
PivotHeader.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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