Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/admin/v2alpha/metrics.proto
package io.envoyproxy.envoy.admin.v2alpha;
/**
*
* Proto representation of an Envoy Counter or Gauge value.
*
*
* Protobuf type {@code envoy.admin.v2alpha.SimpleMetric}
*/
public final class SimpleMetric extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.admin.v2alpha.SimpleMetric)
SimpleMetricOrBuilder {
private static final long serialVersionUID = 0L;
// Use SimpleMetric.newBuilder() to construct.
private SimpleMetric(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SimpleMetric() {
type_ = 0;
name_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SimpleMetric();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SimpleMetric(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
type_ = rawValue;
break;
}
case 16: {
value_ = input.readUInt64();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.admin.v2alpha.MetricsProto.internal_static_envoy_admin_v2alpha_SimpleMetric_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.admin.v2alpha.MetricsProto.internal_static_envoy_admin_v2alpha_SimpleMetric_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.admin.v2alpha.SimpleMetric.class, io.envoyproxy.envoy.admin.v2alpha.SimpleMetric.Builder.class);
}
/**
* Protobuf enum {@code envoy.admin.v2alpha.SimpleMetric.Type}
*/
public enum Type
implements com.google.protobuf.ProtocolMessageEnum {
/**
* COUNTER = 0;
*/
COUNTER(0),
/**
* GAUGE = 1;
*/
GAUGE(1),
UNRECOGNIZED(-1),
;
/**
* COUNTER = 0;
*/
public static final int COUNTER_VALUE = 0;
/**
* GAUGE = 1;
*/
public static final int GAUGE_VALUE = 1;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Type valueOf(int value) {
return forNumber(value);
}
public static Type forNumber(int value) {
switch (value) {
case 0: return COUNTER;
case 1: return GAUGE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Type> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Type findValueByNumber(int number) {
return Type.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.envoyproxy.envoy.admin.v2alpha.SimpleMetric.getDescriptor().getEnumTypes().get(0);
}
private static final Type[] VALUES = values();
public static Type valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Type(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:envoy.admin.v2alpha.SimpleMetric.Type)
}
public static final int TYPE_FIELD_NUMBER = 1;
private int type_;
/**
*
* Type of the metric represented.
*
*
* .envoy.admin.v2alpha.SimpleMetric.Type type = 1;
*/
public int getTypeValue() {
return type_;
}
/**
*
* Type of the metric represented.
*
*
* .envoy.admin.v2alpha.SimpleMetric.Type type = 1;
*/
public io.envoyproxy.envoy.admin.v2alpha.SimpleMetric.Type getType() {
@SuppressWarnings("deprecation")
io.envoyproxy.envoy.admin.v2alpha.SimpleMetric.Type result = io.envoyproxy.envoy.admin.v2alpha.SimpleMetric.Type.valueOf(type_);
return result == null ? io.envoyproxy.envoy.admin.v2alpha.SimpleMetric.Type.UNRECOGNIZED : result;
}
public static final int VALUE_FIELD_NUMBER = 2;
private long value_;
/**
*
* Current metric value.
*
*
* uint64 value = 2;
*/
public long getValue() {
return value_;
}
public static final int NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object name_;
/**
*