public static final class MetricHeader.Builder extends GeneratedMessageV3.Builder<MetricHeader.Builder> implements MetricHeaderOrBuilder
Describes a metric column in the report. Visible metrics requested in a
report produce column entries within rows and MetricHeaders. However,
metrics used exclusively within filters or expressions do not produce columns
in a report; correspondingly, those metrics do not produce headers.
Protobuf type google.analytics.data.v1alpha.MetricHeader
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 MetricHeader.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public MetricHeader build()
public MetricHeader buildPartial()
public MetricHeader.Builder clear()
Overrides
public MetricHeader.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public MetricHeader.Builder clearName()
The metric's name.
string name = 1;
public MetricHeader.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public MetricHeader.Builder clearType()
The metric's data type.
.google.analytics.data.v1alpha.MetricType type = 2;
public MetricHeader.Builder clone()
Overrides
public MetricHeader getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
The metric's name.
string name = 1;
Returns |
Type |
Description |
String |
The name.
|
public ByteString getNameBytes()
The metric's name.
string name = 1;
Returns |
Type |
Description |
ByteString |
The bytes for name.
|
public MetricType getType()
The metric's data type.
.google.analytics.data.v1alpha.MetricType type = 2;
public int getTypeValue()
The metric's data type.
.google.analytics.data.v1alpha.MetricType type = 2;
Returns |
Type |
Description |
int |
The enum numeric value on the wire for type.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public MetricHeader.Builder mergeFrom(MetricHeader other)
public MetricHeader.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public MetricHeader.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final MetricHeader.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public MetricHeader.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public MetricHeader.Builder setName(String value)
The metric's name.
string name = 1;
Parameter |
Name |
Description |
value |
String
The name to set.
|
public MetricHeader.Builder setNameBytes(ByteString value)
The metric's name.
string name = 1;
Parameter |
Name |
Description |
value |
ByteString
The bytes for name to set.
|
public MetricHeader.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public MetricHeader.Builder setType(MetricType value)
The metric's data type.
.google.analytics.data.v1alpha.MetricType type = 2;
Parameter |
Name |
Description |
value |
MetricType
The type to set.
|
public MetricHeader.Builder setTypeValue(int value)
The metric's data type.
.google.analytics.data.v1alpha.MetricType type = 2;
Parameter |
Name |
Description |
value |
int
The enum numeric value on the wire for type to set.
|
public final MetricHeader.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides