Class MetricHeader.Builder (0.18.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MetricHeader.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MetricHeader.Builder
Overrides

build()

public MetricHeader build()
Returns
TypeDescription
MetricHeader

buildPartial()

public MetricHeader buildPartial()
Returns
TypeDescription
MetricHeader

clear()

public MetricHeader.Builder clear()
Returns
TypeDescription
MetricHeader.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public MetricHeader.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
MetricHeader.Builder
Overrides

clearName()

public MetricHeader.Builder clearName()

The metric's name.

string name = 1;

Returns
TypeDescription
MetricHeader.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public MetricHeader.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
MetricHeader.Builder
Overrides

clearType()

public MetricHeader.Builder clearType()

The metric's data type.

.google.analytics.data.v1alpha.MetricType type = 2;

Returns
TypeDescription
MetricHeader.Builder

This builder for chaining.

clone()

public MetricHeader.Builder clone()
Returns
TypeDescription
MetricHeader.Builder
Overrides

getDefaultInstanceForType()

public MetricHeader getDefaultInstanceForType()
Returns
TypeDescription
MetricHeader

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

The metric's name.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The metric's name.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getType()

public MetricType getType()

The metric's data type.

.google.analytics.data.v1alpha.MetricType type = 2;

Returns
TypeDescription
MetricType

The type.

getTypeValue()

public int getTypeValue()

The metric's data type.

.google.analytics.data.v1alpha.MetricType type = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for type.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(MetricHeader other)

public MetricHeader.Builder mergeFrom(MetricHeader other)
Parameter
NameDescription
otherMetricHeader
Returns
TypeDescription
MetricHeader.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MetricHeader.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MetricHeader.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public MetricHeader.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
MetricHeader.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MetricHeader.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MetricHeader.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public MetricHeader.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MetricHeader.Builder
Overrides

setName(String value)

public MetricHeader.Builder setName(String value)

The metric's name.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
MetricHeader.Builder

This builder for chaining.

setNameBytes(ByteString value)

public MetricHeader.Builder setNameBytes(ByteString value)

The metric's name.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueMetricType

The type to set.

Returns
TypeDescription
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
NameDescription
valueint

The enum numeric value on the wire for type to set.

Returns
TypeDescription
MetricHeader.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final MetricHeader.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MetricHeader.Builder
Overrides