All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.envoyproxy.envoy.api.v2.endpoint.ClusterStats Maven / Gradle / Ivy

There is a newer version: 1.0.46
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: envoy/api/v2/endpoint/load_report.proto

package io.envoyproxy.envoy.api.v2.endpoint;

/**
 * 
 * Per cluster load stats. Envoy reports these stats a management server in a
 * :ref:`LoadStatsRequest<envoy_api_msg_service.load_stats.v2.LoadStatsRequest>`
 * [#not-implemented-hide:] Not configuration. TBD how to doc proto APIs.
 * Next ID: 7
 * [#next-free-field: 7]
 * 
* * Protobuf type {@code envoy.api.v2.endpoint.ClusterStats} */ public final class ClusterStats extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.api.v2.endpoint.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.api.v2.endpoint.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.api.v2.endpoint.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.api.v2.endpoint.LoadReportProto.internal_static_envoy_api_v2_endpoint_ClusterStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.api.v2.endpoint.LoadReportProto.internal_static_envoy_api_v2_endpoint_ClusterStats_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.class, io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.Builder.class); } public interface DroppedRequestsOrBuilder extends // @@protoc_insertion_point(interface_extends:envoy.api.v2.endpoint.ClusterStats.DroppedRequests) com.google.protobuf.MessageOrBuilder { /** *
     * Identifier for the policy specifying the drop.
     * 
* * string category = 1 [(.validate.rules) = { ... } * @return The category. */ java.lang.String getCategory(); /** *
     * Identifier for the policy specifying the drop.
     * 
* * string category = 1 [(.validate.rules) = { ... } * @return The bytes for category. */ com.google.protobuf.ByteString getCategoryBytes(); /** *
     * Total number of deliberately dropped requests for the category.
     * 
* * uint64 dropped_count = 2; * @return The droppedCount. */ long getDroppedCount(); } /** * Protobuf type {@code envoy.api.v2.endpoint.ClusterStats.DroppedRequests} */ public static final class DroppedRequests extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.api.v2.endpoint.ClusterStats.DroppedRequests) DroppedRequestsOrBuilder { private static final long serialVersionUID = 0L; // Use DroppedRequests.newBuilder() to construct. private DroppedRequests(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DroppedRequests() { category_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DroppedRequests(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DroppedRequests( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); category_ = s; break; } case 16: { droppedCount_ = 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.api.v2.endpoint.LoadReportProto.internal_static_envoy_api_v2_endpoint_ClusterStats_DroppedRequests_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.api.v2.endpoint.LoadReportProto.internal_static_envoy_api_v2_endpoint_ClusterStats_DroppedRequests_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests.class, io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests.Builder.class); } public static final int CATEGORY_FIELD_NUMBER = 1; private volatile java.lang.Object category_; /** *
     * Identifier for the policy specifying the drop.
     * 
* * string category = 1 [(.validate.rules) = { ... } * @return The category. */ @java.lang.Override public java.lang.String getCategory() { java.lang.Object ref = category_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); category_ = s; return s; } } /** *
     * Identifier for the policy specifying the drop.
     * 
* * string category = 1 [(.validate.rules) = { ... } * @return The bytes for category. */ @java.lang.Override public com.google.protobuf.ByteString getCategoryBytes() { java.lang.Object ref = category_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); category_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DROPPED_COUNT_FIELD_NUMBER = 2; private long droppedCount_; /** *
     * Total number of deliberately dropped requests for the category.
     * 
* * uint64 dropped_count = 2; * @return The droppedCount. */ @java.lang.Override public long getDroppedCount() { return droppedCount_; } 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(category_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, category_); } if (droppedCount_ != 0L) { output.writeUInt64(2, droppedCount_); } 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(category_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, category_); } if (droppedCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, droppedCount_); } 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.api.v2.endpoint.ClusterStats.DroppedRequests)) { return super.equals(obj); } io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests other = (io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests) obj; if (!getCategory() .equals(other.getCategory())) return false; if (getDroppedCount() != other.getDroppedCount()) 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) + CATEGORY_FIELD_NUMBER; hash = (53 * hash) + getCategory().hashCode(); hash = (37 * hash) + DROPPED_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDroppedCount()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests 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.api.v2.endpoint.ClusterStats.DroppedRequests parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests 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.api.v2.endpoint.ClusterStats.DroppedRequests parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests 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.api.v2.endpoint.ClusterStats.DroppedRequests parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests 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.api.v2.endpoint.ClusterStats.DroppedRequests parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests 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.api.v2.endpoint.ClusterStats.DroppedRequests prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code envoy.api.v2.endpoint.ClusterStats.DroppedRequests} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.api.v2.endpoint.ClusterStats.DroppedRequests) io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequestsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.api.v2.endpoint.LoadReportProto.internal_static_envoy_api_v2_endpoint_ClusterStats_DroppedRequests_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.api.v2.endpoint.LoadReportProto.internal_static_envoy_api_v2_endpoint_ClusterStats_DroppedRequests_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests.class, io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests.Builder.class); } // Construct using io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); category_ = ""; droppedCount_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.api.v2.endpoint.LoadReportProto.internal_static_envoy_api_v2_endpoint_ClusterStats_DroppedRequests_descriptor; } @java.lang.Override public io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests getDefaultInstanceForType() { return io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests build() { io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests buildPartial() { io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests result = new io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests(this); result.category_ = category_; result.droppedCount_ = droppedCount_; 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.api.v2.endpoint.ClusterStats.DroppedRequests) { return mergeFrom((io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests other) { if (other == io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests.getDefaultInstance()) return this; if (!other.getCategory().isEmpty()) { category_ = other.category_; onChanged(); } if (other.getDroppedCount() != 0L) { setDroppedCount(other.getDroppedCount()); } 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.api.v2.endpoint.ClusterStats.DroppedRequests parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object category_ = ""; /** *
       * Identifier for the policy specifying the drop.
       * 
