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.load_stats.v2.LoadStatsRequest Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/service/load_stats/v2/lrs.proto
package io.envoyproxy.envoy.service.load_stats.v2;
/**
*
* A load report Envoy sends to the management server.
* [#not-implemented-hide:] Not configuration. TBD how to doc proto APIs.
*
*
* Protobuf type {@code envoy.service.load_stats.v2.LoadStatsRequest}
*/
public final class LoadStatsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.service.load_stats.v2.LoadStatsRequest)
LoadStatsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use LoadStatsRequest.newBuilder() to construct.
private LoadStatsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LoadStatsRequest() {
clusterStats_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LoadStatsRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LoadStatsRequest(
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.api.v2.core.Node.Builder subBuilder = null;
if (node_ != null) {
subBuilder = node_.toBuilder();
}
node_ = input.readMessage(io.envoyproxy.envoy.api.v2.core.Node.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(node_);
node_ = subBuilder.buildPartial();
}
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
clusterStats_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
clusterStats_.add(
input.readMessage(io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
clusterStats_ = java.util.Collections.unmodifiableList(clusterStats_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.service.load_stats.v2.LrsProto.internal_static_envoy_service_load_stats_v2_LoadStatsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.service.load_stats.v2.LrsProto.internal_static_envoy_service_load_stats_v2_LoadStatsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.load_stats.v2.LoadStatsRequest.class, io.envoyproxy.envoy.service.load_stats.v2.LoadStatsRequest.Builder.class);
}
public static final int NODE_FIELD_NUMBER = 1;
private io.envoyproxy.envoy.api.v2.core.Node node_;
/**
*
* Node identifier for Envoy instance.
*
*
* .envoy.api.v2.core.Node node = 1;
* @return Whether the node field is set.
*/
@java.lang.Override
public boolean hasNode() {
return node_ != null;
}
/**
*
* Node identifier for Envoy instance.
*
*
* .envoy.api.v2.core.Node node = 1;
* @return The node.
*/
@java.lang.Override
public io.envoyproxy.envoy.api.v2.core.Node getNode() {
return node_ == null ? io.envoyproxy.envoy.api.v2.core.Node.getDefaultInstance() : node_;
}
/**
*
* Node identifier for Envoy instance.
*
*
* .envoy.api.v2.core.Node node = 1;
*/
@java.lang.Override
public io.envoyproxy.envoy.api.v2.core.NodeOrBuilder getNodeOrBuilder() {
return getNode();
}
public static final int CLUSTER_STATS_FIELD_NUMBER = 2;
private java.util.List clusterStats_;
/**
*
* A list of load stats to report.
*
*
* repeated .envoy.api.v2.endpoint.ClusterStats cluster_stats = 2;
*/
@java.lang.Override
public java.util.List getClusterStatsList() {
return clusterStats_;
}
/**
*
* A list of load stats to report.
*
*
* repeated .envoy.api.v2.endpoint.ClusterStats cluster_stats = 2;
*/
@java.lang.Override
public java.util.List extends io.envoyproxy.envoy.api.v2.endpoint.ClusterStatsOrBuilder>
getClusterStatsOrBuilderList() {
return clusterStats_;
}
/**
*
* A list of load stats to report.
*
*
* repeated .envoy.api.v2.endpoint.ClusterStats cluster_stats = 2;
*/
@java.lang.Override
public int getClusterStatsCount() {
return clusterStats_.size();
}
/**
*
* A list of load stats to report.
*
*
* repeated .envoy.api.v2.endpoint.ClusterStats cluster_stats = 2;
*/
@java.lang.Override
public io.envoyproxy.envoy.api.v2.endpoint.ClusterStats getClusterStats(int index) {
return clusterStats_.get(index);
}
/**
*
* A list of load stats to report.
*
*
* repeated .envoy.api.v2.endpoint.ClusterStats cluster_stats = 2;
*/
@java.lang.Override
public io.envoyproxy.envoy.api.v2.endpoint.ClusterStatsOrBuilder getClusterStatsOrBuilder(
int index) {
return clusterStats_.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 (node_ != null) {
output.writeMessage(1, getNode());
}
for (int i = 0; i < clusterStats_.size(); i++) {
output.writeMessage(2, clusterStats_.get(i));
}
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());
}
for (int i = 0; i < clusterStats_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, clusterStats_.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.load_stats.v2.LoadStatsRequest)) {
return super.equals(obj);
}
io.envoyproxy.envoy.service.load_stats.v2.LoadStatsRequest other = (io.envoyproxy.envoy.service.load_stats.v2.LoadStatsRequest) obj;
if (hasNode() != other.hasNode()) return false;
if (hasNode()) {
if (!getNode()
.equals(other.getNode())) return false;
}
if (!getClusterStatsList()
.equals(other.getClusterStatsList())) 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();
}
if (getClusterStatsCount() > 0) {
hash = (37 * hash) + CLUSTER_STATS_FIELD_NUMBER;
hash = (53 * hash) + getClusterStatsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.service.load_stats.v2.LoadStatsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.load_stats.v2.LoadStatsRequest 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.load_stats.v2.LoadStatsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.load_stats.v2.LoadStatsRequest 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.load_stats.v2.LoadStatsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.load_stats.v2.LoadStatsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.service.load_stats.v2.LoadStatsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.load_stats.v2.LoadStatsRequest 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.load_stats.v2.LoadStatsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.load_stats.v2.LoadStatsRequest 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.load_stats.v2.LoadStatsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.load_stats.v2.LoadStatsRequest 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.load_stats.v2.LoadStatsRequest 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;
}
/**
*
* A load report Envoy sends to the management server.
* [#not-implemented-hide:] Not configuration. TBD how to doc proto APIs.
*
*
* Protobuf type {@code envoy.service.load_stats.v2.LoadStatsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.service.load_stats.v2.LoadStatsRequest)
io.envoyproxy.envoy.service.load_stats.v2.LoadStatsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.service.load_stats.v2.LrsProto.internal_static_envoy_service_load_stats_v2_LoadStatsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.service.load_stats.v2.LrsProto.internal_static_envoy_service_load_stats_v2_LoadStatsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.load_stats.v2.LoadStatsRequest.class, io.envoyproxy.envoy.service.load_stats.v2.LoadStatsRequest.Builder.class);
}
// Construct using io.envoyproxy.envoy.service.load_stats.v2.LoadStatsRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getClusterStatsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (nodeBuilder_ == null) {
node_ = null;
} else {
node_ = null;
nodeBuilder_ = null;
}
if (clusterStatsBuilder_ == null) {
clusterStats_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
clusterStatsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.service.load_stats.v2.LrsProto.internal_static_envoy_service_load_stats_v2_LoadStatsRequest_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.service.load_stats.v2.LoadStatsRequest getDefaultInstanceForType() {
return io.envoyproxy.envoy.service.load_stats.v2.LoadStatsRequest.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.service.load_stats.v2.LoadStatsRequest build() {
io.envoyproxy.envoy.service.load_stats.v2.LoadStatsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.service.load_stats.v2.LoadStatsRequest buildPartial() {
io.envoyproxy.envoy.service.load_stats.v2.LoadStatsRequest result = new io.envoyproxy.envoy.service.load_stats.v2.LoadStatsRequest(this);
int from_bitField0_ = bitField0_;
if (nodeBuilder_ == null) {
result.node_ = node_;
} else {
result.node_ = nodeBuilder_.build();
}
if (clusterStatsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
clusterStats_ = java.util.Collections.unmodifiableList(clusterStats_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.clusterStats_ = clusterStats_;
} else {
result.clusterStats_ = clusterStatsBuilder_.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.load_stats.v2.LoadStatsRequest) {
return mergeFrom((io.envoyproxy.envoy.service.load_stats.v2.LoadStatsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.service.load_stats.v2.LoadStatsRequest other) {
if (other == io.envoyproxy.envoy.service.load_stats.v2.LoadStatsRequest.getDefaultInstance()) return this;
if (other.hasNode()) {
mergeNode(other.getNode());
}
if (clusterStatsBuilder_ == null) {
if (!other.clusterStats_.isEmpty()) {
if (clusterStats_.isEmpty()) {
clusterStats_ = other.clusterStats_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureClusterStatsIsMutable();
clusterStats_.addAll(other.clusterStats_);
}
onChanged();
}
} else {
if (!other.clusterStats_.isEmpty()) {
if (clusterStatsBuilder_.isEmpty()) {
clusterStatsBuilder_.dispose();
clusterStatsBuilder_ = null;
clusterStats_ = other.clusterStats_;
bitField0_ = (bitField0_ & ~0x00000001);
clusterStatsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getClusterStatsFieldBuilder() : null;
} else {
clusterStatsBuilder_.addAllMessages(other.clusterStats_);
}
}
}
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.load_stats.v2.LoadStatsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.service.load_stats.v2.LoadStatsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private io.envoyproxy.envoy.api.v2.core.Node node_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.Node, io.envoyproxy.envoy.api.v2.core.Node.Builder, io.envoyproxy.envoy.api.v2.core.NodeOrBuilder> nodeBuilder_;
/**
*
* Node identifier for Envoy instance.
*
*
* .envoy.api.v2.core.Node node = 1;
* @return Whether the node field is set.
*/
public boolean hasNode() {
return nodeBuilder_ != null || node_ != null;
}
/**
*
* Node identifier for Envoy instance.
*
*
* .envoy.api.v2.core.Node node = 1;
* @return The node.
*/
public io.envoyproxy.envoy.api.v2.core.Node getNode() {
if (nodeBuilder_ == null) {
return node_ == null ? io.envoyproxy.envoy.api.v2.core.Node.getDefaultInstance() : node_;
} else {
return nodeBuilder_.getMessage();
}
}
/**
*
* Node identifier for Envoy instance.
*
*
* .envoy.api.v2.core.Node node = 1;
*/
public Builder setNode(io.envoyproxy.envoy.api.v2.core.Node value) {
if (nodeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
node_ = value;
onChanged();
} else {
nodeBuilder_.setMessage(value);
}
return this;
}
/**
*
* Node identifier for Envoy instance.
*
*
* .envoy.api.v2.core.Node node = 1;
*/
public Builder setNode(
io.envoyproxy.envoy.api.v2.core.Node.Builder builderForValue) {
if (nodeBuilder_ == null) {
node_ = builderForValue.build();
onChanged();
} else {
nodeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Node identifier for Envoy instance.
*
*
* .envoy.api.v2.core.Node node = 1;
*/
public Builder mergeNode(io.envoyproxy.envoy.api.v2.core.Node value) {
if (nodeBuilder_ == null) {
if (node_ != null) {
node_ =
io.envoyproxy.envoy.api.v2.core.Node.newBuilder(node_).mergeFrom(value).buildPartial();
} else {
node_ = value;
}
onChanged();
} else {
nodeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Node identifier for Envoy instance.
*
*
* .envoy.api.v2.core.Node node = 1;
*/
public Builder clearNode() {
if (nodeBuilder_ == null) {
node_ = null;
onChanged();
} else {
node_ = null;
nodeBuilder_ = null;
}
return this;
}
/**
*
* Node identifier for Envoy instance.
*
*
* .envoy.api.v2.core.Node node = 1;
*/
public io.envoyproxy.envoy.api.v2.core.Node.Builder getNodeBuilder() {
onChanged();
return getNodeFieldBuilder().getBuilder();
}
/**
*
* Node identifier for Envoy instance.
*
*
* .envoy.api.v2.core.Node node = 1;
*/
public io.envoyproxy.envoy.api.v2.core.NodeOrBuilder getNodeOrBuilder() {
if (nodeBuilder_ != null) {
return nodeBuilder_.getMessageOrBuilder();
} else {
return node_ == null ?
io.envoyproxy.envoy.api.v2.core.Node.getDefaultInstance() : node_;
}
}
/**
*
* Node identifier for Envoy instance.
*
*
* .envoy.api.v2.core.Node node = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.Node, io.envoyproxy.envoy.api.v2.core.Node.Builder, io.envoyproxy.envoy.api.v2.core.NodeOrBuilder>
getNodeFieldBuilder() {
if (nodeBuilder_ == null) {
nodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.Node, io.envoyproxy.envoy.api.v2.core.Node.Builder, io.envoyproxy.envoy.api.v2.core.NodeOrBuilder>(
getNode(),
getParentForChildren(),
isClean());
node_ = null;
}
return nodeBuilder_;
}
private java.util.List clusterStats_ =
java.util.Collections.emptyList();
private void ensureClusterStatsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
clusterStats_ = new java.util.ArrayList(clusterStats_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.api.v2.endpoint.ClusterStats, io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.Builder, io.envoyproxy.envoy.api.v2.endpoint.ClusterStatsOrBuilder> clusterStatsBuilder_;
/**
*
* A list of load stats to report.
*
*
* repeated .envoy.api.v2.endpoint.ClusterStats cluster_stats = 2;
*/
public java.util.List getClusterStatsList() {
if (clusterStatsBuilder_ == null) {
return java.util.Collections.unmodifiableList(clusterStats_);
} else {
return clusterStatsBuilder_.getMessageList();
}
}
/**
*
* A list of load stats to report.
*
*
* repeated .envoy.api.v2.endpoint.ClusterStats cluster_stats = 2;
*/
public int getClusterStatsCount() {
if (clusterStatsBuilder_ == null) {
return clusterStats_.size();
} else {
return clusterStatsBuilder_.getCount();
}
}
/**
*
* A list of load stats to report.
*
*
* repeated .envoy.api.v2.endpoint.ClusterStats cluster_stats = 2;
*/
public io.envoyproxy.envoy.api.v2.endpoint.ClusterStats getClusterStats(int index) {
if (clusterStatsBuilder_ == null) {
return clusterStats_.get(index);
} else {
return clusterStatsBuilder_.getMessage(index);
}
}
/**
*
* A list of load stats to report.
*
*
* repeated .envoy.api.v2.endpoint.ClusterStats cluster_stats = 2;
*/
public Builder setClusterStats(
int index, io.envoyproxy.envoy.api.v2.endpoint.ClusterStats value) {
if (clusterStatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClusterStatsIsMutable();
clusterStats_.set(index, value);
onChanged();
} else {
clusterStatsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* A list of load stats to report.
*
*
* repeated .envoy.api.v2.endpoint.ClusterStats cluster_stats = 2;
*/
public Builder setClusterStats(
int index, io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.Builder builderForValue) {
if (clusterStatsBuilder_ == null) {
ensureClusterStatsIsMutable();
clusterStats_.set(index, builderForValue.build());
onChanged();
} else {
clusterStatsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A list of load stats to report.
*
*
* repeated .envoy.api.v2.endpoint.ClusterStats cluster_stats = 2;
*/
public Builder addClusterStats(io.envoyproxy.envoy.api.v2.endpoint.ClusterStats value) {
if (clusterStatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClusterStatsIsMutable();
clusterStats_.add(value);
onChanged();
} else {
clusterStatsBuilder_.addMessage(value);
}
return this;
}
/**
*
* A list of load stats to report.
*
*
* repeated .envoy.api.v2.endpoint.ClusterStats cluster_stats = 2;
*/
public Builder addClusterStats(
int index, io.envoyproxy.envoy.api.v2.endpoint.ClusterStats value) {
if (clusterStatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClusterStatsIsMutable();
clusterStats_.add(index, value);
onChanged();
} else {
clusterStatsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* A list of load stats to report.
*
*
* repeated .envoy.api.v2.endpoint.ClusterStats cluster_stats = 2;
*/
public Builder addClusterStats(
io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.Builder builderForValue) {
if (clusterStatsBuilder_ == null) {
ensureClusterStatsIsMutable();
clusterStats_.add(builderForValue.build());
onChanged();
} else {
clusterStatsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* A list of load stats to report.
*
*
* repeated .envoy.api.v2.endpoint.ClusterStats cluster_stats = 2;
*/
public Builder addClusterStats(
int index, io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.Builder builderForValue) {
if (clusterStatsBuilder_ == null) {
ensureClusterStatsIsMutable();
clusterStats_.add(index, builderForValue.build());
onChanged();
} else {
clusterStatsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A list of load stats to report.
*
*
* repeated .envoy.api.v2.endpoint.ClusterStats cluster_stats = 2;
*/
public Builder addAllClusterStats(
java.lang.Iterable extends io.envoyproxy.envoy.api.v2.endpoint.ClusterStats> values) {
if (clusterStatsBuilder_ == null) {
ensureClusterStatsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, clusterStats_);
onChanged();
} else {
clusterStatsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* A list of load stats to report.
*
*
* repeated .envoy.api.v2.endpoint.ClusterStats cluster_stats = 2;
*/
public Builder clearClusterStats() {
if (clusterStatsBuilder_ == null) {
clusterStats_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
clusterStatsBuilder_.clear();
}
return this;
}
/**
*
* A list of load stats to report.
*
*
* repeated .envoy.api.v2.endpoint.ClusterStats cluster_stats = 2;
*/
public Builder removeClusterStats(int index) {
if (clusterStatsBuilder_ == null) {
ensureClusterStatsIsMutable();
clusterStats_.remove(index);
onChanged();
} else {
clusterStatsBuilder_.remove(index);
}
return this;
}
/**
*
* A list of load stats to report.
*
*
* repeated .envoy.api.v2.endpoint.ClusterStats cluster_stats = 2;
*/
public io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.Builder getClusterStatsBuilder(
int index) {
return getClusterStatsFieldBuilder().getBuilder(index);
}
/**
*
* A list of load stats to report.
*
*
* repeated .envoy.api.v2.endpoint.ClusterStats cluster_stats = 2;
*/
public io.envoyproxy.envoy.api.v2.endpoint.ClusterStatsOrBuilder getClusterStatsOrBuilder(
int index) {
if (clusterStatsBuilder_ == null) {
return clusterStats_.get(index); } else {
return clusterStatsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* A list of load stats to report.
*
*
* repeated .envoy.api.v2.endpoint.ClusterStats cluster_stats = 2;
*/
public java.util.List extends io.envoyproxy.envoy.api.v2.endpoint.ClusterStatsOrBuilder>
getClusterStatsOrBuilderList() {
if (clusterStatsBuilder_ != null) {
return clusterStatsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(clusterStats_);
}
}
/**
*
* A list of load stats to report.
*
*
* repeated .envoy.api.v2.endpoint.ClusterStats cluster_stats = 2;
*/
public io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.Builder addClusterStatsBuilder() {
return getClusterStatsFieldBuilder().addBuilder(
io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.getDefaultInstance());
}
/**
*
* A list of load stats to report.
*
*
* repeated .envoy.api.v2.endpoint.ClusterStats cluster_stats = 2;
*/
public io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.Builder addClusterStatsBuilder(
int index) {
return getClusterStatsFieldBuilder().addBuilder(
index, io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.getDefaultInstance());
}
/**
*
* A list of load stats to report.
*
*
* repeated .envoy.api.v2.endpoint.ClusterStats cluster_stats = 2;
*/
public java.util.List
getClusterStatsBuilderList() {
return getClusterStatsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.api.v2.endpoint.ClusterStats, io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.Builder, io.envoyproxy.envoy.api.v2.endpoint.ClusterStatsOrBuilder>
getClusterStatsFieldBuilder() {
if (clusterStatsBuilder_ == null) {
clusterStatsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.api.v2.endpoint.ClusterStats, io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.Builder, io.envoyproxy.envoy.api.v2.endpoint.ClusterStatsOrBuilder>(
clusterStats_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
clusterStats_ = null;
}
return clusterStatsBuilder_;
}
@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.load_stats.v2.LoadStatsRequest)
}
// @@protoc_insertion_point(class_scope:envoy.service.load_stats.v2.LoadStatsRequest)
private static final io.envoyproxy.envoy.service.load_stats.v2.LoadStatsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.load_stats.v2.LoadStatsRequest();
}
public static io.envoyproxy.envoy.service.load_stats.v2.LoadStatsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LoadStatsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LoadStatsRequest(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.load_stats.v2.LoadStatsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}