Class Metadata.Builder (0.60.0)

public static final class Metadata.Builder extends GeneratedMessageV3.Builder<Metadata.Builder> implements MetadataOrBuilder

The dimensions, metrics and comparisons currently accepted in reporting methods.

Protobuf type google.analytics.data.v1beta.Metadata

Implements

MetadataOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllComparisons(Iterable<? extends ComparisonMetadata> values)

public Metadata.Builder addAllComparisons(Iterable<? extends ComparisonMetadata> values)

The comparison descriptions.

repeated .google.analytics.data.v1beta.ComparisonMetadata comparisons = 4;

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

addAllDimensions(Iterable<? extends DimensionMetadata> values)

public Metadata.Builder addAllDimensions(Iterable<? extends DimensionMetadata> values)

The dimension descriptions.

repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1;

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

addAllMetrics(Iterable<? extends MetricMetadata> values)

public Metadata.Builder addAllMetrics(Iterable<? extends MetricMetadata> values)

The metric descriptions.

repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2;

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

addComparisons(ComparisonMetadata value)

public Metadata.Builder addComparisons(ComparisonMetadata value)

The comparison descriptions.

repeated .google.analytics.data.v1beta.ComparisonMetadata comparisons = 4;

Parameter
Name Description
value ComparisonMetadata
Returns
Type Description
Metadata.Builder

addComparisons(ComparisonMetadata.Builder builderForValue)

public Metadata.Builder addComparisons(ComparisonMetadata.Builder builderForValue)

The comparison descriptions.

repeated .google.analytics.data.v1beta.ComparisonMetadata comparisons = 4;

Parameter
Name Description
builderForValue ComparisonMetadata.Builder
Returns
Type Description
Metadata.Builder

addComparisons(int index, ComparisonMetadata value)

public Metadata.Builder addComparisons(int index, ComparisonMetadata value)

The comparison descriptions.

repeated .google.analytics.data.v1beta.ComparisonMetadata comparisons = 4;

Parameters
Name Description
index int
value ComparisonMetadata
Returns
Type Description
Metadata.Builder

addComparisons(int index, ComparisonMetadata.Builder builderForValue)

public Metadata.Builder addComparisons(int index, ComparisonMetadata.Builder builderForValue)

The comparison descriptions.

repeated .google.analytics.data.v1beta.ComparisonMetadata comparisons = 4;

Parameters
Name Description
index int
builderForValue ComparisonMetadata.Builder
Returns
Type Description
Metadata.Builder

addComparisonsBuilder()

public ComparisonMetadata.Builder addComparisonsBuilder()

The comparison descriptions.

repeated .google.analytics.data.v1beta.ComparisonMetadata comparisons = 4;

Returns
Type Description
ComparisonMetadata.Builder

addComparisonsBuilder(int index)

public ComparisonMetadata.Builder addComparisonsBuilder(int index)

The comparison descriptions.

repeated .google.analytics.data.v1beta.ComparisonMetadata comparisons = 4;

Parameter
Name Description
index int
Returns
Type Description
ComparisonMetadata.Builder

addDimensions(DimensionMetadata value)

public Metadata.Builder addDimensions(DimensionMetadata value)

The dimension descriptions.

repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1;

Parameter
Name Description
value DimensionMetadata
Returns
Type Description
Metadata.Builder

addDimensions(DimensionMetadata.Builder builderForValue)

public Metadata.Builder addDimensions(DimensionMetadata.Builder builderForValue)

The dimension descriptions.

repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1;

Parameter
Name Description
builderForValue DimensionMetadata.Builder
Returns
Type Description
Metadata.Builder

addDimensions(int index, DimensionMetadata value)

public Metadata.Builder addDimensions(int index, DimensionMetadata value)

The dimension descriptions.

repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1;

Parameters
Name Description
index int
value DimensionMetadata
Returns
Type Description
Metadata.Builder

addDimensions(int index, DimensionMetadata.Builder builderForValue)

public Metadata.Builder addDimensions(int index, DimensionMetadata.Builder builderForValue)

The dimension descriptions.

repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1;

Parameters
Name Description
index int
builderForValue DimensionMetadata.Builder
Returns
Type Description
Metadata.Builder

addDimensionsBuilder()

public DimensionMetadata.Builder addDimensionsBuilder()

The dimension descriptions.

repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1;

Returns
Type Description
DimensionMetadata.Builder

addDimensionsBuilder(int index)

public DimensionMetadata.Builder addDimensionsBuilder(int index)

The dimension descriptions.

repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1;

Parameter
Name Description
index int
Returns
Type Description
DimensionMetadata.Builder

addMetrics(MetricMetadata value)

public Metadata.Builder addMetrics(MetricMetadata value)

The metric descriptions.

repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2;

