Class NamedMetric.Builder (0.94.0)

public static final class NamedMetric.Builder extends GeneratedMessage.Builder<NamedMetric.Builder> implements NamedMetricOrBuilder

A named metric is a metric with name, value and unit.

Protobuf type google.cloud.dialogflow.cx.v3beta1.NamedMetric

Static Methods

getDescriptor()

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

Methods

build()

public NamedMetric build()
Returns
Type Description
NamedMetric

buildPartial()

public NamedMetric buildPartial()
Returns
Type Description
NamedMetric

clear()

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

clearName()

public NamedMetric.Builder clearName()

The name of the metric.

string name = 1;

Returns
Type Description
NamedMetric.Builder

This builder for chaining.

clearUnit()

public NamedMetric.Builder clearUnit()

The unit in which this metric is reported. Follows The Unified Code for Units of Measure standard.

string unit = 3;

Returns
Type Description
NamedMetric.Builder

This builder for chaining.

clearValue()

public NamedMetric.Builder clearValue()

The value of the metric.

.google.protobuf.Value value = 2;

Returns
Type Description
NamedMetric.Builder

getDefaultInstanceForType()

public NamedMetric getDefaultInstanceForType()
Returns
Type Description
NamedMetric

getDescriptorForType()

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

getName()

public String getName()

The name of the metric.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the metric.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getUnit()

public String getUnit()

The unit in which this metric is reported. Follows The Unified Code for Units of Measure standard.

string unit = 3;

Returns
Type Description
String

The unit.

getUnitBytes()

public ByteString getUnitBytes()

The unit in which this metric is reported. Follows The Unified Code for Units of Measure standard.

string unit = 3;

Returns
Type Description
ByteString

The bytes for unit.

getValue()

public Value getValue()

The value of the metric.

.google.protobuf.Value value = 2;

Returns
Type Description
Value

The value.

getValueBuilder()

public Value.Builder getValueBuilder()

The value of the metric.

.google.protobuf.Value value = 2;

Returns
Type Description
Builder

getValueOrBuilder()

public ValueOrBuilder getValueOrBuilder()

The value of the metric.

.google.protobuf.Value value = 2;

Returns
Type Description
ValueOrBuilder

hasValue()

public boolean hasValue()

The value of the metric.

.google.protobuf.Value value = 2;

Returns
Type Description
boolean

Whether the value field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NamedMetric other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeValue(Value value)

public NamedMetric.Builder mergeValue(Value value)

The value of the metric.

.google.protobuf.Value value = 2;

Parameter
Name Description
value Value
Returns
Type Description
NamedMetric.Builder

setName(String value)

public NamedMetric.Builder setName(String value)

The name of the metric.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
NamedMetric.Builder

This builder for chaining.

setNameBytes(ByteString value)

public NamedMetric.Builder setNameBytes(ByteString value)

The name of the metric.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
NamedMetric.Builder

This builder for chaining.

setUnit(String value)

public NamedMetric.Builder setUnit(String value)

The unit in which this metric is reported. Follows The Unified Code for Units of Measure standard.

string unit = 3;

Parameter
Name Description
value String

The unit to set.

Returns
Type Description
NamedMetric.Builder

This builder for chaining.

setUnitBytes(ByteString value)

public NamedMetric.Builder setUnitBytes(ByteString value)

The unit in which this metric is reported. Follows The Unified Code for Units of Measure standard.

string unit = 3;

Parameter
Name Description
value ByteString

The bytes for unit to set.

Returns
Type Description
NamedMetric.Builder

This builder for chaining.

setValue(Value value)

public NamedMetric.Builder setValue(Value value)

The value of the metric.

.google.protobuf.Value value = 2;

Parameter
Name Description
value Value
Returns
Type Description
NamedMetric.Builder

setValue(Value.Builder builderForValue)

public NamedMetric.Builder setValue(Value.Builder builderForValue)

The value of the metric.

.google.protobuf.Value value = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
NamedMetric.Builder