* * string category = 1 [(.validate.rules) = { ... } * @return The category. */ public java.lang.String getCategory() { java.lang.Object ref = category_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); category_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Identifier for the policy specifying the drop.
       * 
* * string category = 1 [(.validate.rules) = { ... } * @return The bytes for category. */ public com.google.protobuf.ByteString getCategoryBytes() { java.lang.Object ref = category_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); category_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Identifier for the policy specifying the drop.
       * 
* * string category = 1 [(.validate.rules) = { ... } * @param value The category to set. * @return This builder for chaining. */ public Builder setCategory( java.lang.String value) { if (value == null) { throw new NullPointerException(); } category_ = value; onChanged(); return this; } /** *
       * Identifier for the policy specifying the drop.
       * 
* * string category = 1 [(.validate.rules) = { ... } * @return This builder for chaining. */ public Builder clearCategory() { category_ = getDefaultInstance().getCategory(); onChanged(); return this; } /** *
       * Identifier for the policy specifying the drop.
       * 
* * string category = 1 [(.validate.rules) = { ... } * @param value The bytes for category to set. * @return This builder for chaining. */ public Builder setCategoryBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); category_ = value; onChanged(); return this; } private long droppedCount_ ; /** *
       * Total number of deliberately dropped requests for the category.
       * 
* * uint64 dropped_count = 2; * @return The droppedCount. */ @java.lang.Override public long getDroppedCount() { return droppedCount_; } /** *
       * Total number of deliberately dropped requests for the category.
       * 
* * uint64 dropped_count = 2; * @param value The droppedCount to set. * @return This builder for chaining. */ public Builder setDroppedCount(long value) { droppedCount_ = value; onChanged(); return this; } /** *
       * Total number of deliberately dropped requests for the category.
       * 
* * uint64 dropped_count = 2; * @return This builder for chaining. */ public Builder clearDroppedCount() { droppedCount_ = 0L; onChanged(); return this; } @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.api.v2.endpoint.ClusterStats.DroppedRequests) } // @@protoc_insertion_point(class_scope:envoy.api.v2.endpoint.ClusterStats.DroppedRequests) private static final io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests(); } public static io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DroppedRequests parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DroppedRequests(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.api.v2.endpoint.ClusterStats.DroppedRequests getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int CLUSTER_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object clusterName_; /** *
   * The name of the cluster.
   * 
* * string cluster_name = 1 [(.validate.rules) = { ... } * @return The clusterName. */ @java.lang.Override public java.lang.String getClusterName() { java.lang.Object ref = clusterName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; } } /** *
   * The name of the cluster.
   * 
* * 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.
   * 
* * string cluster_service_name = 6; * @return The clusterServiceName. */ @java.lang.Override public java.lang.String getClusterServiceName() { java.lang.Object ref = clusterServiceName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterServiceName_ = s; return s; } } /** *
   * 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_; /** *
   * Need at least one.
   * 
* * repeated .envoy.api.v2.endpoint.UpstreamLocalityStats upstream_locality_stats = 2 [(.validate.rules) = { ... } */ @java.lang.Override public java.util.List getUpstreamLocalityStatsList() { return upstreamLocalityStats_; } /** *
   * Need at least one.
   * 
* * repeated .envoy.api.v2.endpoint.UpstreamLocalityStats upstream_locality_stats = 2 [(.validate.rules) = { ... } */ @java.lang.Override public java.util.List getUpstreamLocalityStatsOrBuilderList() { return upstreamLocalityStats_; } /** *
   * Need at least one.
   * 
* * repeated .envoy.api.v2.endpoint.UpstreamLocalityStats upstream_locality_stats = 2 [(.validate.rules) = { ... } */ @java.lang.Override public int getUpstreamLocalityStatsCount() { return upstreamLocalityStats_.size(); } /** *
   * Need at least one.
   * 
* * repeated .envoy.api.v2.endpoint.UpstreamLocalityStats upstream_locality_stats = 2 [(.validate.rules) = { ... } */ @java.lang.Override public io.envoyproxy.envoy.api.v2.endpoint.UpstreamLocalityStats getUpstreamLocalityStats(int index) { return upstreamLocalityStats_.get(index); } /** *
   * Need at least one.
   * 
* * repeated .envoy.api.v2.endpoint.UpstreamLocalityStats upstream_locality_stats = 2 [(.validate.rules) = { ... } */ @java.lang.Override public io.envoyproxy.envoy.api.v2.endpoint.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.
   * 