Parameter
Name Description
value MetricMetadata
Returns
Type Description
Metadata.Builder

addMetrics(MetricMetadata.Builder builderForValue)

public Metadata.Builder addMetrics(MetricMetadata.Builder builderForValue)

The metric descriptions.

repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2;

Parameter
Name Description
builderForValue MetricMetadata.Builder
Returns
Type Description
Metadata.Builder

addMetrics(int index, MetricMetadata value)

public Metadata.Builder addMetrics(int index, MetricMetadata value)

The metric descriptions.

repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2;

Parameters
Name Description
index int
value MetricMetadata
Returns
Type Description
Metadata.Builder

addMetrics(int index, MetricMetadata.Builder builderForValue)

public Metadata.Builder addMetrics(int index, MetricMetadata.Builder builderForValue)

The metric descriptions.

repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2;

Parameters
Name Description
index int
builderForValue MetricMetadata.Builder
Returns
Type Description
Metadata.Builder

addMetricsBuilder()

public MetricMetadata.Builder addMetricsBuilder()

The metric descriptions.

repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2;

Returns
Type Description
MetricMetadata.Builder

addMetricsBuilder(int index)

public MetricMetadata.Builder addMetricsBuilder(int index)

The metric descriptions.

repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2;

Parameter
Name Description
index int
Returns
Type Description
MetricMetadata.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Metadata build()
Returns
Type Description
Metadata

buildPartial()

public Metadata buildPartial()
Returns
Type Description
Metadata

clear()

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

clearComparisons()

public Metadata.Builder clearComparisons()

The comparison descriptions.

repeated .google.analytics.data.v1beta.ComparisonMetadata comparisons = 4;

Returns
Type Description
Metadata.Builder

clearDimensions()

public Metadata.Builder clearDimensions()

The dimension descriptions.

repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1;

Returns
Type Description
Metadata.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearMetrics()

public Metadata.Builder clearMetrics()

The metric descriptions.

repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2;

Returns
Type Description
Metadata.Builder

clearName()

public Metadata.Builder clearName()

Resource name of this metadata.

string name = 3;

Returns
Type Description
Metadata.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getComparisons(int index)

public ComparisonMetadata getComparisons(int index)

The comparison descriptions.

repeated .google.analytics.data.v1beta.ComparisonMetadata comparisons = 4;

Parameter
Name Description
index int
Returns
Type Description
ComparisonMetadata

getComparisonsBuilder(int index)

public ComparisonMetadata.Builder getComparisonsBuilder(int index)

The comparison descriptions.

repeated .google.analytics.data.v1beta.ComparisonMetadata comparisons = 4;

Parameter
Name Description
index int
Returns
Type Description
ComparisonMetadata.Builder

getComparisonsBuilderList()

public List<ComparisonMetadata.Builder> getComparisonsBuilderList()

The comparison descriptions.

repeated .google.analytics.data.v1beta.ComparisonMetadata comparisons = 4;

Returns
Type Description
List<Builder>

getComparisonsCount()

public int getComparisonsCount()

The comparison descriptions.

repeated .google.analytics.data.v1beta.ComparisonMetadata comparisons = 4;

Returns
Type Description
int

getComparisonsList()

public List<ComparisonMetadata> getComparisonsList()

The comparison descriptions.

repeated .google.analytics.data.v1beta.ComparisonMetadata comparisons = 4;

Returns
Type Description
List<ComparisonMetadata>

getComparisonsOrBuilder(int index)

public ComparisonMetadataOrBuilder getComparisonsOrBuilder(int index)

The comparison descriptions.

repeated .google.analytics.data.v1beta.ComparisonMetadata comparisons = 4;

Parameter
Name Description
index int
Returns
Type Description
ComparisonMetadataOrBuilder

getComparisonsOrBuilderList()

public List<? extends ComparisonMetadataOrBuilder> getComparisonsOrBuilderList()

The comparison descriptions.

repeated .google.analytics.data.v1beta.ComparisonMetadata comparisons = 4;

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

getDefaultInstanceForType()

public Metadata getDefaultInstanceForType()
Returns
Type Description
Metadata

getDescriptorForType()

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

getDimensions(int index)

public DimensionMetadata getDimensions(int index)

The dimension descriptions.

repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1;

Parameter
Name Description
index int
Returns
Type Description
DimensionMetadata

getDimensionsBuilder(int index)

public DimensionMetadata.Builder getDimensionsBuilder(int index)

The dimension descriptions.

repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1;

Parameter
Name Description
index int
Returns
Type Description
DimensionMetadata.Builder

getDimensionsBuilderList()

public List<DimensionMetadata.Builder> getDimensionsBuilderList()

The dimension descriptions.

repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1;

Returns
Type Description
List<Builder>

getDimensionsCount()

public int getDimensionsCount()

The dimension descriptions.

repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1;

