
alluxio.grpc.GetMetricsPResponse Maven / Gradle / Ivy
// Generated by the protocol buffer alluxio.shaded.client.com.iler. DO NOT EDIT!
// source: grpc/metric_master.proto
package alluxio.grpc;
/**
* Protobuf type {@code alluxio.grpc.metric.GetMetricsPResponse}
*/
public final class GetMetricsPResponse extends
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:alluxio.grpc.metric.GetMetricsPResponse)
GetMetricsPResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetMetricsPResponse.newBuilder() to construct.
private GetMetricsPResponse(alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetMetricsPResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetMetricsPResponse();
}
@java.lang.Override
public final alluxio.shaded.client.com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return alluxio.grpc.MetricMasterProto.internal_static_alluxio_grpc_metric_GetMetricsPResponse_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected alluxio.shaded.client.com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetMetrics();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.grpc.MetricMasterProto.internal_static_alluxio_grpc_metric_GetMetricsPResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.grpc.GetMetricsPResponse.class, alluxio.grpc.GetMetricsPResponse.Builder.class);
}
public static final int METRICS_FIELD_NUMBER = 1;
private static final class MetricsDefaultEntryHolder {
static final alluxio.shaded.client.com.google.protobuf.MapEntry<
java.lang.String, alluxio.grpc.MetricValue> defaultEntry =
alluxio.shaded.client.com.google.protobuf.MapEntry
.newDefaultInstance(
alluxio.grpc.MetricMasterProto.internal_static_alluxio_grpc_metric_GetMetricsPResponse_MetricsEntry_descriptor,
alluxio.shaded.client.com.google.protobuf.WireFormat.FieldType.STRING,
"",
alluxio.shaded.client.com.google.protobuf.WireFormat.FieldType.MESSAGE,
alluxio.grpc.MetricValue.getDefaultInstance());
}
private alluxio.shaded.client.com.google.protobuf.MapField<
java.lang.String, alluxio.grpc.MetricValue> metrics_;
private alluxio.shaded.client.com.google.protobuf.MapField
internalGetMetrics() {
if (metrics_ == null) {
return alluxio.shaded.client.com.google.protobuf.MapField.emptyMapField(
MetricsDefaultEntryHolder.defaultEntry);
}
return metrics_;
}
public int getMetricsCount() {
return internalGetMetrics().getMap().size();
}
/**
* map<string, .alluxio.grpc.metric.MetricValue> metrics = 1;
*/
@java.lang.Override
public boolean containsMetrics(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetMetrics().getMap().containsKey(key);
}
/**
* Use {@link #getMetricsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getMetrics() {
return getMetricsMap();
}
/**
* map<string, .alluxio.grpc.metric.MetricValue> metrics = 1;
*/
@java.lang.Override
public java.util.Map getMetricsMap() {
return internalGetMetrics().getMap();
}
/**
* map<string, .alluxio.grpc.metric.MetricValue> metrics = 1;
*/
@java.lang.Override
public alluxio.grpc.MetricValue getMetricsOrDefault(
java.lang.String key,
alluxio.grpc.MetricValue defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetMetrics().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .alluxio.grpc.metric.MetricValue> metrics = 1;
*/
@java.lang.Override
public alluxio.grpc.MetricValue getMetricsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetMetrics().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(alluxio.shaded.client.com.google.protobuf.CodedOutputStream output)
throws java.alluxio.shaded.client.io.IOException {
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetMetrics(),
MetricsDefaultEntryHolder.defaultEntry,
1);
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (java.util.Map.Entry entry
: internalGetMetrics().getMap().entrySet()) {
alluxio.shaded.client.com.google.protobuf.MapEntry
metrics__ = MetricsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteMessageSize(1, metrics__);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof alluxio.grpc.GetMetricsPResponse)) {
return super.equals(obj);
}
alluxio.grpc.GetMetricsPResponse other = (alluxio.grpc.GetMetricsPResponse) obj;
if (!internalGetMetrics().equals(
other.internalGetMetrics())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (!internalGetMetrics().getMap().isEmpty()) {
hash = (37 * hash) + METRICS_FIELD_NUMBER;
hash = (53 * hash) + internalGetMetrics().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static alluxio.grpc.GetMetricsPResponse parseFrom(
java.nio.ByteBuffer data)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.grpc.GetMetricsPResponse parseFrom(
java.nio.ByteBuffer data,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static alluxio.grpc.GetMetricsPResponse parseFrom(
alluxio.shaded.client.com.google.protobuf.ByteString data)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.grpc.GetMetricsPResponse parseFrom(
alluxio.shaded.client.com.google.protobuf.ByteString data,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static alluxio.grpc.GetMetricsPResponse parseFrom(byte[] data)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.grpc.GetMetricsPResponse parseFrom(
byte[] data,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static alluxio.grpc.GetMetricsPResponse parseFrom(java.alluxio.shaded.client.io.InputStream input)
throws java.alluxio.shaded.client.io.IOException {
return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static alluxio.grpc.GetMetricsPResponse parseFrom(
java.alluxio.shaded.client.io.InputStream input,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.alluxio.shaded.client.io.IOException {
return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static alluxio.grpc.GetMetricsPResponse parseDelimitedFrom(java.alluxio.shaded.client.io.InputStream input)
throws java.alluxio.shaded.client.io.IOException {
return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static alluxio.grpc.GetMetricsPResponse parseDelimitedFrom(
java.alluxio.shaded.client.io.InputStream input,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.alluxio.shaded.client.io.IOException {
return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static alluxio.grpc.GetMetricsPResponse parseFrom(
alluxio.shaded.client.com.google.protobuf.CodedInputStream input)
throws java.alluxio.shaded.client.io.IOException {
return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static alluxio.grpc.GetMetricsPResponse parseFrom(
alluxio.shaded.client.com.google.protobuf.CodedInputStream input,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.alluxio.shaded.client.io.IOException {
return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(alluxio.grpc.GetMetricsPResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code alluxio.grpc.metric.GetMetricsPResponse}
*/
public static final class Builder extends
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:alluxio.grpc.metric.GetMetricsPResponse)
alluxio.grpc.GetMetricsPResponseOrBuilder {
public static final alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return alluxio.grpc.MetricMasterProto.internal_static_alluxio_grpc_metric_GetMetricsPResponse_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected alluxio.shaded.client.com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetMetrics();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected alluxio.shaded.client.com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 1:
return internalGetMutableMetrics();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.grpc.MetricMasterProto.internal_static_alluxio_grpc_metric_GetMetricsPResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.grpc.GetMetricsPResponse.class, alluxio.grpc.GetMetricsPResponse.Builder.class);
}
// Construct using alluxio.grpc.GetMetricsPResponse.newBuilder()
private Builder() {
}
private Builder(
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
internalGetMutableMetrics().clear();
return this;
}
@java.lang.Override
public alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return alluxio.grpc.MetricMasterProto.internal_static_alluxio_grpc_metric_GetMetricsPResponse_descriptor;
}
@java.lang.Override
public alluxio.grpc.GetMetricsPResponse getDefaultInstanceForType() {
return alluxio.grpc.GetMetricsPResponse.getDefaultInstance();
}
@java.lang.Override
public alluxio.grpc.GetMetricsPResponse build() {
alluxio.grpc.GetMetricsPResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public alluxio.grpc.GetMetricsPResponse buildPartial() {
alluxio.grpc.GetMetricsPResponse result = new alluxio.grpc.GetMetricsPResponse(this);
int from_bitField0_ = bitField0_;
result.metrics_ = internalGetMetrics();
result.metrics_.makeImmutable();
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
alluxio.shaded.client.com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(alluxio.shaded.client.com.google.protobuf.Message other) {
if (other instanceof alluxio.grpc.GetMetricsPResponse) {
return mergeFrom((alluxio.grpc.GetMetricsPResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(alluxio.grpc.GetMetricsPResponse other) {
if (other == alluxio.grpc.GetMetricsPResponse.getDefaultInstance()) return this;
internalGetMutableMetrics().mergeFrom(
other.internalGetMetrics());
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
alluxio.shaded.client.com.google.protobuf.CodedInputStream input,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.alluxio.shaded.client.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
alluxio.shaded.client.com.google.protobuf.MapEntry
metrics__ = input.readMessage(
MetricsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableMetrics().getMutableMap().put(
metrics__.getKey(), metrics__.getValue());
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private alluxio.shaded.client.com.google.protobuf.MapField<
java.lang.String, alluxio.grpc.MetricValue> metrics_;
private alluxio.shaded.client.com.google.protobuf.MapField
internalGetMetrics() {
if (metrics_ == null) {
return alluxio.shaded.client.com.google.protobuf.MapField.emptyMapField(
MetricsDefaultEntryHolder.defaultEntry);
}
return metrics_;
}
private alluxio.shaded.client.com.google.protobuf.MapField
internalGetMutableMetrics() {
onChanged();;
if (metrics_ == null) {
metrics_ = alluxio.shaded.client.com.google.protobuf.MapField.newMapField(
MetricsDefaultEntryHolder.defaultEntry);
}
if (!metrics_.isMutable()) {
metrics_ = metrics_.copy();
}
return metrics_;
}
public int getMetricsCount() {
return internalGetMetrics().getMap().size();
}
/**
* map<string, .alluxio.grpc.metric.MetricValue> metrics = 1;
*/
@java.lang.Override
public boolean containsMetrics(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetMetrics().getMap().containsKey(key);
}
/**
* Use {@link #getMetricsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getMetrics() {
return getMetricsMap();
}
/**
* map<string, .alluxio.grpc.metric.MetricValue> metrics = 1;
*/
@java.lang.Override
public java.util.Map getMetricsMap() {
return internalGetMetrics().getMap();
}
/**
* map<string, .alluxio.grpc.metric.MetricValue> metrics = 1;
*/
@java.lang.Override
public alluxio.grpc.MetricValue getMetricsOrDefault(
java.lang.String key,
alluxio.grpc.MetricValue defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetMetrics().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .alluxio.grpc.metric.MetricValue> metrics = 1;
*/
@java.lang.Override
public alluxio.grpc.MetricValue getMetricsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetMetrics().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearMetrics() {
internalGetMutableMetrics().getMutableMap()
.clear();
return this;
}
/**
* map<string, .alluxio.grpc.metric.MetricValue> metrics = 1;
*/
public Builder removeMetrics(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableMetrics().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableMetrics() {
return internalGetMutableMetrics().getMutableMap();
}
/**
* map<string, .alluxio.grpc.metric.MetricValue> metrics = 1;
*/
public Builder putMetrics(
java.lang.String key,
alluxio.grpc.MetricValue value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableMetrics().getMutableMap()
.put(key, value);
return this;
}
/**
* map<string, .alluxio.grpc.metric.MetricValue> metrics = 1;
*/
public Builder putAllMetrics(
java.util.Map values) {
internalGetMutableMetrics().getMutableMap()
.putAll(values);
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final alluxio.shaded.client.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final alluxio.shaded.client.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:alluxio.grpc.metric.GetMetricsPResponse)
}
// @@protoc_insertion_point(class_scope:alluxio.grpc.metric.GetMetricsPResponse)
private static final alluxio.grpc.GetMetricsPResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new alluxio.grpc.GetMetricsPResponse();
}
public static alluxio.grpc.GetMetricsPResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final alluxio.shaded.client.com.google.protobuf.Parser
PARSER = new alluxio.shaded.client.com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetMetricsPResponse parsePartialFrom(
alluxio.shaded.client.com.google.protobuf.CodedInputStream input,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (alluxio.shaded.client.com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.alluxio.shaded.client.io.IOException e) {
throw new alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static alluxio.shaded.client.com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public alluxio.shaded.client.com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public alluxio.grpc.GetMetricsPResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy