Class MetricValue.Builder (0.33.0)

public static final class MetricValue.Builder extends GeneratedMessageV3.Builder<MetricValue.Builder> implements MetricValueOrBuilder

The value of a metric.

Protobuf type google.analytics.data.v1beta.MetricValue

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MetricValue build()
Returns
TypeDescription
MetricValue

buildPartial()

public MetricValue buildPartial()
Returns
TypeDescription
MetricValue

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneValue()

public MetricValue.Builder clearOneValue()
Returns
TypeDescription
MetricValue.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearValue()

public MetricValue.Builder clearValue()

Measurement value. See MetricHeader for type.

string value = 4;

Returns
TypeDescription
MetricValue.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public MetricValue getDefaultInstanceForType()
Returns
TypeDescription
MetricValue

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getOneValueCase()

public MetricValue.OneValueCase getOneValueCase()
Returns
TypeDescription
MetricValue.OneValueCase

getValue()

public String getValue()

Measurement value. See MetricHeader for type.

string value = 4;

Returns
TypeDescription
String

The value.

getValueBytes()

public ByteString getValueBytes()

Measurement value. See MetricHeader for type.

string value = 4;

Returns
TypeDescription
ByteString

The bytes for value.

hasValue()

public boolean hasValue()

Measurement value. See MetricHeader for type.

string value = 4;

Returns
TypeDescription
boolean

Whether the value field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(MetricValue other)

public MetricValue.Builder mergeFrom(MetricValue other)
Parameter
NameDescription
otherMetricValue
Returns
TypeDescription
MetricValue.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setValue(String value)

public MetricValue.Builder setValue(String value)

Measurement value. See MetricHeader for type.

string value = 4;

Parameter
NameDescription
valueString

The value to set.

Returns
TypeDescription
MetricValue.Builder

This builder for chaining.

setValueBytes(ByteString value)

public MetricValue.Builder setValueBytes(ByteString value)

Measurement value. See MetricHeader for type.

string value = 4;

Parameter
NameDescription
valueByteString

The bytes for value to set.

Returns
TypeDescription
MetricValue.Builder

This builder for chaining.