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;
/**
*
* Per cluster load stats. Envoy reports these stats a management server in a
* :ref:`LoadStatsRequest<envoy_v3_api_msg_service.load_stats.v3.LoadStatsRequest>`
* Next ID: 7
* [#next-free-field: 7]
*
*
* Protobuf type {@code envoy.config.endpoint.v3.ClusterStats}
*/
public final class ClusterStats extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.config.endpoint.v3.ClusterStats)
ClusterStatsOrBuilder {
private static final long serialVersionUID = 0L;
// Use ClusterStats.newBuilder() to construct.
private ClusterStats(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ClusterStats() {
clusterName_ = "";
clusterServiceName_ = "";
upstreamLocalityStats_ = java.util.Collections.emptyList();
droppedRequests_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ClusterStats();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ClusterStats(
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: {
java.lang.String s = input.readStringRequireUtf8();
clusterName_ = s;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
upstreamLocalityStats_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
upstreamLocalityStats_.add(
input.readMessage(io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats.parser(), extensionRegistry));
break;
}
case 24: {
totalDroppedRequests_ = input.readUInt64();
break;
}
case 34: {
com.google.protobuf.Duration.Builder subBuilder = null;
if (loadReportInterval_ != null) {
subBuilder = loadReportInterval_.toBuilder();
}
loadReportInterval_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(loadReportInterval_);
loadReportInterval_ = subBuilder.buildPartial();
}
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
droppedRequests_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
droppedRequests_.add(
input.readMessage(io.envoyproxy.envoy.config.endpoint.v3.ClusterStats.DroppedRequests.parser(), extensionRegistry));
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
clusterServiceName_ = s;
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)) {
upstreamLocalityStats_ = java.util.Collections.unmodifiableList(upstreamLocalityStats_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
droppedRequests_ = java.util.Collections.unmodifiableList(droppedRequests_);
}
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_ClusterStats_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_ClusterStats_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.endpoint.v3.ClusterStats.class, io.envoyproxy.envoy.config.endpoint.v3.ClusterStats.Builder.class);
}
public interface DroppedRequestsOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.config.endpoint.v3.ClusterStats.DroppedRequests)
com.google.protobuf.MessageOrBuilder {
/**
*
* Identifier for the policy specifying the drop.
*
*
* string cluster_name = 1 [(.validate.rules) = { ... }
* @return The bytes for clusterName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getClusterNameBytes() {
java.lang.Object ref = clusterName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clusterName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CLUSTER_SERVICE_NAME_FIELD_NUMBER = 6;
private volatile java.lang.Object clusterServiceName_;
/**
*
* The eds_cluster_config service_name of the cluster.
* It's possible that two clusters send the same service_name to EDS,
* in that case, the management server is supposed to do aggregation on the load reports.
*
* The eds_cluster_config service_name of the cluster.
* It's possible that two clusters send the same service_name to EDS,
* in that case, the management server is supposed to do aggregation on the load reports.
*
*
* string cluster_service_name = 6;
* @return The bytes for clusterServiceName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getClusterServiceNameBytes() {
java.lang.Object ref = clusterServiceName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clusterServiceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int UPSTREAM_LOCALITY_STATS_FIELD_NUMBER = 2;
private java.util.List upstreamLocalityStats_;
/**
*
*
* repeated .envoy.config.endpoint.v3.UpstreamLocalityStats upstream_locality_stats = 2 [(.validate.rules) = { ... }
*/
@java.lang.Override
public io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStatsOrBuilder getUpstreamLocalityStatsOrBuilder(
int index) {
return upstreamLocalityStats_.get(index);
}
public static final int TOTAL_DROPPED_REQUESTS_FIELD_NUMBER = 3;
private long totalDroppedRequests_;
/**
*
* Cluster-level stats such as total_successful_requests may be computed by
* summing upstream_locality_stats. In addition, below there are additional
* cluster-wide stats.
* The total number of dropped requests. This covers requests
* deliberately dropped by the drop_overload policy and circuit breaking.
*
*
* uint64 total_dropped_requests = 3;
* @return The totalDroppedRequests.
*/
@java.lang.Override
public long getTotalDroppedRequests() {
return totalDroppedRequests_;
}
public static final int DROPPED_REQUESTS_FIELD_NUMBER = 5;
private java.util.List droppedRequests_;
/**
*
* Information about deliberately dropped requests for each category specified
* in the DropOverload policy.
*
* Information about deliberately dropped requests for each category specified
* in the DropOverload policy.
*
*
* repeated .envoy.config.endpoint.v3.ClusterStats.DroppedRequests dropped_requests = 5;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.endpoint.v3.ClusterStats.DroppedRequestsOrBuilder getDroppedRequestsOrBuilder(
int index) {
return droppedRequests_.get(index);
}
public static final int LOAD_REPORT_INTERVAL_FIELD_NUMBER = 4;
private com.google.protobuf.Duration loadReportInterval_;
/**
*
* Period over which the actual load report occurred. This will be guaranteed to include every
* request reported. Due to system load and delays between the ``LoadStatsRequest`` sent from Envoy
* and the ``LoadStatsResponse`` message sent from the management server, this may be longer than
* the requested load reporting interval in the ``LoadStatsResponse``.
*
*
* .google.protobuf.Duration load_report_interval = 4;
* @return Whether the loadReportInterval field is set.
*/
@java.lang.Override
public boolean hasLoadReportInterval() {
return loadReportInterval_ != null;
}
/**
*
* Period over which the actual load report occurred. This will be guaranteed to include every
* request reported. Due to system load and delays between the ``LoadStatsRequest`` sent from Envoy
* and the ``LoadStatsResponse`` message sent from the management server, this may be longer than
* the requested load reporting interval in the ``LoadStatsResponse``.
*
* Period over which the actual load report occurred. This will be guaranteed to include every
* request reported. Due to system load and delays between the ``LoadStatsRequest`` sent from Envoy
* and the ``LoadStatsResponse`` message sent from the management server, this may be longer than
* the requested load reporting interval in the ``LoadStatsResponse``.
*
*
* .google.protobuf.Duration load_report_interval = 4;
*/
@java.lang.Override
public com.google.protobuf.DurationOrBuilder getLoadReportIntervalOrBuilder() {
return getLoadReportInterval();
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterName_);
}
for (int i = 0; i < upstreamLocalityStats_.size(); i++) {
output.writeMessage(2, upstreamLocalityStats_.get(i));
}
if (totalDroppedRequests_ != 0L) {
output.writeUInt64(3, totalDroppedRequests_);
}
if (loadReportInterval_ != null) {
output.writeMessage(4, getLoadReportInterval());
}
for (int i = 0; i < droppedRequests_.size(); i++) {
output.writeMessage(5, droppedRequests_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterServiceName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, clusterServiceName_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterName_);
}
for (int i = 0; i < upstreamLocalityStats_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, upstreamLocalityStats_.get(i));
}
if (totalDroppedRequests_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, totalDroppedRequests_);
}
if (loadReportInterval_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getLoadReportInterval());
}
for (int i = 0; i < droppedRequests_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, droppedRequests_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterServiceName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, clusterServiceName_);
}
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.ClusterStats)) {
return super.equals(obj);
}
io.envoyproxy.envoy.config.endpoint.v3.ClusterStats other = (io.envoyproxy.envoy.config.endpoint.v3.ClusterStats) obj;
if (!getClusterName()
.equals(other.getClusterName())) return false;
if (!getClusterServiceName()
.equals(other.getClusterServiceName())) return false;
if (!getUpstreamLocalityStatsList()
.equals(other.getUpstreamLocalityStatsList())) return false;
if (getTotalDroppedRequests()
!= other.getTotalDroppedRequests()) return false;
if (!getDroppedRequestsList()
.equals(other.getDroppedRequestsList())) return false;
if (hasLoadReportInterval() != other.hasLoadReportInterval()) return false;
if (hasLoadReportInterval()) {
if (!getLoadReportInterval()
.equals(other.getLoadReportInterval())) 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();
hash = (37 * hash) + CLUSTER_NAME_FIELD_NUMBER;
hash = (53 * hash) + getClusterName().hashCode();
hash = (37 * hash) + CLUSTER_SERVICE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getClusterServiceName().hashCode();
if (getUpstreamLocalityStatsCount() > 0) {
hash = (37 * hash) + UPSTREAM_LOCALITY_STATS_FIELD_NUMBER;
hash = (53 * hash) + getUpstreamLocalityStatsList().hashCode();
}
hash = (37 * hash) + TOTAL_DROPPED_REQUESTS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTotalDroppedRequests());
if (getDroppedRequestsCount() > 0) {
hash = (37 * hash) + DROPPED_REQUESTS_FIELD_NUMBER;
hash = (53 * hash) + getDroppedRequestsList().hashCode();
}
if (hasLoadReportInterval()) {
hash = (37 * hash) + LOAD_REPORT_INTERVAL_FIELD_NUMBER;
hash = (53 * hash) + getLoadReportInterval().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.config.endpoint.v3.ClusterStats parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.endpoint.v3.ClusterStats 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.ClusterStats parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.endpoint.v3.ClusterStats 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.ClusterStats parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.endpoint.v3.ClusterStats 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.ClusterStats 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.ClusterStats 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.ClusterStats 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.ClusterStats 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.ClusterStats 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.ClusterStats 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.ClusterStats 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;
}
/**
*
* Per cluster load stats. Envoy reports these stats a management server in a
* :ref:`LoadStatsRequest<envoy_v3_api_msg_service.load_stats.v3.LoadStatsRequest>`
* Next ID: 7
* [#next-free-field: 7]
*
*
* string cluster_name = 1 [(.validate.rules) = { ... }
* @param value The bytes for clusterName to set.
* @return This builder for chaining.
*/
public Builder setClusterNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
clusterName_ = value;
onChanged();
return this;
}
private java.lang.Object clusterServiceName_ = "";
/**
*
* The eds_cluster_config service_name of the cluster.
* It's possible that two clusters send the same service_name to EDS,
* in that case, the management server is supposed to do aggregation on the load reports.
*
* The eds_cluster_config service_name of the cluster.
* It's possible that two clusters send the same service_name to EDS,
* in that case, the management server is supposed to do aggregation on the load reports.
*
*
* string cluster_service_name = 6;
* @return The bytes for clusterServiceName.
*/
public com.google.protobuf.ByteString
getClusterServiceNameBytes() {
java.lang.Object ref = clusterServiceName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clusterServiceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The eds_cluster_config service_name of the cluster.
* It's possible that two clusters send the same service_name to EDS,
* in that case, the management server is supposed to do aggregation on the load reports.
*
*
* string cluster_service_name = 6;
* @param value The clusterServiceName to set.
* @return This builder for chaining.
*/
public Builder setClusterServiceName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
clusterServiceName_ = value;
onChanged();
return this;
}
/**
*
* The eds_cluster_config service_name of the cluster.
* It's possible that two clusters send the same service_name to EDS,
* in that case, the management server is supposed to do aggregation on the load reports.
*
*
* string cluster_service_name = 6;
* @return This builder for chaining.
*/
public Builder clearClusterServiceName() {
clusterServiceName_ = getDefaultInstance().getClusterServiceName();
onChanged();
return this;
}
/**
*
* The eds_cluster_config service_name of the cluster.
* It's possible that two clusters send the same service_name to EDS,
* in that case, the management server is supposed to do aggregation on the load reports.
*
*
* string cluster_service_name = 6;
* @param value The bytes for clusterServiceName to set.
* @return This builder for chaining.
*/
public Builder setClusterServiceNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
clusterServiceName_ = value;
onChanged();
return this;
}
private java.util.List upstreamLocalityStats_ =
java.util.Collections.emptyList();
private void ensureUpstreamLocalityStatsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
upstreamLocalityStats_ = new java.util.ArrayList(upstreamLocalityStats_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats, io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats.Builder, io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStatsOrBuilder> upstreamLocalityStatsBuilder_;
/**
*
* Cluster-level stats such as total_successful_requests may be computed by
* summing upstream_locality_stats. In addition, below there are additional
* cluster-wide stats.
* The total number of dropped requests. This covers requests
* deliberately dropped by the drop_overload policy and circuit breaking.
*
*
* uint64 total_dropped_requests = 3;
* @return The totalDroppedRequests.
*/
@java.lang.Override
public long getTotalDroppedRequests() {
return totalDroppedRequests_;
}
/**
*
* Cluster-level stats such as total_successful_requests may be computed by
* summing upstream_locality_stats. In addition, below there are additional
* cluster-wide stats.
* The total number of dropped requests. This covers requests
* deliberately dropped by the drop_overload policy and circuit breaking.
*
*
* uint64 total_dropped_requests = 3;
* @param value The totalDroppedRequests to set.
* @return This builder for chaining.
*/
public Builder setTotalDroppedRequests(long value) {
totalDroppedRequests_ = value;
onChanged();
return this;
}
/**
*
* Cluster-level stats such as total_successful_requests may be computed by
* summing upstream_locality_stats. In addition, below there are additional
* cluster-wide stats.
* The total number of dropped requests. This covers requests
* deliberately dropped by the drop_overload policy and circuit breaking.
*
* Period over which the actual load report occurred. This will be guaranteed to include every
* request reported. Due to system load and delays between the ``LoadStatsRequest`` sent from Envoy
* and the ``LoadStatsResponse`` message sent from the management server, this may be longer than
* the requested load reporting interval in the ``LoadStatsResponse``.
*
*
* .google.protobuf.Duration load_report_interval = 4;
* @return Whether the loadReportInterval field is set.
*/
public boolean hasLoadReportInterval() {
return loadReportIntervalBuilder_ != null || loadReportInterval_ != null;
}
/**
*
* Period over which the actual load report occurred. This will be guaranteed to include every
* request reported. Due to system load and delays between the ``LoadStatsRequest`` sent from Envoy
* and the ``LoadStatsResponse`` message sent from the management server, this may be longer than
* the requested load reporting interval in the ``LoadStatsResponse``.
*
* Period over which the actual load report occurred. This will be guaranteed to include every
* request reported. Due to system load and delays between the ``LoadStatsRequest`` sent from Envoy
* and the ``LoadStatsResponse`` message sent from the management server, this may be longer than
* the requested load reporting interval in the ``LoadStatsResponse``.
*
*
* .google.protobuf.Duration load_report_interval = 4;
*/
public Builder setLoadReportInterval(com.google.protobuf.Duration value) {
if (loadReportIntervalBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
loadReportInterval_ = value;
onChanged();
} else {
loadReportIntervalBuilder_.setMessage(value);
}
return this;
}
/**
*
* Period over which the actual load report occurred. This will be guaranteed to include every
* request reported. Due to system load and delays between the ``LoadStatsRequest`` sent from Envoy
* and the ``LoadStatsResponse`` message sent from the management server, this may be longer than
* the requested load reporting interval in the ``LoadStatsResponse``.
*
* Period over which the actual load report occurred. This will be guaranteed to include every
* request reported. Due to system load and delays between the ``LoadStatsRequest`` sent from Envoy
* and the ``LoadStatsResponse`` message sent from the management server, this may be longer than
* the requested load reporting interval in the ``LoadStatsResponse``.
*
* Period over which the actual load report occurred. This will be guaranteed to include every
* request reported. Due to system load and delays between the ``LoadStatsRequest`` sent from Envoy
* and the ``LoadStatsResponse`` message sent from the management server, this may be longer than
* the requested load reporting interval in the ``LoadStatsResponse``.
*
* Period over which the actual load report occurred. This will be guaranteed to include every
* request reported. Due to system load and delays between the ``LoadStatsRequest`` sent from Envoy
* and the ``LoadStatsResponse`` message sent from the management server, this may be longer than
* the requested load reporting interval in the ``LoadStatsResponse``.
*
* Period over which the actual load report occurred. This will be guaranteed to include every
* request reported. Due to system load and delays between the ``LoadStatsRequest`` sent from Envoy
* and the ``LoadStatsResponse`` message sent from the management server, this may be longer than
* the requested load reporting interval in the ``LoadStatsResponse``.
*
* Period over which the actual load report occurred. This will be guaranteed to include every
* request reported. Due to system load and delays between the ``LoadStatsRequest`` sent from Envoy
* and the ``LoadStatsResponse`` message sent from the management server, this may be longer than
* the requested load reporting interval in the ``LoadStatsResponse``.
*
*
* .google.protobuf.Duration load_report_interval = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getLoadReportIntervalFieldBuilder() {
if (loadReportIntervalBuilder_ == null) {
loadReportIntervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getLoadReportInterval(),
getParentForChildren(),
isClean());
loadReportInterval_ = null;
}
return loadReportIntervalBuilder_;
}
@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.ClusterStats)
}
// @@protoc_insertion_point(class_scope:envoy.config.endpoint.v3.ClusterStats)
private static final io.envoyproxy.envoy.config.endpoint.v3.ClusterStats DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.endpoint.v3.ClusterStats();
}
public static io.envoyproxy.envoy.config.endpoint.v3.ClusterStats getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ClusterStats parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ClusterStats(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.ClusterStats getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}