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.config.endpoint.v3.UpstreamEndpointStats Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/config/endpoint/v3/load_report.proto
package io.envoyproxy.envoy.config.endpoint.v3;
/**
*
* [#next-free-field: 8]
*
*
* Protobuf type {@code envoy.config.endpoint.v3.UpstreamEndpointStats}
*/
public final class UpstreamEndpointStats extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.config.endpoint.v3.UpstreamEndpointStats)
UpstreamEndpointStatsOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpstreamEndpointStats.newBuilder() to construct.
private UpstreamEndpointStats(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UpstreamEndpointStats() {
loadMetricStats_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UpstreamEndpointStats();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UpstreamEndpointStats(
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.config.core.v3.Address.Builder subBuilder = null;
if (address_ != null) {
subBuilder = address_.toBuilder();
}
address_ = input.readMessage(io.envoyproxy.envoy.config.core.v3.Address.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(address_);
address_ = subBuilder.buildPartial();
}
break;
}
case 16: {
totalSuccessfulRequests_ = input.readUInt64();
break;
}
case 24: {
totalRequestsInProgress_ = input.readUInt64();
break;
}
case 32: {
totalErrorRequests_ = input.readUInt64();
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
loadMetricStats_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
loadMetricStats_.add(
input.readMessage(io.envoyproxy.envoy.config.endpoint.v3.EndpointLoadMetricStats.parser(), extensionRegistry));
break;
}
case 50: {
com.google.protobuf.Struct.Builder subBuilder = null;
if (metadata_ != null) {
subBuilder = metadata_.toBuilder();
}
metadata_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = subBuilder.buildPartial();
}
break;
}
case 56: {
totalIssuedRequests_ = input.readUInt64();
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)) {
loadMetricStats_ = java.util.Collections.unmodifiableList(loadMetricStats_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.endpoint.v3.LoadReportProto.internal_static_envoy_config_endpoint_v3_UpstreamEndpointStats_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.endpoint.v3.LoadReportProto.internal_static_envoy_config_endpoint_v3_UpstreamEndpointStats_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats.class, io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats.Builder.class);
}
public static final int ADDRESS_FIELD_NUMBER = 1;
private io.envoyproxy.envoy.config.core.v3.Address address_;
/**
*
* Upstream host address.
*
*
* .envoy.config.core.v3.Address address = 1;
* @return Whether the address field is set.
*/
@java.lang.Override
public boolean hasAddress() {
return address_ != null;
}
/**
*
* Upstream host address.
*
*
* .envoy.config.core.v3.Address address = 1;
* @return The address.
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.Address getAddress() {
return address_ == null ? io.envoyproxy.envoy.config.core.v3.Address.getDefaultInstance() : address_;
}
/**
*
* Upstream host address.
*
*
* .envoy.config.core.v3.Address address = 1;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.AddressOrBuilder getAddressOrBuilder() {
return getAddress();
}
public static final int METADATA_FIELD_NUMBER = 6;
private com.google.protobuf.Struct metadata_;
/**
*
* Opaque and implementation dependent metadata of the
* endpoint. Envoy will pass this directly to the management server.
*
*
* .google.protobuf.Struct metadata = 6;
* @return Whether the metadata field is set.
*/
@java.lang.Override
public boolean hasMetadata() {
return metadata_ != null;
}
/**
*
* Opaque and implementation dependent metadata of the
* endpoint. Envoy will pass this directly to the management server.
*
*
* .google.protobuf.Struct metadata = 6;
* @return The metadata.
*/
@java.lang.Override
public com.google.protobuf.Struct getMetadata() {
return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_;
}
/**
*
* Opaque and implementation dependent metadata of the
* endpoint. Envoy will pass this directly to the management server.
*
*
* .google.protobuf.Struct metadata = 6;
*/
@java.lang.Override
public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() {
return getMetadata();
}
public static final int TOTAL_SUCCESSFUL_REQUESTS_FIELD_NUMBER = 2;
private long totalSuccessfulRequests_;
/**
*
* The total number of requests successfully completed by the endpoints in the
* locality. These include non-5xx responses for HTTP, where errors
* originate at the client and the endpoint responded successfully. For gRPC,
* the grpc-status values are those not covered by total_error_requests below.
*
*
* uint64 total_successful_requests = 2;
* @return The totalSuccessfulRequests.
*/
@java.lang.Override
public long getTotalSuccessfulRequests() {
return totalSuccessfulRequests_;
}
public static final int TOTAL_REQUESTS_IN_PROGRESS_FIELD_NUMBER = 3;
private long totalRequestsInProgress_;
/**
*
* The total number of unfinished requests for this endpoint.
*
*
* uint64 total_requests_in_progress = 3;
* @return The totalRequestsInProgress.
*/
@java.lang.Override
public long getTotalRequestsInProgress() {
return totalRequestsInProgress_;
}
public static final int TOTAL_ERROR_REQUESTS_FIELD_NUMBER = 4;
private long totalErrorRequests_;
/**
*
* The total number of requests that failed due to errors at the endpoint.
* For HTTP these are responses with 5xx status codes and for gRPC the
* grpc-status values:
* - DeadlineExceeded
* - Unimplemented
* - Internal
* - Unavailable
* - Unknown
* - DataLoss
*
*
* uint64 total_error_requests = 4;
* @return The totalErrorRequests.
*/
@java.lang.Override
public long getTotalErrorRequests() {
return totalErrorRequests_;
}
public static final int TOTAL_ISSUED_REQUESTS_FIELD_NUMBER = 7;
private long totalIssuedRequests_;
/**
*
* The total number of requests that were issued to this endpoint
* since the last report. A single TCP connection, HTTP or gRPC
* request or stream is counted as one request.
*
*
* uint64 total_issued_requests = 7;
* @return The totalIssuedRequests.
*/
@java.lang.Override
public long getTotalIssuedRequests() {
return totalIssuedRequests_;
}
public static final int LOAD_METRIC_STATS_FIELD_NUMBER = 5;
private java.util.List loadMetricStats_;
/**
*
* Stats for multi-dimensional load balancing.
*
*
* repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
*/
@java.lang.Override
public java.util.List getLoadMetricStatsList() {
return loadMetricStats_;
}
/**
*
* Stats for multi-dimensional load balancing.
*
*
* repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
*/
@java.lang.Override
public java.util.List extends io.envoyproxy.envoy.config.endpoint.v3.EndpointLoadMetricStatsOrBuilder>
getLoadMetricStatsOrBuilderList() {
return loadMetricStats_;
}
/**
*
* Stats for multi-dimensional load balancing.
*
*
* repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
*/
@java.lang.Override
public int getLoadMetricStatsCount() {
return loadMetricStats_.size();
}
/**
*
* Stats for multi-dimensional load balancing.
*
*
* repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.endpoint.v3.EndpointLoadMetricStats getLoadMetricStats(int index) {
return loadMetricStats_.get(index);
}
/**
*
* Stats for multi-dimensional load balancing.
*
*
* repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.endpoint.v3.EndpointLoadMetricStatsOrBuilder getLoadMetricStatsOrBuilder(
int index) {
return loadMetricStats_.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 (address_ != null) {
output.writeMessage(1, getAddress());
}
if (totalSuccessfulRequests_ != 0L) {
output.writeUInt64(2, totalSuccessfulRequests_);
}
if (totalRequestsInProgress_ != 0L) {
output.writeUInt64(3, totalRequestsInProgress_);
}
if (totalErrorRequests_ != 0L) {
output.writeUInt64(4, totalErrorRequests_);
}
for (int i = 0; i < loadMetricStats_.size(); i++) {
output.writeMessage(5, loadMetricStats_.get(i));
}
if (metadata_ != null) {
output.writeMessage(6, getMetadata());
}
if (totalIssuedRequests_ != 0L) {
output.writeUInt64(7, totalIssuedRequests_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (address_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getAddress());
}
if (totalSuccessfulRequests_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, totalSuccessfulRequests_);
}
if (totalRequestsInProgress_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, totalRequestsInProgress_);
}
if (totalErrorRequests_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(4, totalErrorRequests_);
}
for (int i = 0; i < loadMetricStats_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, loadMetricStats_.get(i));
}
if (metadata_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getMetadata());
}
if (totalIssuedRequests_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(7, totalIssuedRequests_);
}
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.config.endpoint.v3.UpstreamEndpointStats)) {
return super.equals(obj);
}
io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats other = (io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats) obj;
if (hasAddress() != other.hasAddress()) return false;
if (hasAddress()) {
if (!getAddress()
.equals(other.getAddress())) return false;
}
if (hasMetadata() != other.hasMetadata()) return false;
if (hasMetadata()) {
if (!getMetadata()
.equals(other.getMetadata())) return false;
}
if (getTotalSuccessfulRequests()
!= other.getTotalSuccessfulRequests()) return false;
if (getTotalRequestsInProgress()
!= other.getTotalRequestsInProgress()) return false;
if (getTotalErrorRequests()
!= other.getTotalErrorRequests()) return false;
if (getTotalIssuedRequests()
!= other.getTotalIssuedRequests()) return false;
if (!getLoadMetricStatsList()
.equals(other.getLoadMetricStatsList())) 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 (hasAddress()) {
hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getAddress().hashCode();
}
if (hasMetadata()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
}
hash = (37 * hash) + TOTAL_SUCCESSFUL_REQUESTS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTotalSuccessfulRequests());
hash = (37 * hash) + TOTAL_REQUESTS_IN_PROGRESS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTotalRequestsInProgress());
hash = (37 * hash) + TOTAL_ERROR_REQUESTS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTotalErrorRequests());
hash = (37 * hash) + TOTAL_ISSUED_REQUESTS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTotalIssuedRequests());
if (getLoadMetricStatsCount() > 0) {
hash = (37 * hash) + LOAD_METRIC_STATS_FIELD_NUMBER;
hash = (53 * hash) + getLoadMetricStatsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats 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.config.endpoint.v3.UpstreamEndpointStats parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats 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.config.endpoint.v3.UpstreamEndpointStats parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats 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.config.endpoint.v3.UpstreamEndpointStats parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats 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.config.endpoint.v3.UpstreamEndpointStats parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats 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.config.endpoint.v3.UpstreamEndpointStats 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;
}
/**
*
* [#next-free-field: 8]
*
*
* Protobuf type {@code envoy.config.endpoint.v3.UpstreamEndpointStats}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.config.endpoint.v3.UpstreamEndpointStats)
io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStatsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.endpoint.v3.LoadReportProto.internal_static_envoy_config_endpoint_v3_UpstreamEndpointStats_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.endpoint.v3.LoadReportProto.internal_static_envoy_config_endpoint_v3_UpstreamEndpointStats_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats.class, io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats.Builder.class);
}
// Construct using io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getLoadMetricStatsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (addressBuilder_ == null) {
address_ = null;
} else {
address_ = null;
addressBuilder_ = null;
}
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadata_ = null;
metadataBuilder_ = null;
}
totalSuccessfulRequests_ = 0L;
totalRequestsInProgress_ = 0L;
totalErrorRequests_ = 0L;
totalIssuedRequests_ = 0L;
if (loadMetricStatsBuilder_ == null) {
loadMetricStats_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
loadMetricStatsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.config.endpoint.v3.LoadReportProto.internal_static_envoy_config_endpoint_v3_UpstreamEndpointStats_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats getDefaultInstanceForType() {
return io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats build() {
io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats buildPartial() {
io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats result = new io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats(this);
int from_bitField0_ = bitField0_;
if (addressBuilder_ == null) {
result.address_ = address_;
} else {
result.address_ = addressBuilder_.build();
}
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.build();
}
result.totalSuccessfulRequests_ = totalSuccessfulRequests_;
result.totalRequestsInProgress_ = totalRequestsInProgress_;
result.totalErrorRequests_ = totalErrorRequests_;
result.totalIssuedRequests_ = totalIssuedRequests_;
if (loadMetricStatsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
loadMetricStats_ = java.util.Collections.unmodifiableList(loadMetricStats_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.loadMetricStats_ = loadMetricStats_;
} else {
result.loadMetricStats_ = loadMetricStatsBuilder_.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.config.endpoint.v3.UpstreamEndpointStats) {
return mergeFrom((io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats other) {
if (other == io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats.getDefaultInstance()) return this;
if (other.hasAddress()) {
mergeAddress(other.getAddress());
}
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
if (other.getTotalSuccessfulRequests() != 0L) {
setTotalSuccessfulRequests(other.getTotalSuccessfulRequests());
}
if (other.getTotalRequestsInProgress() != 0L) {
setTotalRequestsInProgress(other.getTotalRequestsInProgress());
}
if (other.getTotalErrorRequests() != 0L) {
setTotalErrorRequests(other.getTotalErrorRequests());
}
if (other.getTotalIssuedRequests() != 0L) {
setTotalIssuedRequests(other.getTotalIssuedRequests());
}
if (loadMetricStatsBuilder_ == null) {
if (!other.loadMetricStats_.isEmpty()) {
if (loadMetricStats_.isEmpty()) {
loadMetricStats_ = other.loadMetricStats_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureLoadMetricStatsIsMutable();
loadMetricStats_.addAll(other.loadMetricStats_);
}
onChanged();
}
} else {
if (!other.loadMetricStats_.isEmpty()) {
if (loadMetricStatsBuilder_.isEmpty()) {
loadMetricStatsBuilder_.dispose();
loadMetricStatsBuilder_ = null;
loadMetricStats_ = other.loadMetricStats_;
bitField0_ = (bitField0_ & ~0x00000001);
loadMetricStatsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getLoadMetricStatsFieldBuilder() : null;
} else {
loadMetricStatsBuilder_.addAllMessages(other.loadMetricStats_);
}
}
}
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.config.endpoint.v3.UpstreamEndpointStats parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private io.envoyproxy.envoy.config.core.v3.Address address_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.Address, io.envoyproxy.envoy.config.core.v3.Address.Builder, io.envoyproxy.envoy.config.core.v3.AddressOrBuilder> addressBuilder_;
/**
*
* Upstream host address.
*
*
* .envoy.config.core.v3.Address address = 1;
* @return Whether the address field is set.
*/
public boolean hasAddress() {
return addressBuilder_ != null || address_ != null;
}
/**
*
* Upstream host address.
*
*
* .envoy.config.core.v3.Address address = 1;
* @return The address.
*/
public io.envoyproxy.envoy.config.core.v3.Address getAddress() {
if (addressBuilder_ == null) {
return address_ == null ? io.envoyproxy.envoy.config.core.v3.Address.getDefaultInstance() : address_;
} else {
return addressBuilder_.getMessage();
}
}
/**
*
* Upstream host address.
*
*
* .envoy.config.core.v3.Address address = 1;
*/
public Builder setAddress(io.envoyproxy.envoy.config.core.v3.Address value) {
if (addressBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
address_ = value;
onChanged();
} else {
addressBuilder_.setMessage(value);
}
return this;
}
/**
*
* Upstream host address.
*
*
* .envoy.config.core.v3.Address address = 1;
*/
public Builder setAddress(
io.envoyproxy.envoy.config.core.v3.Address.Builder builderForValue) {
if (addressBuilder_ == null) {
address_ = builderForValue.build();
onChanged();
} else {
addressBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Upstream host address.
*
*
* .envoy.config.core.v3.Address address = 1;
*/
public Builder mergeAddress(io.envoyproxy.envoy.config.core.v3.Address value) {
if (addressBuilder_ == null) {
if (address_ != null) {
address_ =
io.envoyproxy.envoy.config.core.v3.Address.newBuilder(address_).mergeFrom(value).buildPartial();
} else {
address_ = value;
}
onChanged();
} else {
addressBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Upstream host address.
*
*
* .envoy.config.core.v3.Address address = 1;
*/
public Builder clearAddress() {
if (addressBuilder_ == null) {
address_ = null;
onChanged();
} else {
address_ = null;
addressBuilder_ = null;
}
return this;
}
/**
*
* Upstream host address.
*
*
* .envoy.config.core.v3.Address address = 1;
*/
public io.envoyproxy.envoy.config.core.v3.Address.Builder getAddressBuilder() {
onChanged();
return getAddressFieldBuilder().getBuilder();
}
/**
*
* Upstream host address.
*
*
* .envoy.config.core.v3.Address address = 1;
*/
public io.envoyproxy.envoy.config.core.v3.AddressOrBuilder getAddressOrBuilder() {
if (addressBuilder_ != null) {
return addressBuilder_.getMessageOrBuilder();
} else {
return address_ == null ?
io.envoyproxy.envoy.config.core.v3.Address.getDefaultInstance() : address_;
}
}
/**
*
* Upstream host address.
*
*
* .envoy.config.core.v3.Address address = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.Address, io.envoyproxy.envoy.config.core.v3.Address.Builder, io.envoyproxy.envoy.config.core.v3.AddressOrBuilder>
getAddressFieldBuilder() {
if (addressBuilder_ == null) {
addressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.Address, io.envoyproxy.envoy.config.core.v3.Address.Builder, io.envoyproxy.envoy.config.core.v3.AddressOrBuilder>(
getAddress(),
getParentForChildren(),
isClean());
address_ = null;
}
return addressBuilder_;
}
private com.google.protobuf.Struct metadata_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> metadataBuilder_;
/**
*
* Opaque and implementation dependent metadata of the
* endpoint. Envoy will pass this directly to the management server.
*
*
* .google.protobuf.Struct metadata = 6;
* @return Whether the metadata field is set.
*/
public boolean hasMetadata() {
return metadataBuilder_ != null || metadata_ != null;
}
/**
*
* Opaque and implementation dependent metadata of the
* endpoint. Envoy will pass this directly to the management server.
*
*
* .google.protobuf.Struct metadata = 6;
* @return The metadata.
*/
public com.google.protobuf.Struct getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
*
* Opaque and implementation dependent metadata of the
* endpoint. Envoy will pass this directly to the management server.
*
*
* .google.protobuf.Struct metadata = 6;
*/
public Builder setMetadata(com.google.protobuf.Struct value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
return this;
}
/**
*
* Opaque and implementation dependent metadata of the
* endpoint. Envoy will pass this directly to the management server.
*
*
* .google.protobuf.Struct metadata = 6;
*/
public Builder setMetadata(
com.google.protobuf.Struct.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Opaque and implementation dependent metadata of the
* endpoint. Envoy will pass this directly to the management server.
*
*
* .google.protobuf.Struct metadata = 6;
*/
public Builder mergeMetadata(com.google.protobuf.Struct value) {
if (metadataBuilder_ == null) {
if (metadata_ != null) {
metadata_ =
com.google.protobuf.Struct.newBuilder(metadata_).mergeFrom(value).buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Opaque and implementation dependent metadata of the
* endpoint. Envoy will pass this directly to the management server.
*
*
* .google.protobuf.Struct metadata = 6;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = null;
onChanged();
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
/**
*
* Opaque and implementation dependent metadata of the
* endpoint. Envoy will pass this directly to the management server.
*
*
* .google.protobuf.Struct metadata = 6;
*/
public com.google.protobuf.Struct.Builder getMetadataBuilder() {
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
*
* Opaque and implementation dependent metadata of the
* endpoint. Envoy will pass this directly to the management server.
*
*
* .google.protobuf.Struct metadata = 6;
*/
public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null ?
com.google.protobuf.Struct.getDefaultInstance() : metadata_;
}
}
/**
*
* Opaque and implementation dependent metadata of the
* endpoint. Envoy will pass this directly to the management server.
*
*
* .google.protobuf.Struct metadata = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
getMetadata(),
getParentForChildren(),
isClean());
metadata_ = null;
}
return metadataBuilder_;
}
private long totalSuccessfulRequests_ ;
/**
*
* The total number of requests successfully completed by the endpoints in the
* locality. These include non-5xx responses for HTTP, where errors
* originate at the client and the endpoint responded successfully. For gRPC,
* the grpc-status values are those not covered by total_error_requests below.
*
*
* uint64 total_successful_requests = 2;
* @return The totalSuccessfulRequests.
*/
@java.lang.Override
public long getTotalSuccessfulRequests() {
return totalSuccessfulRequests_;
}
/**
*
* The total number of requests successfully completed by the endpoints in the
* locality. These include non-5xx responses for HTTP, where errors
* originate at the client and the endpoint responded successfully. For gRPC,
* the grpc-status values are those not covered by total_error_requests below.
*
*
* uint64 total_successful_requests = 2;
* @param value The totalSuccessfulRequests to set.
* @return This builder for chaining.
*/
public Builder setTotalSuccessfulRequests(long value) {
totalSuccessfulRequests_ = value;
onChanged();
return this;
}
/**
*
* The total number of requests successfully completed by the endpoints in the
* locality. These include non-5xx responses for HTTP, where errors
* originate at the client and the endpoint responded successfully. For gRPC,
* the grpc-status values are those not covered by total_error_requests below.
*
*
* uint64 total_successful_requests = 2;
* @return This builder for chaining.
*/
public Builder clearTotalSuccessfulRequests() {
totalSuccessfulRequests_ = 0L;
onChanged();
return this;
}
private long totalRequestsInProgress_ ;
/**
*
* The total number of unfinished requests for this endpoint.
*
*
* uint64 total_requests_in_progress = 3;
* @return The totalRequestsInProgress.
*/
@java.lang.Override
public long getTotalRequestsInProgress() {
return totalRequestsInProgress_;
}
/**
*
* The total number of unfinished requests for this endpoint.
*
*
* uint64 total_requests_in_progress = 3;
* @param value The totalRequestsInProgress to set.
* @return This builder for chaining.
*/
public Builder setTotalRequestsInProgress(long value) {
totalRequestsInProgress_ = value;
onChanged();
return this;
}
/**
*
* The total number of unfinished requests for this endpoint.
*
*
* uint64 total_requests_in_progress = 3;
* @return This builder for chaining.
*/
public Builder clearTotalRequestsInProgress() {
totalRequestsInProgress_ = 0L;
onChanged();
return this;
}
private long totalErrorRequests_ ;
/**
*
* The total number of requests that failed due to errors at the endpoint.
* For HTTP these are responses with 5xx status codes and for gRPC the
* grpc-status values:
* - DeadlineExceeded
* - Unimplemented
* - Internal
* - Unavailable
* - Unknown
* - DataLoss
*
*
* uint64 total_error_requests = 4;
* @return The totalErrorRequests.
*/
@java.lang.Override
public long getTotalErrorRequests() {
return totalErrorRequests_;
}
/**
*
* The total number of requests that failed due to errors at the endpoint.
* For HTTP these are responses with 5xx status codes and for gRPC the
* grpc-status values:
* - DeadlineExceeded
* - Unimplemented
* - Internal
* - Unavailable
* - Unknown
* - DataLoss
*
*
* uint64 total_error_requests = 4;
* @param value The totalErrorRequests to set.
* @return This builder for chaining.
*/
public Builder setTotalErrorRequests(long value) {
totalErrorRequests_ = value;
onChanged();
return this;
}
/**
*
* The total number of requests that failed due to errors at the endpoint.
* For HTTP these are responses with 5xx status codes and for gRPC the
* grpc-status values:
* - DeadlineExceeded
* - Unimplemented
* - Internal
* - Unavailable
* - Unknown
* - DataLoss
*
*
* uint64 total_error_requests = 4;
* @return This builder for chaining.
*/
public Builder clearTotalErrorRequests() {
totalErrorRequests_ = 0L;
onChanged();
return this;
}
private long totalIssuedRequests_ ;
/**
*
* The total number of requests that were issued to this endpoint
* since the last report. A single TCP connection, HTTP or gRPC
* request or stream is counted as one request.
*
*
* uint64 total_issued_requests = 7;
* @return The totalIssuedRequests.
*/
@java.lang.Override
public long getTotalIssuedRequests() {
return totalIssuedRequests_;
}
/**
*
* The total number of requests that were issued to this endpoint
* since the last report. A single TCP connection, HTTP or gRPC
* request or stream is counted as one request.
*
*
* uint64 total_issued_requests = 7;
* @param value The totalIssuedRequests to set.
* @return This builder for chaining.
*/
public Builder setTotalIssuedRequests(long value) {
totalIssuedRequests_ = value;
onChanged();
return this;
}
/**
*
* The total number of requests that were issued to this endpoint
* since the last report. A single TCP connection, HTTP or gRPC
* request or stream is counted as one request.
*
*
* uint64 total_issued_requests = 7;
* @return This builder for chaining.
*/
public Builder clearTotalIssuedRequests() {
totalIssuedRequests_ = 0L;
onChanged();
return this;
}
private java.util.List loadMetricStats_ =
java.util.Collections.emptyList();
private void ensureLoadMetricStatsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
loadMetricStats_ = new java.util.ArrayList(loadMetricStats_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.config.endpoint.v3.EndpointLoadMetricStats, io.envoyproxy.envoy.config.endpoint.v3.EndpointLoadMetricStats.Builder, io.envoyproxy.envoy.config.endpoint.v3.EndpointLoadMetricStatsOrBuilder> loadMetricStatsBuilder_;
/**
*
* Stats for multi-dimensional load balancing.
*
*
* repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
*/
public java.util.List getLoadMetricStatsList() {
if (loadMetricStatsBuilder_ == null) {
return java.util.Collections.unmodifiableList(loadMetricStats_);
} else {
return loadMetricStatsBuilder_.getMessageList();
}
}
/**
*
* Stats for multi-dimensional load balancing.
*
*
* repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
*/
public int getLoadMetricStatsCount() {
if (loadMetricStatsBuilder_ == null) {
return loadMetricStats_.size();
} else {
return loadMetricStatsBuilder_.getCount();
}
}
/**
*
* Stats for multi-dimensional load balancing.
*
*
* repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
*/
public io.envoyproxy.envoy.config.endpoint.v3.EndpointLoadMetricStats getLoadMetricStats(int index) {
if (loadMetricStatsBuilder_ == null) {
return loadMetricStats_.get(index);
} else {
return loadMetricStatsBuilder_.getMessage(index);
}
}
/**
*
* Stats for multi-dimensional load balancing.
*
*
* repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
*/
public Builder setLoadMetricStats(
int index, io.envoyproxy.envoy.config.endpoint.v3.EndpointLoadMetricStats value) {
if (loadMetricStatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLoadMetricStatsIsMutable();
loadMetricStats_.set(index, value);
onChanged();
} else {
loadMetricStatsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Stats for multi-dimensional load balancing.
*
*
* repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
*/
public Builder setLoadMetricStats(
int index, io.envoyproxy.envoy.config.endpoint.v3.EndpointLoadMetricStats.Builder builderForValue) {
if (loadMetricStatsBuilder_ == null) {
ensureLoadMetricStatsIsMutable();
loadMetricStats_.set(index, builderForValue.build());
onChanged();
} else {
loadMetricStatsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Stats for multi-dimensional load balancing.
*
*
* repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
*/
public Builder addLoadMetricStats(io.envoyproxy.envoy.config.endpoint.v3.EndpointLoadMetricStats value) {
if (loadMetricStatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLoadMetricStatsIsMutable();
loadMetricStats_.add(value);
onChanged();
} else {
loadMetricStatsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Stats for multi-dimensional load balancing.
*
*
* repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
*/
public Builder addLoadMetricStats(
int index, io.envoyproxy.envoy.config.endpoint.v3.EndpointLoadMetricStats value) {
if (loadMetricStatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLoadMetricStatsIsMutable();
loadMetricStats_.add(index, value);
onChanged();
} else {
loadMetricStatsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Stats for multi-dimensional load balancing.
*
*
* repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
*/
public Builder addLoadMetricStats(
io.envoyproxy.envoy.config.endpoint.v3.EndpointLoadMetricStats.Builder builderForValue) {
if (loadMetricStatsBuilder_ == null) {
ensureLoadMetricStatsIsMutable();
loadMetricStats_.add(builderForValue.build());
onChanged();
} else {
loadMetricStatsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Stats for multi-dimensional load balancing.
*
*
* repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
*/
public Builder addLoadMetricStats(
int index, io.envoyproxy.envoy.config.endpoint.v3.EndpointLoadMetricStats.Builder builderForValue) {
if (loadMetricStatsBuilder_ == null) {
ensureLoadMetricStatsIsMutable();
loadMetricStats_.add(index, builderForValue.build());
onChanged();
} else {
loadMetricStatsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Stats for multi-dimensional load balancing.
*
*
* repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
*/
public Builder addAllLoadMetricStats(
java.lang.Iterable extends io.envoyproxy.envoy.config.endpoint.v3.EndpointLoadMetricStats> values) {
if (loadMetricStatsBuilder_ == null) {
ensureLoadMetricStatsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, loadMetricStats_);
onChanged();
} else {
loadMetricStatsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Stats for multi-dimensional load balancing.
*
*
* repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
*/
public Builder clearLoadMetricStats() {
if (loadMetricStatsBuilder_ == null) {
loadMetricStats_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
loadMetricStatsBuilder_.clear();
}
return this;
}
/**
*
* Stats for multi-dimensional load balancing.
*
*
* repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
*/
public Builder removeLoadMetricStats(int index) {
if (loadMetricStatsBuilder_ == null) {
ensureLoadMetricStatsIsMutable();
loadMetricStats_.remove(index);
onChanged();
} else {
loadMetricStatsBuilder_.remove(index);
}
return this;
}
/**
*
* Stats for multi-dimensional load balancing.
*
*
* repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
*/
public io.envoyproxy.envoy.config.endpoint.v3.EndpointLoadMetricStats.Builder getLoadMetricStatsBuilder(
int index) {
return getLoadMetricStatsFieldBuilder().getBuilder(index);
}
/**
*
* Stats for multi-dimensional load balancing.
*
*
* repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
*/
public io.envoyproxy.envoy.config.endpoint.v3.EndpointLoadMetricStatsOrBuilder getLoadMetricStatsOrBuilder(
int index) {
if (loadMetricStatsBuilder_ == null) {
return loadMetricStats_.get(index); } else {
return loadMetricStatsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Stats for multi-dimensional load balancing.
*
*
* repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
*/
public java.util.List extends io.envoyproxy.envoy.config.endpoint.v3.EndpointLoadMetricStatsOrBuilder>
getLoadMetricStatsOrBuilderList() {
if (loadMetricStatsBuilder_ != null) {
return loadMetricStatsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(loadMetricStats_);
}
}
/**
*
* Stats for multi-dimensional load balancing.
*
*
* repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
*/
public io.envoyproxy.envoy.config.endpoint.v3.EndpointLoadMetricStats.Builder addLoadMetricStatsBuilder() {
return getLoadMetricStatsFieldBuilder().addBuilder(
io.envoyproxy.envoy.config.endpoint.v3.EndpointLoadMetricStats.getDefaultInstance());
}
/**
*
* Stats for multi-dimensional load balancing.
*
*
* repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
*/
public io.envoyproxy.envoy.config.endpoint.v3.EndpointLoadMetricStats.Builder addLoadMetricStatsBuilder(
int index) {
return getLoadMetricStatsFieldBuilder().addBuilder(
index, io.envoyproxy.envoy.config.endpoint.v3.EndpointLoadMetricStats.getDefaultInstance());
}
/**
*
* Stats for multi-dimensional load balancing.
*
*
* repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
*/
public java.util.List
getLoadMetricStatsBuilderList() {
return getLoadMetricStatsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.config.endpoint.v3.EndpointLoadMetricStats, io.envoyproxy.envoy.config.endpoint.v3.EndpointLoadMetricStats.Builder, io.envoyproxy.envoy.config.endpoint.v3.EndpointLoadMetricStatsOrBuilder>
getLoadMetricStatsFieldBuilder() {
if (loadMetricStatsBuilder_ == null) {
loadMetricStatsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.config.endpoint.v3.EndpointLoadMetricStats, io.envoyproxy.envoy.config.endpoint.v3.EndpointLoadMetricStats.Builder, io.envoyproxy.envoy.config.endpoint.v3.EndpointLoadMetricStatsOrBuilder>(
loadMetricStats_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
loadMetricStats_ = null;
}
return loadMetricStatsBuilder_;
}
@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.config.endpoint.v3.UpstreamEndpointStats)
}
// @@protoc_insertion_point(class_scope:envoy.config.endpoint.v3.UpstreamEndpointStats)
private static final io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats();
}
public static io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UpstreamEndpointStats parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UpstreamEndpointStats(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.config.endpoint.v3.UpstreamEndpointStats getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}