Class AccessMetric.Builder (0.25.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.v1alpha.AccessMetric

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AccessMetric build()
Returns
TypeDescription
AccessMetric

buildPartial()

public AccessMetric buildPartial()
Returns
TypeDescription
AccessMetric

clear()

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

clearField(Descriptors.FieldDescriptor field)

public AccessMetric.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
AccessMetric.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public AccessMetric getDefaultInstanceForType()
Returns
TypeDescription
AccessMetric

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
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(AccessMetric other)

public AccessMetric.Builder mergeFrom(AccessMetric other)
Parameter
NameDescription
otherAccessMetric
Returns
TypeDescription
AccessMetric.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public AccessMetric.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The metricName to set.

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

The bytes for metricName to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AccessMetric.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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