public static final class Metric.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Metric.Builder> implements MetricOrBuilder
Information about metrics.Protobuf type
alluxio.grpc.Metric
Modifier and Type | Method and Description |
---|---|
Metric.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Metric |
build() |
Metric |
buildPartial() |
Metric.Builder |
clear() |
Metric.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Metric.Builder |
clearInstance()
optional string instance = 1; |
Metric.Builder |
clearMetricType()
required .alluxio.grpc.MetricType metricType = 5; |
Metric.Builder |
clearName()
optional string name = 3; |
Metric.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Metric.Builder |
clearSource()
optional string source = 2; |
Metric.Builder |
clearTags() |
Metric.Builder |
clearValue()
optional double value = 4; |
Metric.Builder |
clone() |
boolean |
containsTags(String key)
map<string, string> tags = 6; |
Metric |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getInstance()
optional string instance = 1; |
com.google.protobuf.ByteString |
getInstanceBytes()
optional string instance = 1; |
MetricType |
getMetricType()
required .alluxio.grpc.MetricType metricType = 5; |
Map<String,String> |
getMutableTags()
Deprecated.
|
String |
getName()
optional string name = 3; |
com.google.protobuf.ByteString |
getNameBytes()
optional string name = 3; |
String |
getSource()
optional string source = 2; |
com.google.protobuf.ByteString |
getSourceBytes()
optional string source = 2; |
Map<String,String> |
getTags()
Deprecated.
|
int |
getTagsCount()
map<string, string> tags = 6; |
Map<String,String> |
getTagsMap()
map<string, string> tags = 6; |
String |
getTagsOrDefault(String key,
String defaultValue)
map<string, string> tags = 6; |
String |
getTagsOrThrow(String key)
map<string, string> tags = 6; |
double |
getValue()
optional double value = 4; |
boolean |
hasInstance()
optional string instance = 1; |
boolean |
hasMetricType()
required .alluxio.grpc.MetricType metricType = 5; |
boolean |
hasName()
optional string name = 3; |
boolean |
hasSource()
optional string source = 2; |
boolean |
hasValue()
optional double value = 4; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
Metric.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Metric.Builder |
mergeFrom(com.google.protobuf.Message other) |
Metric.Builder |
mergeFrom(Metric other) |
Metric.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Metric.Builder |
putAllTags(Map<String,String> values)
map<string, string> tags = 6; |
Metric.Builder |
putTags(String key,
String value)
map<string, string> tags = 6; |
Metric.Builder |
removeTags(String key)
map<string, string> tags = 6; |
Metric.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Metric.Builder |
setInstance(String value)
optional string instance = 1; |
Metric.Builder |
setInstanceBytes(com.google.protobuf.ByteString value)
optional string instance = 1; |
Metric.Builder |
setMetricType(MetricType value)
required .alluxio.grpc.MetricType metricType = 5; |
Metric.Builder |
setName(String value)
optional string name = 3; |
Metric.Builder |
setNameBytes(com.google.protobuf.ByteString value)
optional string name = 3; |
Metric.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Metric.Builder |
setSource(String value)
optional string source = 2; |
Metric.Builder |
setSourceBytes(com.google.protobuf.ByteString value)
optional string source = 2; |
Metric.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Metric.Builder |
setValue(double value)
optional double value = 4; |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, 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.MapField internalGetMapField(int number)
internalGetMapField
in class com.google.protobuf.GeneratedMessageV3.Builder<Metric.Builder>
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField
in class com.google.protobuf.GeneratedMessageV3.Builder<Metric.Builder>
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<Metric.Builder>
public Metric.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<Metric.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<Metric.Builder>
public Metric getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Metric build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Metric buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Metric.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<Metric.Builder>
public Metric.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<Metric.Builder>
public Metric.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<Metric.Builder>
public Metric.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<Metric.Builder>
public Metric.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<Metric.Builder>
public Metric.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<Metric.Builder>
public Metric.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Metric.Builder>
public Metric.Builder mergeFrom(Metric other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<Metric.Builder>
public Metric.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<Metric.Builder>
IOException
public boolean hasInstance()
optional string instance = 1;
hasInstance
in interface MetricOrBuilder
public String getInstance()
optional string instance = 1;
getInstance
in interface MetricOrBuilder
public com.google.protobuf.ByteString getInstanceBytes()
optional string instance = 1;
getInstanceBytes
in interface MetricOrBuilder
public Metric.Builder setInstance(String value)
optional string instance = 1;
value
- The instance to set.public Metric.Builder clearInstance()
optional string instance = 1;
public Metric.Builder setInstanceBytes(com.google.protobuf.ByteString value)
optional string instance = 1;
value
- The bytes for instance to set.public boolean hasSource()
optional string source = 2;
hasSource
in interface MetricOrBuilder
public String getSource()
optional string source = 2;
getSource
in interface MetricOrBuilder
public com.google.protobuf.ByteString getSourceBytes()
optional string source = 2;
getSourceBytes
in interface MetricOrBuilder
public Metric.Builder setSource(String value)
optional string source = 2;
value
- The source to set.public Metric.Builder clearSource()
optional string source = 2;
public Metric.Builder setSourceBytes(com.google.protobuf.ByteString value)
optional string source = 2;
value
- The bytes for source to set.public boolean hasName()
optional string name = 3;
hasName
in interface MetricOrBuilder
public String getName()
optional string name = 3;
getName
in interface MetricOrBuilder
public com.google.protobuf.ByteString getNameBytes()
optional string name = 3;
getNameBytes
in interface MetricOrBuilder
public Metric.Builder setName(String value)
optional string name = 3;
value
- The name to set.public Metric.Builder clearName()
optional string name = 3;
public Metric.Builder setNameBytes(com.google.protobuf.ByteString value)
optional string name = 3;
value
- The bytes for name to set.public boolean hasValue()
optional double value = 4;
hasValue
in interface MetricOrBuilder
public double getValue()
optional double value = 4;
getValue
in interface MetricOrBuilder
public Metric.Builder setValue(double value)
optional double value = 4;
value
- The value to set.public Metric.Builder clearValue()
optional double value = 4;
public boolean hasMetricType()
required .alluxio.grpc.MetricType metricType = 5;
hasMetricType
in interface MetricOrBuilder
public MetricType getMetricType()
required .alluxio.grpc.MetricType metricType = 5;
getMetricType
in interface MetricOrBuilder
public Metric.Builder setMetricType(MetricType value)
required .alluxio.grpc.MetricType metricType = 5;
value
- The metricType to set.public Metric.Builder clearMetricType()
required .alluxio.grpc.MetricType metricType = 5;
public int getTagsCount()
MetricOrBuilder
map<string, string> tags = 6;
getTagsCount
in interface MetricOrBuilder
public boolean containsTags(String key)
map<string, string> tags = 6;
containsTags
in interface MetricOrBuilder
@Deprecated public Map<String,String> getTags()
getTagsMap()
instead.getTags
in interface MetricOrBuilder
public Map<String,String> getTagsMap()
map<string, string> tags = 6;
getTagsMap
in interface MetricOrBuilder
public String getTagsOrDefault(String key, String defaultValue)
map<string, string> tags = 6;
getTagsOrDefault
in interface MetricOrBuilder
public String getTagsOrThrow(String key)
map<string, string> tags = 6;
getTagsOrThrow
in interface MetricOrBuilder
public Metric.Builder clearTags()
public Metric.Builder removeTags(String key)
map<string, string> tags = 6;
@Deprecated public Map<String,String> getMutableTags()
public Metric.Builder putTags(String key, String value)
map<string, string> tags = 6;
public Metric.Builder putAllTags(Map<String,String> values)
map<string, string> tags = 6;
public final Metric.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Metric.Builder>
public final Metric.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Metric.Builder>
Copyright © 2023. All Rights Reserved.