Please wait. This can take some minutes ...
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.
io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/service/metrics/v3alpha/metrics_service.proto
package io.envoyproxy.envoy.service.metrics.v3alpha;
/**
* Protobuf type {@code envoy.service.metrics.v3alpha.StreamMetricsMessage}
*/
public final class StreamMetricsMessage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.service.metrics.v3alpha.StreamMetricsMessage)
StreamMetricsMessageOrBuilder {
private static final long serialVersionUID = 0L;
// Use StreamMetricsMessage.newBuilder() to construct.
private StreamMetricsMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StreamMetricsMessage() {
envoyMetrics_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StreamMetricsMessage();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StreamMetricsMessage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
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 10: {
io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier.Builder subBuilder = null;
if (identifier_ != null) {
subBuilder = identifier_.toBuilder();
}
identifier_ = input.readMessage(io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(identifier_);
identifier_ = subBuilder.buildPartial();
}
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
envoyMetrics_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
envoyMetrics_.add(
input.readMessage(io.prometheus.client.Metrics.MetricFamily.PARSER, extensionRegistry));
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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
envoyMetrics_ = java.util.Collections.unmodifiableList(envoyMetrics_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.service.metrics.v3alpha.MetricsServiceProto.internal_static_envoy_service_metrics_v3alpha_StreamMetricsMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.service.metrics.v3alpha.MetricsServiceProto.internal_static_envoy_service_metrics_v3alpha_StreamMetricsMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.class, io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Builder.class);
}
public interface IdentifierOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier)
com.google.protobuf.MessageOrBuilder {
/**
*
* The node sending metrics over the stream.
*
*
* .envoy.api.v3alpha.core.Node node = 1 [(.validate.rules) = { ... }
*/
boolean hasNode();
/**
*
* The node sending metrics over the stream.
*
*
* .envoy.api.v3alpha.core.Node node = 1 [(.validate.rules) = { ... }
*/
io.envoyproxy.envoy.api.v3alpha.core.Node getNode();
/**
*
* The node sending metrics over the stream.
*
*
* .envoy.api.v3alpha.core.Node node = 1 [(.validate.rules) = { ... }
*/
io.envoyproxy.envoy.api.v3alpha.core.NodeOrBuilder getNodeOrBuilder();
}
/**
* Protobuf type {@code envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier}
*/
public static final class Identifier extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier)
IdentifierOrBuilder {
private static final long serialVersionUID = 0L;
// Use Identifier.newBuilder() to construct.
private Identifier(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Identifier() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Identifier();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Identifier(
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 10: {
io.envoyproxy.envoy.api.v3alpha.core.Node.Builder subBuilder = null;
if (node_ != null) {
subBuilder = node_.toBuilder();
}
node_ = input.readMessage(io.envoyproxy.envoy.api.v3alpha.core.Node.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(node_);
node_ = subBuilder.buildPartial();
}
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.service.metrics.v3alpha.MetricsServiceProto.internal_static_envoy_service_metrics_v3alpha_StreamMetricsMessage_Identifier_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.service.metrics.v3alpha.MetricsServiceProto.internal_static_envoy_service_metrics_v3alpha_StreamMetricsMessage_Identifier_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier.class, io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier.Builder.class);
}
public static final int NODE_FIELD_NUMBER = 1;
private io.envoyproxy.envoy.api.v3alpha.core.Node node_;
/**
*
* The node sending metrics over the stream.
*
*
* .envoy.api.v3alpha.core.Node node = 1 [(.validate.rules) = { ... }
*/
public boolean hasNode() {
return node_ != null;
}
/**
*
* The node sending metrics over the stream.
*
*
* .envoy.api.v3alpha.core.Node node = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.api.v3alpha.core.Node getNode() {
return node_ == null ? io.envoyproxy.envoy.api.v3alpha.core.Node.getDefaultInstance() : node_;
}
/**
*
* The node sending metrics over the stream.
*
*
* .envoy.api.v3alpha.core.Node node = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.api.v3alpha.core.NodeOrBuilder getNodeOrBuilder() {
return getNode();
}
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(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (node_ != null) {
output.writeMessage(1, getNode());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (node_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getNode());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier)) {
return super.equals(obj);
}
io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier other = (io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier) obj;
if (hasNode() != other.hasNode()) return false;
if (hasNode()) {
if (!getNode()
.equals(other.getNode())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasNode()) {
hash = (37 * hash) + NODE_FIELD_NUMBER;
hash = (53 * hash) + getNode().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return 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(io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier 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(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier)
io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.IdentifierOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.service.metrics.v3alpha.MetricsServiceProto.internal_static_envoy_service_metrics_v3alpha_StreamMetricsMessage_Identifier_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.service.metrics.v3alpha.MetricsServiceProto.internal_static_envoy_service_metrics_v3alpha_StreamMetricsMessage_Identifier_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier.class, io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier.Builder.class);
}
// Construct using io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (nodeBuilder_ == null) {
node_ = null;
} else {
node_ = null;
nodeBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.service.metrics.v3alpha.MetricsServiceProto.internal_static_envoy_service_metrics_v3alpha_StreamMetricsMessage_Identifier_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier getDefaultInstanceForType() {
return io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier build() {
io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier buildPartial() {
io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier result = new io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier(this);
if (nodeBuilder_ == null) {
result.node_ = node_;
} else {
result.node_ = nodeBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier) {
return mergeFrom((io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier other) {
if (other == io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier.getDefaultInstance()) return this;
if (other.hasNode()) {
mergeNode(other.getNode());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private io.envoyproxy.envoy.api.v3alpha.core.Node node_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v3alpha.core.Node, io.envoyproxy.envoy.api.v3alpha.core.Node.Builder, io.envoyproxy.envoy.api.v3alpha.core.NodeOrBuilder> nodeBuilder_;
/**
*
* The node sending metrics over the stream.
*
*
* .envoy.api.v3alpha.core.Node node = 1 [(.validate.rules) = { ... }
*/
public boolean hasNode() {
return nodeBuilder_ != null || node_ != null;
}
/**
*
* The node sending metrics over the stream.
*
*
* .envoy.api.v3alpha.core.Node node = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.api.v3alpha.core.Node getNode() {
if (nodeBuilder_ == null) {
return node_ == null ? io.envoyproxy.envoy.api.v3alpha.core.Node.getDefaultInstance() : node_;
} else {
return nodeBuilder_.getMessage();
}
}
/**
*
* The node sending metrics over the stream.
*
*
* .envoy.api.v3alpha.core.Node node = 1 [(.validate.rules) = { ... }
*/
public Builder setNode(io.envoyproxy.envoy.api.v3alpha.core.Node value) {
if (nodeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
node_ = value;
onChanged();
} else {
nodeBuilder_.setMessage(value);
}
return this;
}
/**
*
* The node sending metrics over the stream.
*
*
* .envoy.api.v3alpha.core.Node node = 1 [(.validate.rules) = { ... }
*/
public Builder setNode(
io.envoyproxy.envoy.api.v3alpha.core.Node.Builder builderForValue) {
if (nodeBuilder_ == null) {
node_ = builderForValue.build();
onChanged();
} else {
nodeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The node sending metrics over the stream.
*
*
* .envoy.api.v3alpha.core.Node node = 1 [(.validate.rules) = { ... }
*/
public Builder mergeNode(io.envoyproxy.envoy.api.v3alpha.core.Node value) {
if (nodeBuilder_ == null) {
if (node_ != null) {
node_ =
io.envoyproxy.envoy.api.v3alpha.core.Node.newBuilder(node_).mergeFrom(value).buildPartial();
} else {
node_ = value;
}
onChanged();
} else {
nodeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The node sending metrics over the stream.
*
*
* .envoy.api.v3alpha.core.Node node = 1 [(.validate.rules) = { ... }
*/
public Builder clearNode() {
if (nodeBuilder_ == null) {
node_ = null;
onChanged();
} else {
node_ = null;
nodeBuilder_ = null;
}
return this;
}
/**
*
* The node sending metrics over the stream.
*
*
* .envoy.api.v3alpha.core.Node node = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.api.v3alpha.core.Node.Builder getNodeBuilder() {
onChanged();
return getNodeFieldBuilder().getBuilder();
}
/**
*
* The node sending metrics over the stream.
*
*
* .envoy.api.v3alpha.core.Node node = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.api.v3alpha.core.NodeOrBuilder getNodeOrBuilder() {
if (nodeBuilder_ != null) {
return nodeBuilder_.getMessageOrBuilder();
} else {
return node_ == null ?
io.envoyproxy.envoy.api.v3alpha.core.Node.getDefaultInstance() : node_;
}
}
/**
*
* The node sending metrics over the stream.
*
*
* .envoy.api.v3alpha.core.Node node = 1 [(.validate.rules) = { ... }
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v3alpha.core.Node, io.envoyproxy.envoy.api.v3alpha.core.Node.Builder, io.envoyproxy.envoy.api.v3alpha.core.NodeOrBuilder>
getNodeFieldBuilder() {
if (nodeBuilder_ == null) {
nodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v3alpha.core.Node, io.envoyproxy.envoy.api.v3alpha.core.Node.Builder, io.envoyproxy.envoy.api.v3alpha.core.NodeOrBuilder>(
getNode(),
getParentForChildren(),
isClean());
node_ = null;
}
return nodeBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier)
}
// @@protoc_insertion_point(class_scope:envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier)
private static final io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier();
}
public static io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Identifier parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Identifier(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int IDENTIFIER_FIELD_NUMBER = 1;
private io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier identifier_;
/**
*
* Identifier data effectively is a structured metadata. As a performance optimization this will
* only be sent in the first message on the stream.
*
*
* .envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier identifier = 1;
*/
public boolean hasIdentifier() {
return identifier_ != null;
}
/**
*
* Identifier data effectively is a structured metadata. As a performance optimization this will
* only be sent in the first message on the stream.
*
*
* .envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier identifier = 1;
*/
public io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier getIdentifier() {
return identifier_ == null ? io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier.getDefaultInstance() : identifier_;
}
/**
*
* Identifier data effectively is a structured metadata. As a performance optimization this will
* only be sent in the first message on the stream.
*
*
* .envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier identifier = 1;
*/
public io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.IdentifierOrBuilder getIdentifierOrBuilder() {
return getIdentifier();
}
public static final int ENVOY_METRICS_FIELD_NUMBER = 2;
private java.util.List envoyMetrics_;
/**
*
* A list of metric entries
*
*
* repeated .io.prometheus.client.MetricFamily envoy_metrics = 2;
*/
public java.util.List getEnvoyMetricsList() {
return envoyMetrics_;
}
/**
*
* A list of metric entries
*
*
* repeated .io.prometheus.client.MetricFamily envoy_metrics = 2;
*/
public java.util.List extends io.prometheus.client.Metrics.MetricFamilyOrBuilder>
getEnvoyMetricsOrBuilderList() {
return envoyMetrics_;
}
/**
*
* A list of metric entries
*
*
* repeated .io.prometheus.client.MetricFamily envoy_metrics = 2;
*/
public int getEnvoyMetricsCount() {
return envoyMetrics_.size();
}
/**
*
* A list of metric entries
*
*
* repeated .io.prometheus.client.MetricFamily envoy_metrics = 2;
*/
public io.prometheus.client.Metrics.MetricFamily getEnvoyMetrics(int index) {
return envoyMetrics_.get(index);
}
/**
*
* A list of metric entries
*
*
* repeated .io.prometheus.client.MetricFamily envoy_metrics = 2;
*/
public io.prometheus.client.Metrics.MetricFamilyOrBuilder getEnvoyMetricsOrBuilder(
int index) {
return envoyMetrics_.get(index);
}
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(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (identifier_ != null) {
output.writeMessage(1, getIdentifier());
}
for (int i = 0; i < envoyMetrics_.size(); i++) {
output.writeMessage(2, envoyMetrics_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (identifier_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getIdentifier());
}
for (int i = 0; i < envoyMetrics_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, envoyMetrics_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage)) {
return super.equals(obj);
}
io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage other = (io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage) obj;
if (hasIdentifier() != other.hasIdentifier()) return false;
if (hasIdentifier()) {
if (!getIdentifier()
.equals(other.getIdentifier())) return false;
}
if (!getEnvoyMetricsList()
.equals(other.getEnvoyMetricsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasIdentifier()) {
hash = (37 * hash) + IDENTIFIER_FIELD_NUMBER;
hash = (53 * hash) + getIdentifier().hashCode();
}
if (getEnvoyMetricsCount() > 0) {
hash = (37 * hash) + ENVOY_METRICS_FIELD_NUMBER;
hash = (53 * hash) + getEnvoyMetricsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return 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(io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage 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(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code envoy.service.metrics.v3alpha.StreamMetricsMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.service.metrics.v3alpha.StreamMetricsMessage)
io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.service.metrics.v3alpha.MetricsServiceProto.internal_static_envoy_service_metrics_v3alpha_StreamMetricsMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.service.metrics.v3alpha.MetricsServiceProto.internal_static_envoy_service_metrics_v3alpha_StreamMetricsMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.class, io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Builder.class);
}
// Construct using io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getEnvoyMetricsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (identifierBuilder_ == null) {
identifier_ = null;
} else {
identifier_ = null;
identifierBuilder_ = null;
}
if (envoyMetricsBuilder_ == null) {
envoyMetrics_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
envoyMetricsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.service.metrics.v3alpha.MetricsServiceProto.internal_static_envoy_service_metrics_v3alpha_StreamMetricsMessage_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage getDefaultInstanceForType() {
return io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage build() {
io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage buildPartial() {
io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage result = new io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage(this);
int from_bitField0_ = bitField0_;
if (identifierBuilder_ == null) {
result.identifier_ = identifier_;
} else {
result.identifier_ = identifierBuilder_.build();
}
if (envoyMetricsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
envoyMetrics_ = java.util.Collections.unmodifiableList(envoyMetrics_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.envoyMetrics_ = envoyMetrics_;
} else {
result.envoyMetrics_ = envoyMetricsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage) {
return mergeFrom((io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage other) {
if (other == io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.getDefaultInstance()) return this;
if (other.hasIdentifier()) {
mergeIdentifier(other.getIdentifier());
}
if (envoyMetricsBuilder_ == null) {
if (!other.envoyMetrics_.isEmpty()) {
if (envoyMetrics_.isEmpty()) {
envoyMetrics_ = other.envoyMetrics_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureEnvoyMetricsIsMutable();
envoyMetrics_.addAll(other.envoyMetrics_);
}
onChanged();
}
} else {
if (!other.envoyMetrics_.isEmpty()) {
if (envoyMetricsBuilder_.isEmpty()) {
envoyMetricsBuilder_.dispose();
envoyMetricsBuilder_ = null;
envoyMetrics_ = other.envoyMetrics_;
bitField0_ = (bitField0_ & ~0x00000001);
envoyMetricsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEnvoyMetricsFieldBuilder() : null;
} else {
envoyMetricsBuilder_.addAllMessages(other.envoyMetrics_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier identifier_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier, io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier.Builder, io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.IdentifierOrBuilder> identifierBuilder_;
/**
*
* Identifier data effectively is a structured metadata. As a performance optimization this will
* only be sent in the first message on the stream.
*
*
* .envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier identifier = 1;
*/
public boolean hasIdentifier() {
return identifierBuilder_ != null || identifier_ != null;
}
/**
*
* Identifier data effectively is a structured metadata. As a performance optimization this will
* only be sent in the first message on the stream.
*
*
* .envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier identifier = 1;
*/
public io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier getIdentifier() {
if (identifierBuilder_ == null) {
return identifier_ == null ? io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier.getDefaultInstance() : identifier_;
} else {
return identifierBuilder_.getMessage();
}
}
/**
*
* Identifier data effectively is a structured metadata. As a performance optimization this will
* only be sent in the first message on the stream.
*
*
* .envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier identifier = 1;
*/
public Builder setIdentifier(io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier value) {
if (identifierBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
identifier_ = value;
onChanged();
} else {
identifierBuilder_.setMessage(value);
}
return this;
}
/**
*
* Identifier data effectively is a structured metadata. As a performance optimization this will
* only be sent in the first message on the stream.
*
*
* .envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier identifier = 1;
*/
public Builder setIdentifier(
io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier.Builder builderForValue) {
if (identifierBuilder_ == null) {
identifier_ = builderForValue.build();
onChanged();
} else {
identifierBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Identifier data effectively is a structured metadata. As a performance optimization this will
* only be sent in the first message on the stream.
*
*
* .envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier identifier = 1;
*/
public Builder mergeIdentifier(io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier value) {
if (identifierBuilder_ == null) {
if (identifier_ != null) {
identifier_ =
io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier.newBuilder(identifier_).mergeFrom(value).buildPartial();
} else {
identifier_ = value;
}
onChanged();
} else {
identifierBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Identifier data effectively is a structured metadata. As a performance optimization this will
* only be sent in the first message on the stream.
*
*
* .envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier identifier = 1;
*/
public Builder clearIdentifier() {
if (identifierBuilder_ == null) {
identifier_ = null;
onChanged();
} else {
identifier_ = null;
identifierBuilder_ = null;
}
return this;
}
/**
*
* Identifier data effectively is a structured metadata. As a performance optimization this will
* only be sent in the first message on the stream.
*
*
* .envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier identifier = 1;
*/
public io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier.Builder getIdentifierBuilder() {
onChanged();
return getIdentifierFieldBuilder().getBuilder();
}
/**
*
* Identifier data effectively is a structured metadata. As a performance optimization this will
* only be sent in the first message on the stream.
*
*
* .envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier identifier = 1;
*/
public io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.IdentifierOrBuilder getIdentifierOrBuilder() {
if (identifierBuilder_ != null) {
return identifierBuilder_.getMessageOrBuilder();
} else {
return identifier_ == null ?
io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier.getDefaultInstance() : identifier_;
}
}
/**
*
* Identifier data effectively is a structured metadata. As a performance optimization this will
* only be sent in the first message on the stream.
*
*
* .envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier identifier = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier, io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier.Builder, io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.IdentifierOrBuilder>
getIdentifierFieldBuilder() {
if (identifierBuilder_ == null) {
identifierBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier, io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.Identifier.Builder, io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage.IdentifierOrBuilder>(
getIdentifier(),
getParentForChildren(),
isClean());
identifier_ = null;
}
return identifierBuilder_;
}
private java.util.List envoyMetrics_ =
java.util.Collections.emptyList();
private void ensureEnvoyMetricsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
envoyMetrics_ = new java.util.ArrayList(envoyMetrics_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.prometheus.client.Metrics.MetricFamily, io.prometheus.client.Metrics.MetricFamily.Builder, io.prometheus.client.Metrics.MetricFamilyOrBuilder> envoyMetricsBuilder_;
/**
*
* A list of metric entries
*
*
* repeated .io.prometheus.client.MetricFamily envoy_metrics = 2;
*/
public java.util.List getEnvoyMetricsList() {
if (envoyMetricsBuilder_ == null) {
return java.util.Collections.unmodifiableList(envoyMetrics_);
} else {
return envoyMetricsBuilder_.getMessageList();
}
}
/**
*
* A list of metric entries
*
*
* repeated .io.prometheus.client.MetricFamily envoy_metrics = 2;
*/
public int getEnvoyMetricsCount() {
if (envoyMetricsBuilder_ == null) {
return envoyMetrics_.size();
} else {
return envoyMetricsBuilder_.getCount();
}
}
/**
*
* A list of metric entries
*
*
* repeated .io.prometheus.client.MetricFamily envoy_metrics = 2;
*/
public io.prometheus.client.Metrics.MetricFamily getEnvoyMetrics(int index) {
if (envoyMetricsBuilder_ == null) {
return envoyMetrics_.get(index);
} else {
return envoyMetricsBuilder_.getMessage(index);
}
}
/**
*
* A list of metric entries
*
*
* repeated .io.prometheus.client.MetricFamily envoy_metrics = 2;
*/
public Builder setEnvoyMetrics(
int index, io.prometheus.client.Metrics.MetricFamily value) {
if (envoyMetricsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEnvoyMetricsIsMutable();
envoyMetrics_.set(index, value);
onChanged();
} else {
envoyMetricsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* A list of metric entries
*
*
* repeated .io.prometheus.client.MetricFamily envoy_metrics = 2;
*/
public Builder setEnvoyMetrics(
int index, io.prometheus.client.Metrics.MetricFamily.Builder builderForValue) {
if (envoyMetricsBuilder_ == null) {
ensureEnvoyMetricsIsMutable();
envoyMetrics_.set(index, builderForValue.build());
onChanged();
} else {
envoyMetricsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A list of metric entries
*
*
* repeated .io.prometheus.client.MetricFamily envoy_metrics = 2;
*/
public Builder addEnvoyMetrics(io.prometheus.client.Metrics.MetricFamily value) {
if (envoyMetricsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEnvoyMetricsIsMutable();
envoyMetrics_.add(value);
onChanged();
} else {
envoyMetricsBuilder_.addMessage(value);
}
return this;
}
/**
*
* A list of metric entries
*
*
* repeated .io.prometheus.client.MetricFamily envoy_metrics = 2;
*/
public Builder addEnvoyMetrics(
int index, io.prometheus.client.Metrics.MetricFamily value) {
if (envoyMetricsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEnvoyMetricsIsMutable();
envoyMetrics_.add(index, value);
onChanged();
} else {
envoyMetricsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* A list of metric entries
*
*
* repeated .io.prometheus.client.MetricFamily envoy_metrics = 2;
*/
public Builder addEnvoyMetrics(
io.prometheus.client.Metrics.MetricFamily.Builder builderForValue) {
if (envoyMetricsBuilder_ == null) {
ensureEnvoyMetricsIsMutable();
envoyMetrics_.add(builderForValue.build());
onChanged();
} else {
envoyMetricsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* A list of metric entries
*
*
* repeated .io.prometheus.client.MetricFamily envoy_metrics = 2;
*/
public Builder addEnvoyMetrics(
int index, io.prometheus.client.Metrics.MetricFamily.Builder builderForValue) {
if (envoyMetricsBuilder_ == null) {
ensureEnvoyMetricsIsMutable();
envoyMetrics_.add(index, builderForValue.build());
onChanged();
} else {
envoyMetricsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A list of metric entries
*
*
* repeated .io.prometheus.client.MetricFamily envoy_metrics = 2;
*/
public Builder addAllEnvoyMetrics(
java.lang.Iterable extends io.prometheus.client.Metrics.MetricFamily> values) {
if (envoyMetricsBuilder_ == null) {
ensureEnvoyMetricsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, envoyMetrics_);
onChanged();
} else {
envoyMetricsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* A list of metric entries
*
*
* repeated .io.prometheus.client.MetricFamily envoy_metrics = 2;
*/
public Builder clearEnvoyMetrics() {
if (envoyMetricsBuilder_ == null) {
envoyMetrics_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
envoyMetricsBuilder_.clear();
}
return this;
}
/**
*
* A list of metric entries
*
*
* repeated .io.prometheus.client.MetricFamily envoy_metrics = 2;
*/
public Builder removeEnvoyMetrics(int index) {
if (envoyMetricsBuilder_ == null) {
ensureEnvoyMetricsIsMutable();
envoyMetrics_.remove(index);
onChanged();
} else {
envoyMetricsBuilder_.remove(index);
}
return this;
}
/**
*
* A list of metric entries
*
*
* repeated .io.prometheus.client.MetricFamily envoy_metrics = 2;
*/
public io.prometheus.client.Metrics.MetricFamily.Builder getEnvoyMetricsBuilder(
int index) {
return getEnvoyMetricsFieldBuilder().getBuilder(index);
}
/**
*
* A list of metric entries
*
*
* repeated .io.prometheus.client.MetricFamily envoy_metrics = 2;
*/
public io.prometheus.client.Metrics.MetricFamilyOrBuilder getEnvoyMetricsOrBuilder(
int index) {
if (envoyMetricsBuilder_ == null) {
return envoyMetrics_.get(index); } else {
return envoyMetricsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* A list of metric entries
*
*
* repeated .io.prometheus.client.MetricFamily envoy_metrics = 2;
*/
public java.util.List extends io.prometheus.client.Metrics.MetricFamilyOrBuilder>
getEnvoyMetricsOrBuilderList() {
if (envoyMetricsBuilder_ != null) {
return envoyMetricsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(envoyMetrics_);
}
}
/**
*
* A list of metric entries
*
*
* repeated .io.prometheus.client.MetricFamily envoy_metrics = 2;
*/
public io.prometheus.client.Metrics.MetricFamily.Builder addEnvoyMetricsBuilder() {
return getEnvoyMetricsFieldBuilder().addBuilder(
io.prometheus.client.Metrics.MetricFamily.getDefaultInstance());
}
/**
*
* A list of metric entries
*
*
* repeated .io.prometheus.client.MetricFamily envoy_metrics = 2;
*/
public io.prometheus.client.Metrics.MetricFamily.Builder addEnvoyMetricsBuilder(
int index) {
return getEnvoyMetricsFieldBuilder().addBuilder(
index, io.prometheus.client.Metrics.MetricFamily.getDefaultInstance());
}
/**
*
* A list of metric entries
*
*
* repeated .io.prometheus.client.MetricFamily envoy_metrics = 2;
*/
public java.util.List
getEnvoyMetricsBuilderList() {
return getEnvoyMetricsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.prometheus.client.Metrics.MetricFamily, io.prometheus.client.Metrics.MetricFamily.Builder, io.prometheus.client.Metrics.MetricFamilyOrBuilder>
getEnvoyMetricsFieldBuilder() {
if (envoyMetricsBuilder_ == null) {
envoyMetricsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.prometheus.client.Metrics.MetricFamily, io.prometheus.client.Metrics.MetricFamily.Builder, io.prometheus.client.Metrics.MetricFamilyOrBuilder>(
envoyMetrics_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
envoyMetrics_ = null;
}
return envoyMetricsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:envoy.service.metrics.v3alpha.StreamMetricsMessage)
}
// @@protoc_insertion_point(class_scope:envoy.service.metrics.v3alpha.StreamMetricsMessage)
private static final io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage();
}
public static io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StreamMetricsMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StreamMetricsMessage(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.envoyproxy.envoy.service.metrics.v3alpha.StreamMetricsMessage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}