Returns
Type Description
int

getDimensionsList()

public List<DimensionMetadata> getDimensionsList()

The dimension descriptions.

repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1;

Returns
Type Description
List<DimensionMetadata>

getDimensionsOrBuilder(int index)

public DimensionMetadataOrBuilder getDimensionsOrBuilder(int index)

The dimension descriptions.

repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1;

Parameter
Name Description
index int
Returns
Type Description
DimensionMetadataOrBuilder

getDimensionsOrBuilderList()

public List<? extends DimensionMetadataOrBuilder> getDimensionsOrBuilderList()

The dimension descriptions.

repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1;

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

getMetrics(int index)

public MetricMetadata getMetrics(int index)

The metric descriptions.

repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2;

Parameter
Name Description
index int
Returns
Type Description
MetricMetadata

getMetricsBuilder(int index)

public MetricMetadata.Builder getMetricsBuilder(int index)

The metric descriptions.

repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2;

Parameter
Name Description
index int
Returns
Type Description
MetricMetadata.Builder

getMetricsBuilderList()

public List<MetricMetadata.Builder> getMetricsBuilderList()

The metric descriptions.

repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2;

Returns
Type Description
List<Builder>

getMetricsCount()

public int getMetricsCount()

The metric descriptions.

repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2;

Returns
Type Description
int

getMetricsList()

public List<MetricMetadata> getMetricsList()

The metric descriptions.

repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2;

Returns
Type Description
List<MetricMetadata>

getMetricsOrBuilder(int index)

public MetricMetadataOrBuilder getMetricsOrBuilder(int index)

The metric descriptions.

repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2;

Parameter
Name Description
index int
Returns
Type Description
MetricMetadataOrBuilder

getMetricsOrBuilderList()

public List<? extends MetricMetadataOrBuilder> getMetricsOrBuilderList()

The metric descriptions.

repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2;

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

getName()

public String getName()

Resource name of this metadata.

string name = 3;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Resource name of this metadata.

string name = 3;

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Metadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeComparisons(int index)

public Metadata.Builder removeComparisons(int index)

The comparison descriptions.

repeated .google.analytics.data.v1beta.ComparisonMetadata comparisons = 4;

Parameter
Name Description
index int
Returns
Type Description
Metadata.Builder

removeDimensions(int index)

public Metadata.Builder removeDimensions(int index)

The dimension descriptions.

repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1;

Parameter
Name Description
index int
Returns
Type Description
Metadata.Builder

removeMetrics(int index)

public Metadata.Builder removeMetrics(int index)

The metric descriptions.

repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2;

Parameter
Name Description
index int
Returns
Type Description
Metadata.Builder

setComparisons(int index, ComparisonMetadata value)

public Metadata.Builder setComparisons(int index, ComparisonMetadata value)

The comparison descriptions.

repeated .google.analytics.data.v1beta.ComparisonMetadata comparisons = 4;

Parameters
Name Description
index int
value ComparisonMetadata
Returns
Type Description
Metadata.Builder

setComparisons(int index, ComparisonMetadata.Builder builderForValue)

public Metadata.Builder setComparisons(int index, ComparisonMetadata.Builder builderForValue)

The comparison descriptions.

repeated .google.analytics.data.v1beta.ComparisonMetadata comparisons = 4;

Parameters
Name Description
index int
builderForValue ComparisonMetadata.Builder
Returns
Type Description
Metadata.Builder

setDimensions(int index, DimensionMetadata value)

public Metadata.Builder setDimensions(int index, DimensionMetadata value)

The dimension descriptions.

repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1;

Parameters
Name Description
index int
value DimensionMetadata
Returns
Type Description
Metadata.Builder

setDimensions(int index, DimensionMetadata.Builder builderForValue)

public Metadata.Builder setDimensions(int index, DimensionMetadata.Builder builderForValue)

The dimension descriptions.

repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1;

Parameters
Name Description
index int
builderForValue DimensionMetadata.Builder
Returns
Type Description
Metadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMetrics(int index, MetricMetadata value)

public Metadata.Builder setMetrics(int index, MetricMetadata value)

The metric descriptions.

repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2;

Parameters
Name Description
index int
value MetricMetadata
Returns
Type Description
Metadata.Builder

setMetrics(int index, MetricMetadata.Builder builderForValue)

public Metadata.Builder setMetrics(int index, MetricMetadata.Builder builderForValue)

The metric descriptions.

repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2;

Parameters
Name Description
index int
builderForValue MetricMetadata.Builder
Returns
Type Description
Metadata.Builder

setName(String value)

public Metadata.Builder setName(String value)

Resource name of this metadata.

string name = 3;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Metadata.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Metadata.Builder setNameBytes(ByteString value)

Resource name of this metadata.

string name = 3;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Metadata.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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