Class NamedMetric (0.89.0)

public final class NamedMetric extends GeneratedMessageV3 implements NamedMetricOrBuilder

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

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

Static Fields

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

UNIT_FIELD_NUMBER

public static final int UNIT_FIELD_NUMBER
Field Value
Type Description
int

VALUE_FIELD_NUMBER

public static final int VALUE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static NamedMetric getDefaultInstance()
Returns
Type Description
NamedMetric

getDescriptor()

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

newBuilder()

public static NamedMetric.Builder newBuilder()
Returns
Type Description
NamedMetric.Builder

newBuilder(NamedMetric prototype)

public static NamedMetric.Builder newBuilder(NamedMetric prototype)
Parameter
Name Description
prototype NamedMetric
Returns
Type Description
NamedMetric.Builder

parseDelimitedFrom(InputStream input)

public static NamedMetric parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
NamedMetric
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NamedMetric parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NamedMetric
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static NamedMetric parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
NamedMetric
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static NamedMetric parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NamedMetric
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static NamedMetric parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
NamedMetric
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static NamedMetric parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NamedMetric
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static NamedMetric parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
NamedMetric
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static NamedMetric parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NamedMetric
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static NamedMetric parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
NamedMetric
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NamedMetric parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NamedMetric
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static NamedMetric parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
NamedMetric
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static NamedMetric parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NamedMetric
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<NamedMetric> parser()
Returns
Type Description
Parser<NamedMetric>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public NamedMetric getDefaultInstanceForType()
Returns
Type Description
NamedMetric

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.

getParserForType()

public Parser<NamedMetric> getParserForType()
Returns
Type Description
Parser<NamedMetric>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public NamedMetric.Builder newBuilderForType()
Returns
Type Description
NamedMetric.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected NamedMetric.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
NamedMetric.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public NamedMetric.Builder toBuilder()
Returns
Type Description
NamedMetric.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException