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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > MetricHeader.BuilderImplements
MetricHeaderOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public MetricHeader.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
MetricHeader.Builder |
build()
public MetricHeader build()
Returns | |
---|---|
Type | Description |
MetricHeader |
buildPartial()
public MetricHeader buildPartial()
Returns | |
---|---|
Type | Description |
MetricHeader |
clear()
public MetricHeader.Builder clear()
Returns | |
---|---|
Type | Description |
MetricHeader.Builder |
clearField(Descriptors.FieldDescriptor field)
public MetricHeader.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
MetricHeader.Builder |
clearName()
public MetricHeader.Builder clearName()
The metric's name.
string name = 1;
Returns | |
---|---|
Type | Description |
MetricHeader.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public MetricHeader.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
MetricHeader.Builder |
clearType()
public MetricHeader.Builder clearType()
The metric's data type.
.google.analytics.data.v1alpha.MetricType type = 2;
Returns | |
---|---|
Type | Description |
MetricHeader.Builder |
This builder for chaining. |
clone()
public MetricHeader.Builder clone()
Returns | |
---|---|
Type | Description |
MetricHeader.Builder |
getDefaultInstanceForType()
public MetricHeader getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
MetricHeader |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getName()
public String getName()
The metric's name.
string name = 1;
Returns | |
---|---|
Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()
The metric's name.
string name = 1;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for name. |
getType()
public MetricType getType()
The metric's data type.
.google.analytics.data.v1alpha.MetricType type = 2;
Returns | |
---|---|
Type | Description |
MetricType |
The type. |
getTypeValue()
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. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(MetricHeader other)
public MetricHeader.Builder mergeFrom(MetricHeader other)
Parameter | |
---|---|
Name | Description |
other |
MetricHeader |
Returns | |
---|---|
Type | Description |
MetricHeader.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public MetricHeader.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
MetricHeader.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public MetricHeader.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
MetricHeader.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final MetricHeader.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
MetricHeader.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public MetricHeader.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
MetricHeader.Builder |
setName(String value)
public MetricHeader.Builder setName(String value)
The metric's name.
string name = 1;
Parameter | |
---|---|
Name | Description |
value |
String The name to set. |
Returns | |
---|---|
Type | Description |
MetricHeader.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
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 | |
---|---|
Type | Description |
MetricHeader.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public MetricHeader.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
MetricHeader.Builder |
setType(MetricType value)
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. |
Returns | |
---|---|
Type | Description |
MetricHeader.Builder |
This builder for chaining. |
setTypeValue(int value)
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. |
Returns | |
---|---|
Type | Description |
MetricHeader.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final MetricHeader.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
MetricHeader.Builder |