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.v1beta.MetricHeader
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 MetricHeader.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public MetricHeader build()
Returns
public MetricHeader buildPartial()
Returns
public MetricHeader.Builder clear()
Returns
Overrides
public MetricHeader.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public MetricHeader.Builder clearName()
The metric's name.
string name = 1;
Returns
public MetricHeader.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public MetricHeader.Builder clearType()
The metric's data type.
.google.analytics.data.v1beta.MetricType type = 2;
Returns
public MetricHeader.Builder clone()
Returns
Overrides
public MetricHeader getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
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
public MetricType getType()
The metric's data type.
.google.analytics.data.v1beta.MetricType type = 2;
Returns
public int getTypeValue()
The metric's data type.
.google.analytics.data.v1beta.MetricType type = 2;
Returns
Type | Description |
int | The enum numeric value on the wire for type.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public MetricHeader.Builder mergeFrom(MetricHeader other)
Parameter
Returns
public MetricHeader.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public MetricHeader.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final MetricHeader.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public MetricHeader.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public MetricHeader.Builder setName(String value)
The metric's name.
string name = 1;
Parameter
Name | Description |
value | String
The name to set.
|
Returns
public MetricHeader.Builder setNameBytes(ByteString value)
The metric's name.
string name = 1;
Parameter
Name | Description |
value | ByteString
The bytes for name to set.
|
Returns
public MetricHeader.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public MetricHeader.Builder setType(MetricType value)
The metric's data type.
.google.analytics.data.v1beta.MetricType type = 2;
Parameter
Returns
public MetricHeader.Builder setTypeValue(int value)
The metric's data type.
.google.analytics.data.v1beta.MetricType type = 2;
Parameter
Name | Description |
value | int
The enum numeric value on the wire for type to set.
|
Returns
public final MetricHeader.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides