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

io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: envoy/config/endpoint/v3/load_report.proto

// Protobuf Java Version: 3.25.5
package io.envoyproxy.envoy.config.endpoint.v3;

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy