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