* * repeated .envoy.api.v2.endpoint.ClusterStats.DroppedRequests dropped_requests = 5; */ @java.lang.Override public java.util.List getDroppedRequestsList() { return droppedRequests_; } /** *
   * Information about deliberately dropped requests for each category specified
   * in the DropOverload policy.
   * 
* * repeated .envoy.api.v2.endpoint.ClusterStats.DroppedRequests dropped_requests = 5; */ @java.lang.Override public java.util.List getDroppedRequestsOrBuilderList() { return droppedRequests_; } /** *
   * Information about deliberately dropped requests for each category specified
   * in the DropOverload policy.
   * 
* * repeated .envoy.api.v2.endpoint.ClusterStats.DroppedRequests dropped_requests = 5; */ @java.lang.Override public int getDroppedRequestsCount() { return droppedRequests_.size(); } /** *
   * Information about deliberately dropped requests for each category specified
   * in the DropOverload policy.
   * 
* * repeated .envoy.api.v2.endpoint.ClusterStats.DroppedRequests dropped_requests = 5; */ @java.lang.Override public io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests getDroppedRequests(int index) { return droppedRequests_.get(index); } /** *
   * Information about deliberately dropped requests for each category specified
   * in the DropOverload policy.
   * 
* * repeated .envoy.api.v2.endpoint.ClusterStats.DroppedRequests dropped_requests = 5; */ @java.lang.Override public io.envoyproxy.envoy.api.v2.endpoint.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*.
   * 
