Class AccessMetricHeader.Builder (0.47.0)

public static final class AccessMetricHeader.Builder extends GeneratedMessageV3.Builder<AccessMetricHeader.Builder> implements AccessMetricHeaderOrBuilder

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.admin.v1alpha.AccessMetricHeader

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AccessMetricHeader build()
Returns
TypeDescription
AccessMetricHeader

buildPartial()

public AccessMetricHeader buildPartial()
Returns
TypeDescription
AccessMetricHeader

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMetricName()

public AccessMetricHeader.Builder clearMetricName()

The metric's name; for example 'accessCount'.

string metric_name = 1;

Returns
TypeDescription
AccessMetricHeader.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public AccessMetricHeader getDefaultInstanceForType()
Returns
TypeDescription
AccessMetricHeader

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMetricName()

public String getMetricName()

The metric's name; for example 'accessCount'.

string metric_name = 1;

Returns
TypeDescription
String

The metricName.

getMetricNameBytes()

public ByteString getMetricNameBytes()

The metric's name; for example 'accessCount'.

string metric_name = 1;

Returns
TypeDescription
ByteString

The bytes for metricName.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AccessMetricHeader other)

public AccessMetricHeader.Builder mergeFrom(AccessMetricHeader other)
Parameter
NameDescription
otherAccessMetricHeader
Returns
TypeDescription
AccessMetricHeader.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMetricName(String value)

public AccessMetricHeader.Builder setMetricName(String value)

The metric's name; for example 'accessCount'.

string metric_name = 1;

Parameter
NameDescription
valueString

The metricName to set.

Returns
TypeDescription
AccessMetricHeader.Builder

This builder for chaining.

setMetricNameBytes(ByteString value)

public AccessMetricHeader.Builder setMetricNameBytes(ByteString value)

The metric's name; for example 'accessCount'.

string metric_name = 1;

Parameter
NameDescription
valueByteString

The bytes for metricName to set.

Returns
TypeDescription
AccessMetricHeader.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AccessMetricHeader.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AccessMetricHeader.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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