Class MetricHeader.Builder (0.59.0)

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

Static 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
Overrides

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
Overrides

clearField(Descriptors.FieldDescriptor field)

public MetricHeader.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
MetricHeader.Builder
Overrides

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
Overrides

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
Overrides

getDefaultInstanceForType()

public MetricHeader getDefaultInstanceForType()
Returns
Type Description
MetricHeader

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public MetricHeader.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
MetricHeader.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MetricHeader.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
MetricHeader.Builder
Overrides

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
Overrides

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
Overrides

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
Overrides