Class Metadata.Builder (0.15.0)

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

The dimensions and metrics currently accepted in reporting methods.

Protobuf type google.analytics.data.v1beta.Metadata

Implements

MetadataOrBuilder

Static Methods

getDescriptor()

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

Methods

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
NameDescription
valuesIterable<? extends com.google.analytics.data.v1beta.DimensionMetadata>
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.analytics.data.v1beta.MetricMetadata>
Returns
TypeDescription
Metadata.Builder

addDimensions(DimensionMetadata value)

public Metadata.Builder addDimensions(DimensionMetadata value)

The dimension descriptions.

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

Parameter
NameDescription
valueDimensionMetadata
Returns
TypeDescription
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
NameDescription
builderForValueDimensionMetadata.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueDimensionMetadata
Returns
TypeDescription
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
NameDescription
indexint
builderForValueDimensionMetadata.Builder
Returns
TypeDescription
Metadata.Builder

addDimensionsBuilder()

public DimensionMetadata.Builder addDimensionsBuilder()

The dimension descriptions.

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

Returns
TypeDescription
DimensionMetadata.Builder

addDimensionsBuilder(int index)

public DimensionMetadata.Builder addDimensionsBuilder(int index)

The dimension descriptions.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
DimensionMetadata.Builder

addMetrics(MetricMetadata value)

public Metadata.Builder addMetrics(MetricMetadata value)

The metric descriptions.

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

Parameter
NameDescription
valueMetricMetadata
Returns
TypeDescription
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
NameDescription
builderForValueMetricMetadata.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueMetricMetadata
Returns
TypeDescription
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
NameDescription
indexint
builderForValueMetricMetadata.Builder
Returns
TypeDescription
Metadata.Builder

addMetricsBuilder()

public MetricMetadata.Builder addMetricsBuilder()

The metric descriptions.

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

Returns
TypeDescription
MetricMetadata.Builder

addMetricsBuilder(int index)

public MetricMetadata.Builder addMetricsBuilder(int index)

The metric descriptions.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
MetricMetadata.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Metadata build()
Returns
TypeDescription
Metadata

buildPartial()

public Metadata buildPartial()
Returns
TypeDescription
Metadata

clear()

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

clearDimensions()

public Metadata.Builder clearDimensions()

The dimension descriptions.

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

Returns
TypeDescription
Metadata.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearMetrics()

public Metadata.Builder clearMetrics()

The metric descriptions.

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

Returns
TypeDescription
Metadata.Builder

clearName()

public Metadata.Builder clearName()

Resource name of this metadata.

string name = 3;

Returns
TypeDescription
Metadata.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public Metadata getDefaultInstanceForType()
Returns
TypeDescription
Metadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDimensions(int index)

public DimensionMetadata getDimensions(int index)

The dimension descriptions.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
DimensionMetadata

getDimensionsBuilder(int index)

public DimensionMetadata.Builder getDimensionsBuilder(int index)

The dimension descriptions.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
DimensionMetadata.Builder

getDimensionsBuilderList()

public List<DimensionMetadata.Builder> getDimensionsBuilderList()

The dimension descriptions.

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

Returns
TypeDescription
List<Builder>

getDimensionsCount()

public int getDimensionsCount()

The dimension descriptions.

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

Returns
TypeDescription
int

getDimensionsList()

public List<DimensionMetadata> getDimensionsList()

The dimension descriptions.

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

Returns
TypeDescription
List<DimensionMetadata>

getDimensionsOrBuilder(int index)

public DimensionMetadataOrBuilder getDimensionsOrBuilder(int index)

The dimension descriptions.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
DimensionMetadataOrBuilder

getDimensionsOrBuilderList()

public List<? extends DimensionMetadataOrBuilder> getDimensionsOrBuilderList()

The dimension descriptions.

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

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

getMetricsBuilder(int index)

public MetricMetadata.Builder getMetricsBuilder(int index)

The metric descriptions.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
MetricMetadata.Builder

getMetricsBuilderList()

public List<MetricMetadata.Builder> getMetricsBuilderList()

The metric descriptions.

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

Returns
TypeDescription
List<Builder>

getMetricsCount()

public int getMetricsCount()

The metric descriptions.

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

Returns
TypeDescription
int

getMetricsList()

public List<MetricMetadata> getMetricsList()

The metric descriptions.

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

Returns
TypeDescription
List<MetricMetadata>

getMetricsOrBuilder(int index)

public MetricMetadataOrBuilder getMetricsOrBuilder(int index)

The metric descriptions.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
MetricMetadataOrBuilder

getMetricsOrBuilderList()

public List<? extends MetricMetadataOrBuilder> getMetricsOrBuilderList()

The metric descriptions.

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

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

getName()

public String getName()

Resource name of this metadata.

string name = 3;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Resource name of this metadata.

string name = 3;

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Metadata other)

public Metadata.Builder mergeFrom(Metadata other)
Parameter
NameDescription
otherMetadata
Returns
TypeDescription
Metadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeDimensions(int index)

public Metadata.Builder removeDimensions(int index)

The dimension descriptions.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Metadata.Builder

removeMetrics(int index)

public Metadata.Builder removeMetrics(int index)

The metric descriptions.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueDimensionMetadata
Returns
TypeDescription
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
NameDescription
indexint
builderForValueDimensionMetadata.Builder
Returns
TypeDescription
Metadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public Metadata.Builder setName(String value)

Resource name of this metadata.

string name = 3;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Metadata.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Metadata.Builder setNameBytes(ByteString value)

Resource name of this metadata.

string name = 3;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Metadata.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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