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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
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>
|
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>
|
public Metadata.Builder addDimensions(DimensionMetadata value)
The dimension descriptions.
repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1;
public Metadata.Builder addDimensions(DimensionMetadata.Builder builderForValue)
The dimension descriptions.
repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1;
public Metadata.Builder addDimensions(int index, DimensionMetadata value)
The dimension descriptions.
repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1;
public Metadata.Builder addDimensions(int index, DimensionMetadata.Builder builderForValue)
The dimension descriptions.
repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1;
public DimensionMetadata.Builder addDimensionsBuilder()
The dimension descriptions.
repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1;
public DimensionMetadata.Builder addDimensionsBuilder(int index)
The dimension descriptions.
repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1;
Parameter |
---|
Name | Description |
index | int
|
public Metadata.Builder addMetrics(MetricMetadata value)
The metric descriptions.
repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2;
public Metadata.Builder addMetrics(MetricMetadata.Builder builderForValue)
The metric descriptions.
repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2;
public Metadata.Builder addMetrics(int index, MetricMetadata value)
The metric descriptions.
repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2;
public Metadata.Builder addMetrics(int index, MetricMetadata.Builder builderForValue)
The metric descriptions.
repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2;
public MetricMetadata.Builder addMetricsBuilder()
The metric descriptions.
repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2;
public MetricMetadata.Builder addMetricsBuilder(int index)
The metric descriptions.
repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2;
Parameter |
---|
Name | Description |
index | int
|
public Metadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public Metadata buildPartial()
public Metadata.Builder clear()
Overrides
public Metadata.Builder clearDimensions()
The dimension descriptions.
repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1;
public Metadata.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public Metadata.Builder clearMetrics()
The metric descriptions.
repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2;
public Metadata.Builder clearName()
Resource name of this metadata.
string name = 3;
public Metadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public Metadata.Builder clone()
Overrides
public Metadata getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public DimensionMetadata getDimensions(int index)
The dimension descriptions.
repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1;
Parameter |
---|
Name | Description |
index | int
|
public DimensionMetadata.Builder getDimensionsBuilder(int index)
The dimension descriptions.
repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1;
Parameter |
---|
Name | Description |
index | int
|
public List<DimensionMetadata.Builder> getDimensionsBuilderList()
The dimension descriptions.
repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1;
public int getDimensionsCount()
The dimension descriptions.
repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1;
Returns |
---|
Type | Description |
int | |
public List<DimensionMetadata> getDimensionsList()
The dimension descriptions.
repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1;
public DimensionMetadataOrBuilder getDimensionsOrBuilder(int index)
The dimension descriptions.
repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1;
Parameter |
---|
Name | Description |
index | int
|
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> | |
public MetricMetadata getMetrics(int index)
The metric descriptions.
repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2;
Parameter |
---|
Name | Description |
index | int
|
public MetricMetadata.Builder getMetricsBuilder(int index)
The metric descriptions.
repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2;
Parameter |
---|
Name | Description |
index | int
|
public List<MetricMetadata.Builder> getMetricsBuilderList()
The metric descriptions.
repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2;
public int getMetricsCount()
The metric descriptions.
repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2;
Returns |
---|
Type | Description |
int | |
public List<MetricMetadata> getMetricsList()
The metric descriptions.
repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2;
public MetricMetadataOrBuilder getMetricsOrBuilder(int index)
The metric descriptions.
repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2;
Parameter |
---|
Name | Description |
index | int
|
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> | |
Resource name of this metadata.
string name = 3;
Returns |
---|
Type | Description |
String | The name.
|
public ByteString getNameBytes()
Resource name of this metadata.
string name = 3;
Returns |
---|
Type | Description |
ByteString | The bytes for name.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public Metadata.Builder mergeFrom(Metadata other)
public Metadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public Metadata.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
public final Metadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public Metadata.Builder removeDimensions(int index)
The dimension descriptions.
repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1;
Parameter |
---|
Name | Description |
index | int
|
public Metadata.Builder removeMetrics(int index)
The metric descriptions.
repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2;
Parameter |
---|
Name | Description |
index | int
|
public Metadata.Builder setDimensions(int index, DimensionMetadata value)
The dimension descriptions.
repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1;
public Metadata.Builder setDimensions(int index, DimensionMetadata.Builder builderForValue)
The dimension descriptions.
repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1;
public Metadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public Metadata.Builder setMetrics(int index, MetricMetadata value)
The metric descriptions.
repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2;
public Metadata.Builder setMetrics(int index, MetricMetadata.Builder builderForValue)
The metric descriptions.
repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2;
public Metadata.Builder setName(String value)
Resource name of this metadata.
string name = 3;
Parameter |
---|
Name | Description |
value | String
The name to set.
|
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.
|
public Metadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final Metadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides