public static final class MetricValue.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder> implements MetricValueOrBuilder
This type is used as a union, only one of doubleValue or stringValue should be setProtobuf type
alluxio.grpc.metric.MetricValue
Modifier and Type | Method and Description |
---|---|
MetricValue.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
MetricValue |
build() |
MetricValue |
buildPartial() |
MetricValue.Builder |
clear() |
MetricValue.Builder |
clearDoubleValue()
optional double doubleValue = 1; |
MetricValue.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
MetricValue.Builder |
clearMetricType()
optional .alluxio.grpc.MetricType metricType = 6; |
MetricValue.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
MetricValue.Builder |
clearStringValue()
optional string stringValue = 2; |
MetricValue.Builder |
clone() |
MetricValue |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
double |
getDoubleValue()
optional double doubleValue = 1; |
MetricType |
getMetricType()
optional .alluxio.grpc.MetricType metricType = 6; |
String |
getStringValue()
optional string stringValue = 2; |
com.google.protobuf.ByteString |
getStringValueBytes()
optional string stringValue = 2; |
boolean |
hasDoubleValue()
optional double doubleValue = 1; |
boolean |
hasMetricType()
optional .alluxio.grpc.MetricType metricType = 6; |
boolean |
hasStringValue()
optional string stringValue = 2; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
MetricValue.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
MetricValue.Builder |
mergeFrom(com.google.protobuf.Message other) |
MetricValue.Builder |
mergeFrom(MetricValue other) |
MetricValue.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
MetricValue.Builder |
setDoubleValue(double value)
optional double doubleValue = 1; |
MetricValue.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
MetricValue.Builder |
setMetricType(MetricType value)
optional .alluxio.grpc.MetricType metricType = 6; |
MetricValue.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
MetricValue.Builder |
setStringValue(String value)
optional string stringValue = 2; |
MetricValue.Builder |
setStringValueBytes(com.google.protobuf.ByteString value)
optional string stringValue = 2; |
MetricValue.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>
public MetricValue.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>
public MetricValue getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public MetricValue build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public MetricValue buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public MetricValue.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>
public MetricValue.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>
public MetricValue.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>
public MetricValue.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>
public MetricValue.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>
public MetricValue.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>
public MetricValue.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<MetricValue.Builder>
public MetricValue.Builder mergeFrom(MetricValue other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>
public MetricValue.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<MetricValue.Builder>
IOException
public boolean hasDoubleValue()
optional double doubleValue = 1;
hasDoubleValue
in interface MetricValueOrBuilder
public double getDoubleValue()
optional double doubleValue = 1;
getDoubleValue
in interface MetricValueOrBuilder
public MetricValue.Builder setDoubleValue(double value)
optional double doubleValue = 1;
value
- The doubleValue to set.public MetricValue.Builder clearDoubleValue()
optional double doubleValue = 1;
public boolean hasStringValue()
optional string stringValue = 2;
hasStringValue
in interface MetricValueOrBuilder
public String getStringValue()
optional string stringValue = 2;
getStringValue
in interface MetricValueOrBuilder
public com.google.protobuf.ByteString getStringValueBytes()
optional string stringValue = 2;
getStringValueBytes
in interface MetricValueOrBuilder
public MetricValue.Builder setStringValue(String value)
optional string stringValue = 2;
value
- The stringValue to set.public MetricValue.Builder clearStringValue()
optional string stringValue = 2;
public MetricValue.Builder setStringValueBytes(com.google.protobuf.ByteString value)
optional string stringValue = 2;
value
- The bytes for stringValue to set.public boolean hasMetricType()
optional .alluxio.grpc.MetricType metricType = 6;
hasMetricType
in interface MetricValueOrBuilder
public MetricType getMetricType()
optional .alluxio.grpc.MetricType metricType = 6;
getMetricType
in interface MetricValueOrBuilder
public MetricValue.Builder setMetricType(MetricType value)
optional .alluxio.grpc.MetricType metricType = 6;
value
- The metricType to set.public MetricValue.Builder clearMetricType()
optional .alluxio.grpc.MetricType metricType = 6;
public final MetricValue.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>
public final MetricValue.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<MetricValue.Builder>
Copyright © 2023. All Rights Reserved.