* * .google.protobuf.Duration load_report_interval = 4; * @return The loadReportInterval. */ @java.lang.Override public com.google.protobuf.Duration getLoadReportInterval() { return loadReportInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : 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; */ @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.api.v2.endpoint.ClusterStats)) { return super.equals(obj); } io.envoyproxy.envoy.api.v2.endpoint.ClusterStats other = (io.envoyproxy.envoy.api.v2.endpoint.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.api.v2.endpoint.ClusterStats parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.api.v2.endpoint.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.api.v2.endpoint.ClusterStats parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.api.v2.endpoint.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.api.v2.endpoint.ClusterStats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.api.v2.endpoint.ClusterStats parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.api.v2.endpoint.ClusterStats parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.api.v2.endpoint.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.api.v2.endpoint.ClusterStats parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.api.v2.endpoint.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.api.v2.endpoint.ClusterStats parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.api.v2.endpoint.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.api.v2.endpoint.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_api_msg_service.load_stats.v2.LoadStatsRequest>`
   * [#not-implemented-hide:] Not configuration. TBD how to doc proto APIs.
   * Next ID: 7
   * [#next-free-field: 7]
   * 
* * Protobuf type {@code envoy.api.v2.endpoint.ClusterStats} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.api.v2.endpoint.ClusterStats) io.envoyproxy.envoy.api.v2.endpoint.ClusterStatsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.api.v2.endpoint.LoadReportProto.internal_static_envoy_api_v2_endpoint_ClusterStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.api.v2.endpoint.LoadReportProto.internal_static_envoy_api_v2_endpoint_ClusterStats_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.class, io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.Builder.class); } // Construct using io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getUpstreamLocalityStatsFieldBuilder(); getDroppedRequestsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); clusterName_ = ""; clusterServiceName_ = ""; if (upstreamLocalityStatsBuilder_ == null) { upstreamLocalityStats_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { upstreamLocalityStatsBuilder_.clear(); } totalDroppedRequests_ = 0L; if (droppedRequestsBuilder_ == null) { droppedRequests_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { droppedRequestsBuilder_.clear(); } if (loadReportIntervalBuilder_ == null) { loadReportInterval_ = null; } else { loadReportInterval_ = null; loadReportIntervalBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.api.v2.endpoint.LoadReportProto.internal_static_envoy_api_v2_endpoint_ClusterStats_descriptor; } @java.lang.Override public io.envoyproxy.envoy.api.v2.endpoint.ClusterStats getDefaultInstanceForType() { return io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.api.v2.endpoint.ClusterStats build() { io.envoyproxy.envoy.api.v2.endpoint.ClusterStats result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.api.v2.endpoint.ClusterStats buildPartial() { io.envoyproxy.envoy.api.v2.endpoint.ClusterStats result = new io.envoyproxy.envoy.api.v2.endpoint.ClusterStats(this); int from_bitField0_ = bitField0_; result.clusterName_ = clusterName_; result.clusterServiceName_ = clusterServiceName_; if (upstreamLocalityStatsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { upstreamLocalityStats_ = java.util.Collections.unmodifiableList(upstreamLocalityStats_); bitField0_ = (bitField0_ & ~0x00000001); } result.upstreamLocalityStats_ = upstreamLocalityStats_; } else { result.upstreamLocalityStats_ = upstreamLocalityStatsBuilder_.build(); } result.totalDroppedRequests_ = totalDroppedRequests_; if (droppedRequestsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { droppedRequests_ = java.util.Collections.unmodifiableList(droppedRequests_); bitField0_ = (bitField0_ & ~0x00000002); } result.droppedRequests_ = droppedRequests_; } else { result.droppedRequests_ = droppedRequestsBuilder_.build(); } if (loadReportIntervalBuilder_ == null) { result.loadReportInterval_ = loadReportInterval_; } else { result.loadReportInterval_ = loadReportIntervalBuilder_.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.api.v2.endpoint.ClusterStats) { return mergeFrom((io.envoyproxy.envoy.api.v2.endpoint.ClusterStats)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.api.v2.endpoint.ClusterStats other) { if (other == io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.getDefaultInstance()) return this; if (!other.getClusterName().isEmpty()) { clusterName_ = other.clusterName_; onChanged(); } if (!other.getClusterServiceName().isEmpty()) { clusterServiceName_ = other.clusterServiceName_; onChanged(); } if (upstreamLocalityStatsBuilder_ == null) { if (!other.upstreamLocalityStats_.isEmpty()) { if (upstreamLocalityStats_.isEmpty()) { upstreamLocalityStats_ = other.upstreamLocalityStats_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureUpstreamLocalityStatsIsMutable(); upstreamLocalityStats_.addAll(other.upstreamLocalityStats_); } onChanged(); } } else { if (!other.upstreamLocalityStats_.isEmpty()) { if (upstreamLocalityStatsBuilder_.isEmpty()) { upstreamLocalityStatsBuilder_.dispose(); upstreamLocalityStatsBuilder_ = null; upstreamLocalityStats_ = other.upstreamLocalityStats_; bitField0_ = (bitField0_ & ~0x00000001); upstreamLocalityStatsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getUpstreamLocalityStatsFieldBuilder() : null; } else { upstreamLocalityStatsBuilder_.addAllMessages(other.upstreamLocalityStats_); } } } if (other.getTotalDroppedRequests() != 0L) { setTotalDroppedRequests(other.getTotalDroppedRequests()); } if (droppedRequestsBuilder_ == null) { if (!other.droppedRequests_.isEmpty()) { if (droppedRequests_.isEmpty()) { droppedRequests_ = other.droppedRequests_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureDroppedRequestsIsMutable(); droppedRequests_.addAll(other.droppedRequests_); } onChanged(); } } else { if (!other.droppedRequests_.isEmpty()) { if (droppedRequestsBuilder_.isEmpty()) { droppedRequestsBuilder_.dispose(); droppedRequestsBuilder_ = null; droppedRequests_ = other.droppedRequests_; bitField0_ = (bitField0_ & ~0x00000002); droppedRequestsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDroppedRequestsFieldBuilder() : null; } else { droppedRequestsBuilder_.addAllMessages(other.droppedRequests_); } } } if (other.hasLoadReportInterval()) { mergeLoadReportInterval(other.getLoadReportInterval()); } 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.api.v2.endpoint.ClusterStats parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.api.v2.endpoint.ClusterStats) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object clusterName_ = ""; /** *
     * The name of the cluster.
     * 
* * string cluster_name = 1 [(.validate.rules) = { ... } * @return The clusterName. */ public java.lang.String getClusterName() { java.lang.Object ref = clusterName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The name of the cluster.
     * 
* * string cluster_name = 1 [(.validate.rules) = { ... } * @return The bytes for clusterName. */ public com.google.protobuf.ByteString getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof 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; } } /** *
     * The name of the cluster.
     * 
* * string cluster_name = 1 [(.validate.rules) = { ... } * @param value The clusterName to set. * @return This builder for chaining. */ public Builder setClusterName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } clusterName_ = value; onChanged(); return this; } /** *
     * The name of the cluster.
     * 
* * string cluster_name = 1 [(.validate.rules) = { ... } * @return This builder for chaining. */ public Builder clearClusterName() { clusterName_ = getDefaultInstance().getClusterName(); onChanged(); return this; } /** *
     * The name of the cluster.
     * 
* * 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.
     * 
* * string cluster_service_name = 6; * @return The clusterServiceName. */ public java.lang.String getClusterServiceName() { java.lang.Object ref = clusterServiceName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterServiceName_ = s; return s; } else { return (java.lang.String) 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; * @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.api.v2.endpoint.UpstreamLocalityStats, io.envoyproxy.envoy.api.v2.endpoint.UpstreamLocalityStats.Builder, io.envoyproxy.envoy.api.v2.endpoint.UpstreamLocalityStatsOrBuilder> upstreamLocalityStatsBuilder_; /** *
     * Need at least one.
     * 
* * repeated .envoy.api.v2.endpoint.UpstreamLocalityStats upstream_locality_stats = 2 [(.validate.rules) = { ... } */ public java.util.List getUpstreamLocalityStatsList() { if (upstreamLocalityStatsBuilder_ == null) { return java.util.Collections.unmodifiableList(upstreamLocalityStats_); } else { return upstreamLocalityStatsBuilder_.getMessageList(); } } /** *
     * Need at least one.
     * 
* * repeated .envoy.api.v2.endpoint.UpstreamLocalityStats upstream_locality_stats = 2 [(.validate.rules) = { ... } */ public int getUpstreamLocalityStatsCount() { if (upstreamLocalityStatsBuilder_ == null) { return upstreamLocalityStats_.size(); } else { return upstreamLocalityStatsBuilder_.getCount(); } } /** *
     * Need at least one.
     * 
* * repeated .envoy.api.v2.endpoint.UpstreamLocalityStats upstream_locality_stats = 2 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.api.v2.endpoint.UpstreamLocalityStats getUpstreamLocalityStats(int index) { if (upstreamLocalityStatsBuilder_ == null) { return upstreamLocalityStats_.get(index); } else { return upstreamLocalityStatsBuilder_.getMessage(index); } } /** *
     * Need at least one.
     * 
* * repeated .envoy.api.v2.endpoint.UpstreamLocalityStats upstream_locality_stats = 2 [(.validate.rules) = { ... } */ public Builder setUpstreamLocalityStats( int index, io.envoyproxy.envoy.api.v2.endpoint.UpstreamLocalityStats value) { if (upstreamLocalityStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUpstreamLocalityStatsIsMutable(); upstreamLocalityStats_.set(index, value); onChanged(); } else { upstreamLocalityStatsBuilder_.setMessage(index, value); } return this; } /** *
     * Need at least one.
     * 
* * repeated .envoy.api.v2.endpoint.UpstreamLocalityStats upstream_locality_stats = 2 [(.validate.rules) = { ... } */ public Builder setUpstreamLocalityStats( int index, io.envoyproxy.envoy.api.v2.endpoint.UpstreamLocalityStats.Builder builderForValue) { if (upstreamLocalityStatsBuilder_ == null) { ensureUpstreamLocalityStatsIsMutable(); upstreamLocalityStats_.set(index, builderForValue.build()); onChanged(); } else { upstreamLocalityStatsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Need at least one.
     * 
* * repeated .envoy.api.v2.endpoint.UpstreamLocalityStats upstream_locality_stats = 2 [(.validate.rules) = { ... } */ public Builder addUpstreamLocalityStats(io.envoyproxy.envoy.api.v2.endpoint.UpstreamLocalityStats value) { if (upstreamLocalityStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUpstreamLocalityStatsIsMutable(); upstreamLocalityStats_.add(value); onChanged(); } else { upstreamLocalityStatsBuilder_.addMessage(value); } return this; } /** *
     * Need at least one.
     * 
* * repeated .envoy.api.v2.endpoint.UpstreamLocalityStats upstream_locality_stats = 2 [(.validate.rules) = { ... } */ public Builder addUpstreamLocalityStats( int index, io.envoyproxy.envoy.api.v2.endpoint.UpstreamLocalityStats value) { if (upstreamLocalityStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUpstreamLocalityStatsIsMutable(); upstreamLocalityStats_.add(index, value); onChanged(); } else { upstreamLocalityStatsBuilder_.addMessage(index, value); } return this; } /** *
     * Need at least one.
     * 
* * repeated .envoy.api.v2.endpoint.UpstreamLocalityStats upstream_locality_stats = 2 [(.validate.rules) = { ... } */ public Builder addUpstreamLocalityStats( io.envoyproxy.envoy.api.v2.endpoint.UpstreamLocalityStats.Builder builderForValue) { if (upstreamLocalityStatsBuilder_ == null) { ensureUpstreamLocalityStatsIsMutable(); upstreamLocalityStats_.add(builderForValue.build()); onChanged(); } else { upstreamLocalityStatsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Need at least one.
     * 
* * repeated .envoy.api.v2.endpoint.UpstreamLocalityStats upstream_locality_stats = 2 [(.validate.rules) = { ... } */ public Builder addUpstreamLocalityStats( int index, io.envoyproxy.envoy.api.v2.endpoint.UpstreamLocalityStats.Builder builderForValue) { if (upstreamLocalityStatsBuilder_ == null) { ensureUpstreamLocalityStatsIsMutable(); upstreamLocalityStats_.add(index, builderForValue.build()); onChanged(); } else { upstreamLocalityStatsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Need at least one.
     * 
* * repeated .envoy.api.v2.endpoint.UpstreamLocalityStats upstream_locality_stats = 2 [(.validate.rules) = { ... } */ public Builder addAllUpstreamLocalityStats( java.lang.Iterable values) { if (upstreamLocalityStatsBuilder_ == null) { ensureUpstreamLocalityStatsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, upstreamLocalityStats_); onChanged(); } else { upstreamLocalityStatsBuilder_.addAllMessages(values); } return this; } /** *
     * Need at least one.
     * 
* * repeated .envoy.api.v2.endpoint.UpstreamLocalityStats upstream_locality_stats = 2 [(.validate.rules) = { ... } */ public Builder clearUpstreamLocalityStats() { if (upstreamLocalityStatsBuilder_ == null) { upstreamLocalityStats_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { upstreamLocalityStatsBuilder_.clear(); } return this; } /** *
     * Need at least one.
     * 
* * repeated .envoy.api.v2.endpoint.UpstreamLocalityStats upstream_locality_stats = 2 [(.validate.rules) = { ... } */ public Builder removeUpstreamLocalityStats(int index) { if (upstreamLocalityStatsBuilder_ == null) { ensureUpstreamLocalityStatsIsMutable(); upstreamLocalityStats_.remove(index); onChanged(); } else { upstreamLocalityStatsBuilder_.remove(index); } return this; } /** *
     * Need at least one.
     * 
* * repeated .envoy.api.v2.endpoint.UpstreamLocalityStats upstream_locality_stats = 2 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.api.v2.endpoint.UpstreamLocalityStats.Builder getUpstreamLocalityStatsBuilder( int index) { return getUpstreamLocalityStatsFieldBuilder().getBuilder(index); } /** *
     * Need at least one.
     * 
* * repeated .envoy.api.v2.endpoint.UpstreamLocalityStats upstream_locality_stats = 2 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.api.v2.endpoint.UpstreamLocalityStatsOrBuilder getUpstreamLocalityStatsOrBuilder( int index) { if (upstreamLocalityStatsBuilder_ == null) { return upstreamLocalityStats_.get(index); } else { return upstreamLocalityStatsBuilder_.getMessageOrBuilder(index); } } /** *
     * Need at least one.
     * 
* * repeated .envoy.api.v2.endpoint.UpstreamLocalityStats upstream_locality_stats = 2 [(.validate.rules) = { ... } */ public java.util.List getUpstreamLocalityStatsOrBuilderList() { if (upstreamLocalityStatsBuilder_ != null) { return upstreamLocalityStatsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(upstreamLocalityStats_); } } /** *
     * Need at least one.
     * 
* * repeated .envoy.api.v2.endpoint.UpstreamLocalityStats upstream_locality_stats = 2 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.api.v2.endpoint.UpstreamLocalityStats.Builder addUpstreamLocalityStatsBuilder() { return getUpstreamLocalityStatsFieldBuilder().addBuilder( io.envoyproxy.envoy.api.v2.endpoint.UpstreamLocalityStats.getDefaultInstance()); } /** *
     * Need at least one.
     * 
* * repeated .envoy.api.v2.endpoint.UpstreamLocalityStats upstream_locality_stats = 2 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.api.v2.endpoint.UpstreamLocalityStats.Builder addUpstreamLocalityStatsBuilder( int index) { return getUpstreamLocalityStatsFieldBuilder().addBuilder( index, io.envoyproxy.envoy.api.v2.endpoint.UpstreamLocalityStats.getDefaultInstance()); } /** *
     * Need at least one.
     * 
* * repeated .envoy.api.v2.endpoint.UpstreamLocalityStats upstream_locality_stats = 2 [(.validate.rules) = { ... } */ public java.util.List getUpstreamLocalityStatsBuilderList() { return getUpstreamLocalityStatsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.api.v2.endpoint.UpstreamLocalityStats, io.envoyproxy.envoy.api.v2.endpoint.UpstreamLocalityStats.Builder, io.envoyproxy.envoy.api.v2.endpoint.UpstreamLocalityStatsOrBuilder> getUpstreamLocalityStatsFieldBuilder() { if (upstreamLocalityStatsBuilder_ == null) { upstreamLocalityStatsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.api.v2.endpoint.UpstreamLocalityStats, io.envoyproxy.envoy.api.v2.endpoint.UpstreamLocalityStats.Builder, io.envoyproxy.envoy.api.v2.endpoint.UpstreamLocalityStatsOrBuilder>( upstreamLocalityStats_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); upstreamLocalityStats_ = null; } return upstreamLocalityStatsBuilder_; } 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_; } /** *
     * 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.
     * 
* * uint64 total_dropped_requests = 3; * @return This builder for chaining. */ public Builder clearTotalDroppedRequests() { totalDroppedRequests_ = 0L; onChanged(); return this; } private java.util.List droppedRequests_ = java.util.Collections.emptyList(); private void ensureDroppedRequestsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { droppedRequests_ = new java.util.ArrayList(droppedRequests_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests, io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests.Builder, io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequestsOrBuilder> droppedRequestsBuilder_; /** *
     * Information about deliberately dropped requests for each category specified
     * in the DropOverload policy.
     * 
* * repeated .envoy.api.v2.endpoint.ClusterStats.DroppedRequests dropped_requests = 5; */ public java.util.List getDroppedRequestsList() { if (droppedRequestsBuilder_ == null) { return java.util.Collections.unmodifiableList(droppedRequests_); } else { return droppedRequestsBuilder_.getMessageList(); } } /** *
     * Information about deliberately dropped requests for each category specified
     * in the DropOverload policy.
     * 
* * repeated .envoy.api.v2.endpoint.ClusterStats.DroppedRequests dropped_requests = 5; */ public int getDroppedRequestsCount() { if (droppedRequestsBuilder_ == null) { return droppedRequests_.size(); } else { return droppedRequestsBuilder_.getCount(); } } /** *
     * Information about deliberately dropped requests for each category specified
     * in the DropOverload policy.
     * 
* * repeated .envoy.api.v2.endpoint.ClusterStats.DroppedRequests dropped_requests = 5; */ public io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests getDroppedRequests(int index) { if (droppedRequestsBuilder_ == null) { return droppedRequests_.get(index); } else { return droppedRequestsBuilder_.getMessage(index); } } /** *
     * Information about deliberately dropped requests for each category specified
     * in the DropOverload policy.
     * 
* * repeated .envoy.api.v2.endpoint.ClusterStats.DroppedRequests dropped_requests = 5; */ public Builder setDroppedRequests( int index, io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests value) { if (droppedRequestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDroppedRequestsIsMutable(); droppedRequests_.set(index, value); onChanged(); } else { droppedRequestsBuilder_.setMessage(index, value); } return this; } /** *
     * Information about deliberately dropped requests for each category specified
     * in the DropOverload policy.
     * 
* * repeated .envoy.api.v2.endpoint.ClusterStats.DroppedRequests dropped_requests = 5; */ public Builder setDroppedRequests( int index, io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests.Builder builderForValue) { if (droppedRequestsBuilder_ == null) { ensureDroppedRequestsIsMutable(); droppedRequests_.set(index, builderForValue.build()); onChanged(); } else { droppedRequestsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Information about deliberately dropped requests for each category specified
     * in the DropOverload policy.
     * 
* * repeated .envoy.api.v2.endpoint.ClusterStats.DroppedRequests dropped_requests = 5; */ public Builder addDroppedRequests(io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests value) { if (droppedRequestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDroppedRequestsIsMutable(); droppedRequests_.add(value); onChanged(); } else { droppedRequestsBuilder_.addMessage(value); } return this; } /** *
     * Information about deliberately dropped requests for each category specified
     * in the DropOverload policy.
     * 
* * repeated .envoy.api.v2.endpoint.ClusterStats.DroppedRequests dropped_requests = 5; */ public Builder addDroppedRequests( int index, io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests value) { if (droppedRequestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDroppedRequestsIsMutable(); droppedRequests_.add(index, value); onChanged(); } else { droppedRequestsBuilder_.addMessage(index, value); } return this; } /** *
     * Information about deliberately dropped requests for each category specified
     * in the DropOverload policy.
     * 
* * repeated .envoy.api.v2.endpoint.ClusterStats.DroppedRequests dropped_requests = 5; */ public Builder addDroppedRequests( io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests.Builder builderForValue) { if (droppedRequestsBuilder_ == null) { ensureDroppedRequestsIsMutable(); droppedRequests_.add(builderForValue.build()); onChanged(); } else { droppedRequestsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Information about deliberately dropped requests for each category specified
     * in the DropOverload policy.
     * 
* * repeated .envoy.api.v2.endpoint.ClusterStats.DroppedRequests dropped_requests = 5; */ public Builder addDroppedRequests( int index, io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests.Builder builderForValue) { if (droppedRequestsBuilder_ == null) { ensureDroppedRequestsIsMutable(); droppedRequests_.add(index, builderForValue.build()); onChanged(); } else { droppedRequestsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Information about deliberately dropped requests for each category specified
     * in the DropOverload policy.
     * 
* * repeated .envoy.api.v2.endpoint.ClusterStats.DroppedRequests dropped_requests = 5; */ public Builder addAllDroppedRequests( java.lang.Iterable values) { if (droppedRequestsBuilder_ == null) { ensureDroppedRequestsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, droppedRequests_); onChanged(); } else { droppedRequestsBuilder_.addAllMessages(values); } return this; } /** *
     * Information about deliberately dropped requests for each category specified
     * in the DropOverload policy.
     * 
* * repeated .envoy.api.v2.endpoint.ClusterStats.DroppedRequests dropped_requests = 5; */ public Builder clearDroppedRequests() { if (droppedRequestsBuilder_ == null) { droppedRequests_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { droppedRequestsBuilder_.clear(); } return this; } /** *
     * Information about deliberately dropped requests for each category specified
     * in the DropOverload policy.
     * 
* * repeated .envoy.api.v2.endpoint.ClusterStats.DroppedRequests dropped_requests = 5; */ public Builder removeDroppedRequests(int index) { if (droppedRequestsBuilder_ == null) { ensureDroppedRequestsIsMutable(); droppedRequests_.remove(index); onChanged(); } else { droppedRequestsBuilder_.remove(index); } return this; } /** *
     * Information about deliberately dropped requests for each category specified
     * in the DropOverload policy.
     * 
* * repeated .envoy.api.v2.endpoint.ClusterStats.DroppedRequests dropped_requests = 5; */ public io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests.Builder getDroppedRequestsBuilder( int index) { return getDroppedRequestsFieldBuilder().getBuilder(index); } /** *
     * Information about deliberately dropped requests for each category specified
     * in the DropOverload policy.
     * 
* * repeated .envoy.api.v2.endpoint.ClusterStats.DroppedRequests dropped_requests = 5; */ public io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequestsOrBuilder getDroppedRequestsOrBuilder( int index) { if (droppedRequestsBuilder_ == null) { return droppedRequests_.get(index); } else { return droppedRequestsBuilder_.getMessageOrBuilder(index); } } /** *
     * Information about deliberately dropped requests for each category specified
     * in the DropOverload policy.
     * 
* * repeated .envoy.api.v2.endpoint.ClusterStats.DroppedRequests dropped_requests = 5; */ public java.util.List getDroppedRequestsOrBuilderList() { if (droppedRequestsBuilder_ != null) { return droppedRequestsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(droppedRequests_); } } /** *
     * Information about deliberately dropped requests for each category specified
     * in the DropOverload policy.
     * 
* * repeated .envoy.api.v2.endpoint.ClusterStats.DroppedRequests dropped_requests = 5; */ public io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests.Builder addDroppedRequestsBuilder() { return getDroppedRequestsFieldBuilder().addBuilder( io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests.getDefaultInstance()); } /** *
     * Information about deliberately dropped requests for each category specified
     * in the DropOverload policy.
     * 
* * repeated .envoy.api.v2.endpoint.ClusterStats.DroppedRequests dropped_requests = 5; */ public io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests.Builder addDroppedRequestsBuilder( int index) { return getDroppedRequestsFieldBuilder().addBuilder( index, io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests.getDefaultInstance()); } /** *
     * Information about deliberately dropped requests for each category specified
     * in the DropOverload policy.
     * 
* * repeated .envoy.api.v2.endpoint.ClusterStats.DroppedRequests dropped_requests = 5; */ public java.util.List getDroppedRequestsBuilderList() { return getDroppedRequestsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests, io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests.Builder, io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequestsOrBuilder> getDroppedRequestsFieldBuilder() { if (droppedRequestsBuilder_ == null) { droppedRequestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests, io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequests.Builder, io.envoyproxy.envoy.api.v2.endpoint.ClusterStats.DroppedRequestsOrBuilder>( droppedRequests_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); droppedRequests_ = null; } return droppedRequestsBuilder_; } private com.google.protobuf.Duration loadReportInterval_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> loadReportIntervalBuilder_; /** *
     * 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*.
     * 
* * .google.protobuf.Duration load_report_interval = 4; * @return The loadReportInterval. */ public com.google.protobuf.Duration getLoadReportInterval() { if (loadReportIntervalBuilder_ == null) { return loadReportInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : loadReportInterval_; } else { return loadReportIntervalBuilder_.getMessage(); } } /** *
     * 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*.
     * 
* * .google.protobuf.Duration load_report_interval = 4; */ public Builder setLoadReportInterval( com.google.protobuf.Duration.Builder builderForValue) { if (loadReportIntervalBuilder_ == null) { loadReportInterval_ = builderForValue.build(); onChanged(); } else { loadReportIntervalBuilder_.setMessage(builderForValue.build()); } 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*.
     * 
* * .google.protobuf.Duration load_report_interval = 4; */ public Builder mergeLoadReportInterval(com.google.protobuf.Duration value) { if (loadReportIntervalBuilder_ == null) { if (loadReportInterval_ != null) { loadReportInterval_ = com.google.protobuf.Duration.newBuilder(loadReportInterval_).mergeFrom(value).buildPartial(); } else { loadReportInterval_ = value; } onChanged(); } else { loadReportIntervalBuilder_.mergeFrom(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*.
     * 
* * .google.protobuf.Duration load_report_interval = 4; */ public Builder clearLoadReportInterval() { if (loadReportIntervalBuilder_ == null) { loadReportInterval_ = null; onChanged(); } else { loadReportInterval_ = null; loadReportIntervalBuilder_ = null; } 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*.
     * 
* * .google.protobuf.Duration load_report_interval = 4; */ public com.google.protobuf.Duration.Builder getLoadReportIntervalBuilder() { onChanged(); return getLoadReportIntervalFieldBuilder().getBuilder(); } /** *
     * 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 com.google.protobuf.DurationOrBuilder getLoadReportIntervalOrBuilder() { if (loadReportIntervalBuilder_ != null) { return loadReportIntervalBuilder_.getMessageOrBuilder(); } else { return loadReportInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : 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; */ 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.api.v2.endpoint.ClusterStats) } // @@protoc_insertion_point(class_scope:envoy.api.v2.endpoint.ClusterStats) private static final io.envoyproxy.envoy.api.v2.endpoint.ClusterStats DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.api.v2.endpoint.ClusterStats(); } public static io.envoyproxy.envoy.api.v2.endpoint.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.api.v2.endpoint.ClusterStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy