Class AccessMetric.Builder (0.56.0)

public static final class AccessMetric.Builder extends GeneratedMessageV3.Builder<AccessMetric.Builder> implements AccessMetricOrBuilder

The quantitative measurements of a report. For example, the metric accessCount is the total number of data access records.

Protobuf type google.analytics.admin.v1beta.AccessMetric

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AccessMetric.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AccessMetric.Builder
Overrides

build()

public AccessMetric build()
Returns
Type Description
AccessMetric

buildPartial()

public AccessMetric buildPartial()
Returns
Type Description
AccessMetric

clear()

public AccessMetric.Builder clear()
Returns
Type Description
AccessMetric.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearMetricName()

public AccessMetric.Builder clearMetricName()

The API name of the metric. See Data Access Schema for the list of metrics supported in this API.

Metrics are referenced by name in metricFilter & orderBys.

string metric_name = 1;

Returns
Type Description
AccessMetric.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AccessMetric.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AccessMetric.Builder
Overrides

clone()

public AccessMetric.Builder clone()
Returns
Type Description
AccessMetric.Builder
Overrides

getDefaultInstanceForType()

public AccessMetric getDefaultInstanceForType()
Returns
Type Description
AccessMetric

getDescriptorForType()

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

getMetricName()

public String getMetricName()

The API name of the metric. See Data Access Schema for the list of metrics supported in this API.

Metrics are referenced by name in metricFilter & orderBys.

string metric_name = 1;

Returns
Type Description
String

The metricName.

getMetricNameBytes()

public ByteString getMetricNameBytes()

The API name of the metric. See Data Access Schema for the list of metrics supported in this API.

Metrics are referenced by name in metricFilter & orderBys.

string metric_name = 1;

Returns
Type Description
ByteString

The bytes for metricName.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AccessMetric other)

public AccessMetric.Builder mergeFrom(AccessMetric other)
Parameter
Name Description
other AccessMetric
Returns
Type Description
AccessMetric.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AccessMetric.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AccessMetric.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public AccessMetric.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AccessMetric.Builder
Overrides

setMetricName(String value)

public AccessMetric.Builder setMetricName(String value)

The API name of the metric. See Data Access Schema for the list of metrics supported in this API.

Metrics are referenced by name in metricFilter & orderBys.

string metric_name = 1;

Parameter
Name Description
value String

The metricName to set.

Returns
Type Description
AccessMetric.Builder

This builder for chaining.

setMetricNameBytes(ByteString value)

public AccessMetric.Builder setMetricNameBytes(ByteString value)

The API name of the metric. See Data Access Schema for the list of metrics supported in this API.

Metrics are referenced by name in metricFilter & orderBys.

string metric_name = 1;

Parameter
Name Description
value ByteString

The bytes for metricName to set.

Returns
Type Description
AccessMetric.Builder

This builder for chaining.

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

public AccessMetric.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AccessMetric.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AccessMetric.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AccessMetric.Builder
Overrides