Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/config/endpoint/v3/load_report.proto
package io.envoyproxy.envoy.config.endpoint.v3;
/**
*
* These are stats Envoy reports to the management server at a frequency defined by
* :ref:`LoadStatsResponse.load_reporting_interval<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.load_reporting_interval>`.
* Stats per upstream region/zone and optionally per subzone.
* [#next-free-field: 9]
*
*
* Protobuf type {@code envoy.config.endpoint.v3.UpstreamLocalityStats}
*/
public final class UpstreamLocalityStats extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.config.endpoint.v3.UpstreamLocalityStats)
UpstreamLocalityStatsOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpstreamLocalityStats.newBuilder() to construct.
private UpstreamLocalityStats(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UpstreamLocalityStats() {
loadMetricStats_ = java.util.Collections.emptyList();
upstreamEndpointStats_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UpstreamLocalityStats();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UpstreamLocalityStats(
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.Locality.Builder subBuilder = null;
if (locality_ != null) {
subBuilder = locality_.toBuilder();
}
locality_ = input.readMessage(io.envoyproxy.envoy.config.core.v3.Locality.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(locality_);
locality_ = 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 48: {
priority_ = input.readUInt32();
break;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
upstreamEndpointStats_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
upstreamEndpointStats_.add(
input.readMessage(io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats.parser(), extensionRegistry));
break;
}
case 64: {
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_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
upstreamEndpointStats_ = java.util.Collections.unmodifiableList(upstreamEndpointStats_);
}
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_UpstreamLocalityStats_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_UpstreamLocalityStats_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats.class, io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats.Builder.class);
}
public static final int LOCALITY_FIELD_NUMBER = 1;
private io.envoyproxy.envoy.config.core.v3.Locality locality_;
/**
*
* Name of zone, region and optionally endpoint group these metrics were
* collected from. Zone and region names could be empty if unknown.
*
*
* .envoy.config.core.v3.Locality locality = 1;
* @return Whether the locality field is set.
*/
@java.lang.Override
public boolean hasLocality() {
return locality_ != null;
}
/**
*
* Name of zone, region and optionally endpoint group these metrics were
* collected from. Zone and region names could be empty if unknown.
*
* Name of zone, region and optionally endpoint group these metrics were
* collected from. Zone and region names could be empty if unknown.
*
*
* .envoy.config.core.v3.Locality locality = 1;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.LocalityOrBuilder getLocalityOrBuilder() {
return getLocality();
}
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.
*
*
* 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
*
*
* 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,
* aggregated over all endpoints in the locality.
*
*
* 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 = 8;
private long totalIssuedRequests_;
/**
*
* The total number of requests that were issued by this Envoy since
* the last report. This information is aggregated over all the
* upstream endpoints in the locality.
*
*
* uint64 total_issued_requests = 8;
* @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_;
/**
*
*
* 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);
}
public static final int UPSTREAM_ENDPOINT_STATS_FIELD_NUMBER = 7;
private java.util.List upstreamEndpointStats_;
/**
*
* Endpoint granularity stats information for this locality. This information
* is populated if the Server requests it by setting
* :ref:`LoadStatsResponse.report_endpoint_granularity<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.report_endpoint_granularity>`.
*
* Endpoint granularity stats information for this locality. This information
* is populated if the Server requests it by setting
* :ref:`LoadStatsResponse.report_endpoint_granularity<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.report_endpoint_granularity>`.
*
* Endpoint granularity stats information for this locality. This information
* is populated if the Server requests it by setting
* :ref:`LoadStatsResponse.report_endpoint_granularity<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.report_endpoint_granularity>`.
*
*
* repeated .envoy.config.endpoint.v3.UpstreamEndpointStats upstream_endpoint_stats = 7;
*/
@java.lang.Override
public int getUpstreamEndpointStatsCount() {
return upstreamEndpointStats_.size();
}
/**
*
* Endpoint granularity stats information for this locality. This information
* is populated if the Server requests it by setting
* :ref:`LoadStatsResponse.report_endpoint_granularity<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.report_endpoint_granularity>`.
*
* Endpoint granularity stats information for this locality. This information
* is populated if the Server requests it by setting
* :ref:`LoadStatsResponse.report_endpoint_granularity<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.report_endpoint_granularity>`.
*
*
* repeated .envoy.config.endpoint.v3.UpstreamEndpointStats upstream_endpoint_stats = 7;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStatsOrBuilder getUpstreamEndpointStatsOrBuilder(
int index) {
return upstreamEndpointStats_.get(index);
}
public static final int PRIORITY_FIELD_NUMBER = 6;
private int priority_;
/**
*
* [#not-implemented-hide:] The priority of the endpoint group these metrics
* were collected from.
*
*
* uint32 priority = 6;
* @return The priority.
*/
@java.lang.Override
public int getPriority() {
return priority_;
}
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 (locality_ != null) {
output.writeMessage(1, getLocality());
}
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 (priority_ != 0) {
output.writeUInt32(6, priority_);
}
for (int i = 0; i < upstreamEndpointStats_.size(); i++) {
output.writeMessage(7, upstreamEndpointStats_.get(i));
}
if (totalIssuedRequests_ != 0L) {
output.writeUInt64(8, totalIssuedRequests_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (locality_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getLocality());
}
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 (priority_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(6, priority_);
}
for (int i = 0; i < upstreamEndpointStats_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, upstreamEndpointStats_.get(i));
}
if (totalIssuedRequests_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(8, 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.UpstreamLocalityStats)) {
return super.equals(obj);
}
io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats other = (io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats) obj;
if (hasLocality() != other.hasLocality()) return false;
if (hasLocality()) {
if (!getLocality()
.equals(other.getLocality())) 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 (!getUpstreamEndpointStatsList()
.equals(other.getUpstreamEndpointStatsList())) return false;
if (getPriority()
!= other.getPriority()) 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 (hasLocality()) {
hash = (37 * hash) + LOCALITY_FIELD_NUMBER;
hash = (53 * hash) + getLocality().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();
}
if (getUpstreamEndpointStatsCount() > 0) {
hash = (37 * hash) + UPSTREAM_ENDPOINT_STATS_FIELD_NUMBER;
hash = (53 * hash) + getUpstreamEndpointStatsList().hashCode();
}
hash = (37 * hash) + PRIORITY_FIELD_NUMBER;
hash = (53 * hash) + getPriority();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats 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.UpstreamLocalityStats parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats 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.UpstreamLocalityStats parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats 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.UpstreamLocalityStats 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.UpstreamLocalityStats 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.UpstreamLocalityStats 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.UpstreamLocalityStats 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.UpstreamLocalityStats 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.UpstreamLocalityStats 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.UpstreamLocalityStats 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;
}
/**
*
* These are stats Envoy reports to the management server at a frequency defined by
* :ref:`LoadStatsResponse.load_reporting_interval<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.load_reporting_interval>`.
* Stats per upstream region/zone and optionally per subzone.
* [#next-free-field: 9]
*
* The total number of requests successfully completed by the endpoints in the
* locality.
*
*
* 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.
*
*
* 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.
*
*
* 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
*
*
* uint64 total_requests_in_progress = 3;
* @return The totalRequestsInProgress.
*/
@java.lang.Override
public long getTotalRequestsInProgress() {
return totalRequestsInProgress_;
}
/**
*
* The total number of unfinished requests
*
*
* 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
*
*
* 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,
* aggregated over all endpoints in the locality.
*
*
* 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,
* aggregated over all endpoints in the locality.
*
*
* 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,
* aggregated over all endpoints in the locality.
*
*
* 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 by this Envoy since
* the last report. This information is aggregated over all the
* upstream endpoints in the locality.
*
*
* uint64 total_issued_requests = 8;
* @return The totalIssuedRequests.
*/
@java.lang.Override
public long getTotalIssuedRequests() {
return totalIssuedRequests_;
}
/**
*
* The total number of requests that were issued by this Envoy since
* the last report. This information is aggregated over all the
* upstream endpoints in the locality.
*
*
* uint64 total_issued_requests = 8;
* @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 by this Envoy since
* the last report. This information is aggregated over all the
* upstream endpoints in the locality.
*
* Endpoint granularity stats information for this locality. This information
* is populated if the Server requests it by setting
* :ref:`LoadStatsResponse.report_endpoint_granularity<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.report_endpoint_granularity>`.
*
* Endpoint granularity stats information for this locality. This information
* is populated if the Server requests it by setting
* :ref:`LoadStatsResponse.report_endpoint_granularity<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.report_endpoint_granularity>`.
*
*
* repeated .envoy.config.endpoint.v3.UpstreamEndpointStats upstream_endpoint_stats = 7;
*/
public int getUpstreamEndpointStatsCount() {
if (upstreamEndpointStatsBuilder_ == null) {
return upstreamEndpointStats_.size();
} else {
return upstreamEndpointStatsBuilder_.getCount();
}
}
/**
*
* Endpoint granularity stats information for this locality. This information
* is populated if the Server requests it by setting
* :ref:`LoadStatsResponse.report_endpoint_granularity<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.report_endpoint_granularity>`.
*
* Endpoint granularity stats information for this locality. This information
* is populated if the Server requests it by setting
* :ref:`LoadStatsResponse.report_endpoint_granularity<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.report_endpoint_granularity>`.
*
*
* repeated .envoy.config.endpoint.v3.UpstreamEndpointStats upstream_endpoint_stats = 7;
*/
public Builder setUpstreamEndpointStats(
int index, io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats value) {
if (upstreamEndpointStatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUpstreamEndpointStatsIsMutable();
upstreamEndpointStats_.set(index, value);
onChanged();
} else {
upstreamEndpointStatsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Endpoint granularity stats information for this locality. This information
* is populated if the Server requests it by setting
* :ref:`LoadStatsResponse.report_endpoint_granularity<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.report_endpoint_granularity>`.
*
* Endpoint granularity stats information for this locality. This information
* is populated if the Server requests it by setting
* :ref:`LoadStatsResponse.report_endpoint_granularity<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.report_endpoint_granularity>`.
*
*
* repeated .envoy.config.endpoint.v3.UpstreamEndpointStats upstream_endpoint_stats = 7;
*/
public Builder addUpstreamEndpointStats(io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats value) {
if (upstreamEndpointStatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUpstreamEndpointStatsIsMutable();
upstreamEndpointStats_.add(value);
onChanged();
} else {
upstreamEndpointStatsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Endpoint granularity stats information for this locality. This information
* is populated if the Server requests it by setting
* :ref:`LoadStatsResponse.report_endpoint_granularity<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.report_endpoint_granularity>`.
*
*
* repeated .envoy.config.endpoint.v3.UpstreamEndpointStats upstream_endpoint_stats = 7;
*/
public Builder addUpstreamEndpointStats(
int index, io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats value) {
if (upstreamEndpointStatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUpstreamEndpointStatsIsMutable();
upstreamEndpointStats_.add(index, value);
onChanged();
} else {
upstreamEndpointStatsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Endpoint granularity stats information for this locality. This information
* is populated if the Server requests it by setting
* :ref:`LoadStatsResponse.report_endpoint_granularity<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.report_endpoint_granularity>`.
*
* Endpoint granularity stats information for this locality. This information
* is populated if the Server requests it by setting
* :ref:`LoadStatsResponse.report_endpoint_granularity<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.report_endpoint_granularity>`.
*
* Endpoint granularity stats information for this locality. This information
* is populated if the Server requests it by setting
* :ref:`LoadStatsResponse.report_endpoint_granularity<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.report_endpoint_granularity>`.
*
* Endpoint granularity stats information for this locality. This information
* is populated if the Server requests it by setting
* :ref:`LoadStatsResponse.report_endpoint_granularity<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.report_endpoint_granularity>`.
*
* Endpoint granularity stats information for this locality. This information
* is populated if the Server requests it by setting
* :ref:`LoadStatsResponse.report_endpoint_granularity<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.report_endpoint_granularity>`.
*
* Endpoint granularity stats information for this locality. This information
* is populated if the Server requests it by setting
* :ref:`LoadStatsResponse.report_endpoint_granularity<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.report_endpoint_granularity>`.
*
*
* repeated .envoy.config.endpoint.v3.UpstreamEndpointStats upstream_endpoint_stats = 7;
*/
public io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats.Builder getUpstreamEndpointStatsBuilder(
int index) {
return getUpstreamEndpointStatsFieldBuilder().getBuilder(index);
}
/**
*
* Endpoint granularity stats information for this locality. This information
* is populated if the Server requests it by setting
* :ref:`LoadStatsResponse.report_endpoint_granularity<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.report_endpoint_granularity>`.
*
*
* repeated .envoy.config.endpoint.v3.UpstreamEndpointStats upstream_endpoint_stats = 7;
*/
public io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStatsOrBuilder getUpstreamEndpointStatsOrBuilder(
int index) {
if (upstreamEndpointStatsBuilder_ == null) {
return upstreamEndpointStats_.get(index); } else {
return upstreamEndpointStatsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Endpoint granularity stats information for this locality. This information
* is populated if the Server requests it by setting
* :ref:`LoadStatsResponse.report_endpoint_granularity<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.report_endpoint_granularity>`.
*
* Endpoint granularity stats information for this locality. This information
* is populated if the Server requests it by setting
* :ref:`LoadStatsResponse.report_endpoint_granularity<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.report_endpoint_granularity>`.
*
* Endpoint granularity stats information for this locality. This information
* is populated if the Server requests it by setting
* :ref:`LoadStatsResponse.report_endpoint_granularity<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.report_endpoint_granularity>`.
*
* Endpoint granularity stats information for this locality. This information
* is populated if the Server requests it by setting
* :ref:`LoadStatsResponse.report_endpoint_granularity<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.report_endpoint_granularity>`.
*