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

io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats 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;

/**
 * 
 * These are stats Envoy reports to the management server at a frequency defined by
 * :ref:`LoadStatsResponse.load_reporting_interval<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.load_reporting_interval>`.
 * Stats per upstream region/zone and optionally per subzone.
 * [#next-free-field: 15]
 * 
* * Protobuf type {@code envoy.config.endpoint.v3.UpstreamLocalityStats} */ public final class UpstreamLocalityStats extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.endpoint.v3.UpstreamLocalityStats) UpstreamLocalityStatsOrBuilder { private static final long serialVersionUID = 0L; // Use UpstreamLocalityStats.newBuilder() to construct. private UpstreamLocalityStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpstreamLocalityStats() { loadMetricStats_ = java.util.Collections.emptyList(); upstreamEndpointStats_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UpstreamLocalityStats(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.endpoint.v3.LoadReportProto.internal_static_envoy_config_endpoint_v3_UpstreamLocalityStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.endpoint.v3.LoadReportProto.internal_static_envoy_config_endpoint_v3_UpstreamLocalityStats_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats.class, io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats.Builder.class); } private int bitField0_; public static final int LOCALITY_FIELD_NUMBER = 1; private io.envoyproxy.envoy.config.core.v3.Locality locality_; /** *
   * Name of zone, region and optionally endpoint group these metrics were
   * collected from. Zone and region names could be empty if unknown.
   * 
* * .envoy.config.core.v3.Locality locality = 1; * @return Whether the locality field is set. */ @java.lang.Override public boolean hasLocality() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Name of zone, region and optionally endpoint group these metrics were
   * collected from. Zone and region names could be empty if unknown.
   * 
* * .envoy.config.core.v3.Locality locality = 1; * @return The locality. */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.Locality getLocality() { return locality_ == null ? io.envoyproxy.envoy.config.core.v3.Locality.getDefaultInstance() : locality_; } /** *
   * Name of zone, region and optionally endpoint group these metrics were
   * collected from. Zone and region names could be empty if unknown.
   * 
* * .envoy.config.core.v3.Locality locality = 1; */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.LocalityOrBuilder getLocalityOrBuilder() { return locality_ == null ? io.envoyproxy.envoy.config.core.v3.Locality.getDefaultInstance() : locality_; } 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.
   * 
* * 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
   * 
* * 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,
   * aggregated over all endpoints in the locality.
   * 
* * uint64 total_error_requests = 4; * @return The totalErrorRequests. */ @java.lang.Override public long getTotalErrorRequests() { return totalErrorRequests_; } public static final int TOTAL_ISSUED_REQUESTS_FIELD_NUMBER = 8; private long totalIssuedRequests_ = 0L; /** *
   * The total number of requests that were issued by this Envoy since
   * the last report. This information is aggregated over all the
   * upstream endpoints in the locality.
   * 
* * uint64 total_issued_requests = 8; * @return The totalIssuedRequests. */ @java.lang.Override public long getTotalIssuedRequests() { return totalIssuedRequests_; } public static final int TOTAL_ACTIVE_CONNECTIONS_FIELD_NUMBER = 9; private long totalActiveConnections_ = 0L; /** *
   * The total number of connections in an established state at the time of the
   * report. This field is aggregated over all the upstream endpoints in the
   * locality.
   * In Envoy, this information may be based on ``upstream_cx_active metric``.
   * [#not-implemented-hide:]
   * 
* * uint64 total_active_connections = 9 [(.xds.annotations.v3.field_status) = { ... } * @return The totalActiveConnections. */ @java.lang.Override public long getTotalActiveConnections() { return totalActiveConnections_; } public static final int TOTAL_NEW_CONNECTIONS_FIELD_NUMBER = 10; private long totalNewConnections_ = 0L; /** *
   * The total number of connections opened since the last report.
   * This field is aggregated over all the upstream endpoints in the locality.
   * In Envoy, this information may be based on ``upstream_cx_total`` metric
   * compared to itself between start and end of an interval, i.e.
   * ``upstream_cx_total``(now) - ``upstream_cx_total``(now -
   * load_report_interval).
   * [#not-implemented-hide:]
   * 
* * uint64 total_new_connections = 10 [(.xds.annotations.v3.field_status) = { ... } * @return The totalNewConnections. */ @java.lang.Override public long getTotalNewConnections() { return totalNewConnections_; } public static final int TOTAL_FAIL_CONNECTIONS_FIELD_NUMBER = 11; private long totalFailConnections_ = 0L; /** *
   * The total number of connection failures since the last report.
   * This field is aggregated over all the upstream endpoints in the locality.
   * In Envoy, this information may be based on ``upstream_cx_connect_fail``
   * metric compared to itself between start and end of an interval, i.e.
   * ``upstream_cx_connect_fail``(now) - ``upstream_cx_connect_fail``(now -
   * load_report_interval).
   * [#not-implemented-hide:]
   * 
* * uint64 total_fail_connections = 11 [(.xds.annotations.v3.field_status) = { ... } * @return The totalFailConnections. */ @java.lang.Override public long getTotalFailConnections() { return totalFailConnections_; } public static final int CPU_UTILIZATION_FIELD_NUMBER = 12; private io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats cpuUtilization_; /** *
   * CPU utilization stats for multi-dimensional load balancing.
   * This typically comes from endpoint metrics reported via ORCA.
   * 
* * .envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats cpu_utilization = 12; * @return Whether the cpuUtilization field is set. */ @java.lang.Override public boolean hasCpuUtilization() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * CPU utilization stats for multi-dimensional load balancing.
   * This typically comes from endpoint metrics reported via ORCA.
   * 
* * .envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats cpu_utilization = 12; * @return The cpuUtilization. */ @java.lang.Override public io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats getCpuUtilization() { return cpuUtilization_ == null ? io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats.getDefaultInstance() : cpuUtilization_; } /** *
   * CPU utilization stats for multi-dimensional load balancing.
   * This typically comes from endpoint metrics reported via ORCA.
   * 
* * .envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats cpu_utilization = 12; */ @java.lang.Override public io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStatsOrBuilder getCpuUtilizationOrBuilder() { return cpuUtilization_ == null ? io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats.getDefaultInstance() : cpuUtilization_; } public static final int MEM_UTILIZATION_FIELD_NUMBER = 13; private io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats memUtilization_; /** *
   * Memory utilization for multi-dimensional load balancing.
   * This typically comes from endpoint metrics reported via ORCA.
   * 
* * .envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats mem_utilization = 13; * @return Whether the memUtilization field is set. */ @java.lang.Override public boolean hasMemUtilization() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * Memory utilization for multi-dimensional load balancing.
   * This typically comes from endpoint metrics reported via ORCA.
   * 
* * .envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats mem_utilization = 13; * @return The memUtilization. */ @java.lang.Override public io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats getMemUtilization() { return memUtilization_ == null ? io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats.getDefaultInstance() : memUtilization_; } /** *
   * Memory utilization for multi-dimensional load balancing.
   * This typically comes from endpoint metrics reported via ORCA.
   * 
* * .envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats mem_utilization = 13; */ @java.lang.Override public io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStatsOrBuilder getMemUtilizationOrBuilder() { return memUtilization_ == null ? io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats.getDefaultInstance() : memUtilization_; } public static final int APPLICATION_UTILIZATION_FIELD_NUMBER = 14; private io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats applicationUtilization_; /** *
   * Blended application-defined utilization for multi-dimensional load balancing.
   * This typically comes from endpoint metrics reported via ORCA.
   * 
* * .envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats application_utilization = 14; * @return Whether the applicationUtilization field is set. */ @java.lang.Override public boolean hasApplicationUtilization() { return ((bitField0_ & 0x00000008) != 0); } /** *
   * Blended application-defined utilization for multi-dimensional load balancing.
   * This typically comes from endpoint metrics reported via ORCA.
   * 
* * .envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats application_utilization = 14; * @return The applicationUtilization. */ @java.lang.Override public io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats getApplicationUtilization() { return applicationUtilization_ == null ? io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats.getDefaultInstance() : applicationUtilization_; } /** *
   * Blended application-defined utilization for multi-dimensional load balancing.
   * This typically comes from endpoint metrics reported via ORCA.
   * 
* * .envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats application_utilization = 14; */ @java.lang.Override public io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStatsOrBuilder getApplicationUtilizationOrBuilder() { return applicationUtilization_ == null ? io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats.getDefaultInstance() : applicationUtilization_; } public static final int LOAD_METRIC_STATS_FIELD_NUMBER = 5; @SuppressWarnings("serial") private java.util.List loadMetricStats_; /** *
   * Named stats for multi-dimensional load balancing.
   * These typically come from endpoint metrics reported via ORCA.
   * 
* * repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5; */ @java.lang.Override public java.util.List getLoadMetricStatsList() { return loadMetricStats_; } /** *
   * Named stats for multi-dimensional load balancing.
   * These typically come from endpoint metrics reported via ORCA.
   * 
* * repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5; */ @java.lang.Override public java.util.List getLoadMetricStatsOrBuilderList() { return loadMetricStats_; } /** *
   * Named stats for multi-dimensional load balancing.
   * These typically come from endpoint metrics reported via ORCA.
   * 
* * repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5; */ @java.lang.Override public int getLoadMetricStatsCount() { return loadMetricStats_.size(); } /** *
   * Named stats for multi-dimensional load balancing.
   * These typically come from endpoint metrics reported via ORCA.
   * 
* * 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); } /** *
   * Named stats for multi-dimensional load balancing.
   * These typically come from endpoint metrics reported via ORCA.
   * 
* * repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5; */ @java.lang.Override public io.envoyproxy.envoy.config.endpoint.v3.EndpointLoadMetricStatsOrBuilder getLoadMetricStatsOrBuilder( int index) { return loadMetricStats_.get(index); } public static final int UPSTREAM_ENDPOINT_STATS_FIELD_NUMBER = 7; @SuppressWarnings("serial") private java.util.List upstreamEndpointStats_; /** *
   * Endpoint granularity stats information for this locality. This information
   * is populated if the Server requests it by setting
   * :ref:`LoadStatsResponse.report_endpoint_granularity<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.report_endpoint_granularity>`.
   * 
* * repeated .envoy.config.endpoint.v3.UpstreamEndpointStats upstream_endpoint_stats = 7; */ @java.lang.Override public java.util.List getUpstreamEndpointStatsList() { return upstreamEndpointStats_; } /** *
   * Endpoint granularity stats information for this locality. This information
   * is populated if the Server requests it by setting
   * :ref:`LoadStatsResponse.report_endpoint_granularity<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.report_endpoint_granularity>`.
   * 
* * repeated .envoy.config.endpoint.v3.UpstreamEndpointStats upstream_endpoint_stats = 7; */ @java.lang.Override public java.util.List getUpstreamEndpointStatsOrBuilderList() { return upstreamEndpointStats_; } /** *
   * Endpoint granularity stats information for this locality. This information
   * is populated if the Server requests it by setting
   * :ref:`LoadStatsResponse.report_endpoint_granularity<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.report_endpoint_granularity>`.
   * 
* * repeated .envoy.config.endpoint.v3.UpstreamEndpointStats upstream_endpoint_stats = 7; */ @java.lang.Override public int getUpstreamEndpointStatsCount() { return upstreamEndpointStats_.size(); } /** *
   * Endpoint granularity stats information for this locality. This information
   * is populated if the Server requests it by setting
   * :ref:`LoadStatsResponse.report_endpoint_granularity<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.report_endpoint_granularity>`.
   * 
* * repeated .envoy.config.endpoint.v3.UpstreamEndpointStats upstream_endpoint_stats = 7; */ @java.lang.Override public io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats getUpstreamEndpointStats(int index) { return upstreamEndpointStats_.get(index); } /** *
   * Endpoint granularity stats information for this locality. This information
   * is populated if the Server requests it by setting
   * :ref:`LoadStatsResponse.report_endpoint_granularity<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.report_endpoint_granularity>`.
   * 
* * repeated .envoy.config.endpoint.v3.UpstreamEndpointStats upstream_endpoint_stats = 7; */ @java.lang.Override public io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStatsOrBuilder getUpstreamEndpointStatsOrBuilder( int index) { return upstreamEndpointStats_.get(index); } public static final int PRIORITY_FIELD_NUMBER = 6; private int priority_ = 0; /** *
   * [#not-implemented-hide:] The priority of the endpoint group these metrics
   * were collected from.
   * 
* * uint32 priority = 6; * @return The priority. */ @java.lang.Override public int getPriority() { return priority_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getLocality()); } if (totalSuccessfulRequests_ != 0L) { output.writeUInt64(2, totalSuccessfulRequests_); } if (totalRequestsInProgress_ != 0L) { output.writeUInt64(3, totalRequestsInProgress_); } if (totalErrorRequests_ != 0L) { output.writeUInt64(4, totalErrorRequests_); } for (int i = 0; i < loadMetricStats_.size(); i++) { output.writeMessage(5, loadMetricStats_.get(i)); } if (priority_ != 0) { output.writeUInt32(6, priority_); } for (int i = 0; i < upstreamEndpointStats_.size(); i++) { output.writeMessage(7, upstreamEndpointStats_.get(i)); } if (totalIssuedRequests_ != 0L) { output.writeUInt64(8, totalIssuedRequests_); } if (totalActiveConnections_ != 0L) { output.writeUInt64(9, totalActiveConnections_); } if (totalNewConnections_ != 0L) { output.writeUInt64(10, totalNewConnections_); } if (totalFailConnections_ != 0L) { output.writeUInt64(11, totalFailConnections_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(12, getCpuUtilization()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(13, getMemUtilization()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(14, getApplicationUtilization()); } 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, getLocality()); } if (totalSuccessfulRequests_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, totalSuccessfulRequests_); } if (totalRequestsInProgress_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, totalRequestsInProgress_); } if (totalErrorRequests_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, totalErrorRequests_); } for (int i = 0; i < loadMetricStats_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, loadMetricStats_.get(i)); } if (priority_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(6, priority_); } for (int i = 0; i < upstreamEndpointStats_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, upstreamEndpointStats_.get(i)); } if (totalIssuedRequests_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(8, totalIssuedRequests_); } if (totalActiveConnections_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(9, totalActiveConnections_); } if (totalNewConnections_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(10, totalNewConnections_); } if (totalFailConnections_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(11, totalFailConnections_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, getCpuUtilization()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, getMemUtilization()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, getApplicationUtilization()); } 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.UpstreamLocalityStats)) { return super.equals(obj); } io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats other = (io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats) obj; if (hasLocality() != other.hasLocality()) return false; if (hasLocality()) { if (!getLocality() .equals(other.getLocality())) return false; } if (getTotalSuccessfulRequests() != other.getTotalSuccessfulRequests()) return false; if (getTotalRequestsInProgress() != other.getTotalRequestsInProgress()) return false; if (getTotalErrorRequests() != other.getTotalErrorRequests()) return false; if (getTotalIssuedRequests() != other.getTotalIssuedRequests()) return false; if (getTotalActiveConnections() != other.getTotalActiveConnections()) return false; if (getTotalNewConnections() != other.getTotalNewConnections()) return false; if (getTotalFailConnections() != other.getTotalFailConnections()) return false; if (hasCpuUtilization() != other.hasCpuUtilization()) return false; if (hasCpuUtilization()) { if (!getCpuUtilization() .equals(other.getCpuUtilization())) return false; } if (hasMemUtilization() != other.hasMemUtilization()) return false; if (hasMemUtilization()) { if (!getMemUtilization() .equals(other.getMemUtilization())) return false; } if (hasApplicationUtilization() != other.hasApplicationUtilization()) return false; if (hasApplicationUtilization()) { if (!getApplicationUtilization() .equals(other.getApplicationUtilization())) return false; } if (!getLoadMetricStatsList() .equals(other.getLoadMetricStatsList())) return false; if (!getUpstreamEndpointStatsList() .equals(other.getUpstreamEndpointStatsList())) return false; if (getPriority() != other.getPriority()) 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 (hasLocality()) { hash = (37 * hash) + LOCALITY_FIELD_NUMBER; hash = (53 * hash) + getLocality().hashCode(); } hash = (37 * hash) + TOTAL_SUCCESSFUL_REQUESTS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotalSuccessfulRequests()); hash = (37 * hash) + TOTAL_REQUESTS_IN_PROGRESS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotalRequestsInProgress()); hash = (37 * hash) + TOTAL_ERROR_REQUESTS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotalErrorRequests()); hash = (37 * hash) + TOTAL_ISSUED_REQUESTS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotalIssuedRequests()); hash = (37 * hash) + TOTAL_ACTIVE_CONNECTIONS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotalActiveConnections()); hash = (37 * hash) + TOTAL_NEW_CONNECTIONS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotalNewConnections()); hash = (37 * hash) + TOTAL_FAIL_CONNECTIONS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotalFailConnections()); if (hasCpuUtilization()) { hash = (37 * hash) + CPU_UTILIZATION_FIELD_NUMBER; hash = (53 * hash) + getCpuUtilization().hashCode(); } if (hasMemUtilization()) { hash = (37 * hash) + MEM_UTILIZATION_FIELD_NUMBER; hash = (53 * hash) + getMemUtilization().hashCode(); } if (hasApplicationUtilization()) { hash = (37 * hash) + APPLICATION_UTILIZATION_FIELD_NUMBER; hash = (53 * hash) + getApplicationUtilization().hashCode(); } if (getLoadMetricStatsCount() > 0) { hash = (37 * hash) + LOAD_METRIC_STATS_FIELD_NUMBER; hash = (53 * hash) + getLoadMetricStatsList().hashCode(); } if (getUpstreamEndpointStatsCount() > 0) { hash = (37 * hash) + UPSTREAM_ENDPOINT_STATS_FIELD_NUMBER; hash = (53 * hash) + getUpstreamEndpointStatsList().hashCode(); } hash = (37 * hash) + PRIORITY_FIELD_NUMBER; hash = (53 * hash) + getPriority(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * These are stats Envoy reports to the management server at a frequency defined by
   * :ref:`LoadStatsResponse.load_reporting_interval<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.load_reporting_interval>`.
   * Stats per upstream region/zone and optionally per subzone.
   * [#next-free-field: 15]
   * 
* * Protobuf type {@code envoy.config.endpoint.v3.UpstreamLocalityStats} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.endpoint.v3.UpstreamLocalityStats) io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStatsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.endpoint.v3.LoadReportProto.internal_static_envoy_config_endpoint_v3_UpstreamLocalityStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.endpoint.v3.LoadReportProto.internal_static_envoy_config_endpoint_v3_UpstreamLocalityStats_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats.class, io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats.Builder.class); } // Construct using io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getLocalityFieldBuilder(); getCpuUtilizationFieldBuilder(); getMemUtilizationFieldBuilder(); getApplicationUtilizationFieldBuilder(); getLoadMetricStatsFieldBuilder(); getUpstreamEndpointStatsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; locality_ = null; if (localityBuilder_ != null) { localityBuilder_.dispose(); localityBuilder_ = null; } totalSuccessfulRequests_ = 0L; totalRequestsInProgress_ = 0L; totalErrorRequests_ = 0L; totalIssuedRequests_ = 0L; totalActiveConnections_ = 0L; totalNewConnections_ = 0L; totalFailConnections_ = 0L; cpuUtilization_ = null; if (cpuUtilizationBuilder_ != null) { cpuUtilizationBuilder_.dispose(); cpuUtilizationBuilder_ = null; } memUtilization_ = null; if (memUtilizationBuilder_ != null) { memUtilizationBuilder_.dispose(); memUtilizationBuilder_ = null; } applicationUtilization_ = null; if (applicationUtilizationBuilder_ != null) { applicationUtilizationBuilder_.dispose(); applicationUtilizationBuilder_ = null; } if (loadMetricStatsBuilder_ == null) { loadMetricStats_ = java.util.Collections.emptyList(); } else { loadMetricStats_ = null; loadMetricStatsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000800); if (upstreamEndpointStatsBuilder_ == null) { upstreamEndpointStats_ = java.util.Collections.emptyList(); } else { upstreamEndpointStats_ = null; upstreamEndpointStatsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00001000); priority_ = 0; 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_UpstreamLocalityStats_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats getDefaultInstanceForType() { return io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats build() { io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats buildPartial() { io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats result = new io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats result) { if (loadMetricStatsBuilder_ == null) { if (((bitField0_ & 0x00000800) != 0)) { loadMetricStats_ = java.util.Collections.unmodifiableList(loadMetricStats_); bitField0_ = (bitField0_ & ~0x00000800); } result.loadMetricStats_ = loadMetricStats_; } else { result.loadMetricStats_ = loadMetricStatsBuilder_.build(); } if (upstreamEndpointStatsBuilder_ == null) { if (((bitField0_ & 0x00001000) != 0)) { upstreamEndpointStats_ = java.util.Collections.unmodifiableList(upstreamEndpointStats_); bitField0_ = (bitField0_ & ~0x00001000); } result.upstreamEndpointStats_ = upstreamEndpointStats_; } else { result.upstreamEndpointStats_ = upstreamEndpointStatsBuilder_.build(); } } private void buildPartial0(io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.locality_ = localityBuilder_ == null ? locality_ : localityBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.totalSuccessfulRequests_ = totalSuccessfulRequests_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.totalRequestsInProgress_ = totalRequestsInProgress_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.totalErrorRequests_ = totalErrorRequests_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.totalIssuedRequests_ = totalIssuedRequests_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.totalActiveConnections_ = totalActiveConnections_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.totalNewConnections_ = totalNewConnections_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.totalFailConnections_ = totalFailConnections_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.cpuUtilization_ = cpuUtilizationBuilder_ == null ? cpuUtilization_ : cpuUtilizationBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000200) != 0)) { result.memUtilization_ = memUtilizationBuilder_ == null ? memUtilization_ : memUtilizationBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000400) != 0)) { result.applicationUtilization_ = applicationUtilizationBuilder_ == null ? applicationUtilization_ : applicationUtilizationBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00002000) != 0)) { result.priority_ = priority_; } 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.UpstreamLocalityStats) { return mergeFrom((io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats other) { if (other == io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats.getDefaultInstance()) return this; if (other.hasLocality()) { mergeLocality(other.getLocality()); } 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 (other.getTotalActiveConnections() != 0L) { setTotalActiveConnections(other.getTotalActiveConnections()); } if (other.getTotalNewConnections() != 0L) { setTotalNewConnections(other.getTotalNewConnections()); } if (other.getTotalFailConnections() != 0L) { setTotalFailConnections(other.getTotalFailConnections()); } if (other.hasCpuUtilization()) { mergeCpuUtilization(other.getCpuUtilization()); } if (other.hasMemUtilization()) { mergeMemUtilization(other.getMemUtilization()); } if (other.hasApplicationUtilization()) { mergeApplicationUtilization(other.getApplicationUtilization()); } if (loadMetricStatsBuilder_ == null) { if (!other.loadMetricStats_.isEmpty()) { if (loadMetricStats_.isEmpty()) { loadMetricStats_ = other.loadMetricStats_; bitField0_ = (bitField0_ & ~0x00000800); } else { ensureLoadMetricStatsIsMutable(); loadMetricStats_.addAll(other.loadMetricStats_); } onChanged(); } } else { if (!other.loadMetricStats_.isEmpty()) { if (loadMetricStatsBuilder_.isEmpty()) { loadMetricStatsBuilder_.dispose(); loadMetricStatsBuilder_ = null; loadMetricStats_ = other.loadMetricStats_; bitField0_ = (bitField0_ & ~0x00000800); loadMetricStatsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLoadMetricStatsFieldBuilder() : null; } else { loadMetricStatsBuilder_.addAllMessages(other.loadMetricStats_); } } } if (upstreamEndpointStatsBuilder_ == null) { if (!other.upstreamEndpointStats_.isEmpty()) { if (upstreamEndpointStats_.isEmpty()) { upstreamEndpointStats_ = other.upstreamEndpointStats_; bitField0_ = (bitField0_ & ~0x00001000); } else { ensureUpstreamEndpointStatsIsMutable(); upstreamEndpointStats_.addAll(other.upstreamEndpointStats_); } onChanged(); } } else { if (!other.upstreamEndpointStats_.isEmpty()) { if (upstreamEndpointStatsBuilder_.isEmpty()) { upstreamEndpointStatsBuilder_.dispose(); upstreamEndpointStatsBuilder_ = null; upstreamEndpointStats_ = other.upstreamEndpointStats_; bitField0_ = (bitField0_ & ~0x00001000); upstreamEndpointStatsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getUpstreamEndpointStatsFieldBuilder() : null; } else { upstreamEndpointStatsBuilder_.addAllMessages(other.upstreamEndpointStats_); } } } if (other.getPriority() != 0) { setPriority(other.getPriority()); } 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( getLocalityFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 16: { totalSuccessfulRequests_ = input.readUInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { totalRequestsInProgress_ = input.readUInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { totalErrorRequests_ = input.readUInt64(); bitField0_ |= 0x00000008; 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 48: { priority_ = input.readUInt32(); bitField0_ |= 0x00002000; break; } // case 48 case 58: { io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats m = input.readMessage( io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats.parser(), extensionRegistry); if (upstreamEndpointStatsBuilder_ == null) { ensureUpstreamEndpointStatsIsMutable(); upstreamEndpointStats_.add(m); } else { upstreamEndpointStatsBuilder_.addMessage(m); } break; } // case 58 case 64: { totalIssuedRequests_ = input.readUInt64(); bitField0_ |= 0x00000010; break; } // case 64 case 72: { totalActiveConnections_ = input.readUInt64(); bitField0_ |= 0x00000020; break; } // case 72 case 80: { totalNewConnections_ = input.readUInt64(); bitField0_ |= 0x00000040; break; } // case 80 case 88: { totalFailConnections_ = input.readUInt64(); bitField0_ |= 0x00000080; break; } // case 88 case 98: { input.readMessage( getCpuUtilizationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000100; break; } // case 98 case 106: { input.readMessage( getMemUtilizationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000200; break; } // case 106 case 114: { input.readMessage( getApplicationUtilizationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000400; break; } // case 114 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.Locality locality_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.Locality, io.envoyproxy.envoy.config.core.v3.Locality.Builder, io.envoyproxy.envoy.config.core.v3.LocalityOrBuilder> localityBuilder_; /** *
     * Name of zone, region and optionally endpoint group these metrics were
     * collected from. Zone and region names could be empty if unknown.
     * 
* * .envoy.config.core.v3.Locality locality = 1; * @return Whether the locality field is set. */ public boolean hasLocality() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Name of zone, region and optionally endpoint group these metrics were
     * collected from. Zone and region names could be empty if unknown.
     * 
* * .envoy.config.core.v3.Locality locality = 1; * @return The locality. */ public io.envoyproxy.envoy.config.core.v3.Locality getLocality() { if (localityBuilder_ == null) { return locality_ == null ? io.envoyproxy.envoy.config.core.v3.Locality.getDefaultInstance() : locality_; } else { return localityBuilder_.getMessage(); } } /** *
     * Name of zone, region and optionally endpoint group these metrics were
     * collected from. Zone and region names could be empty if unknown.
     * 
* * .envoy.config.core.v3.Locality locality = 1; */ public Builder setLocality(io.envoyproxy.envoy.config.core.v3.Locality value) { if (localityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } locality_ = value; } else { localityBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Name of zone, region and optionally endpoint group these metrics were
     * collected from. Zone and region names could be empty if unknown.
     * 
* * .envoy.config.core.v3.Locality locality = 1; */ public Builder setLocality( io.envoyproxy.envoy.config.core.v3.Locality.Builder builderForValue) { if (localityBuilder_ == null) { locality_ = builderForValue.build(); } else { localityBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Name of zone, region and optionally endpoint group these metrics were
     * collected from. Zone and region names could be empty if unknown.
     * 
* * .envoy.config.core.v3.Locality locality = 1; */ public Builder mergeLocality(io.envoyproxy.envoy.config.core.v3.Locality value) { if (localityBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && locality_ != null && locality_ != io.envoyproxy.envoy.config.core.v3.Locality.getDefaultInstance()) { getLocalityBuilder().mergeFrom(value); } else { locality_ = value; } } else { localityBuilder_.mergeFrom(value); } if (locality_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     * Name of zone, region and optionally endpoint group these metrics were
     * collected from. Zone and region names could be empty if unknown.
     * 
* * .envoy.config.core.v3.Locality locality = 1; */ public Builder clearLocality() { bitField0_ = (bitField0_ & ~0x00000001); locality_ = null; if (localityBuilder_ != null) { localityBuilder_.dispose(); localityBuilder_ = null; } onChanged(); return this; } /** *
     * Name of zone, region and optionally endpoint group these metrics were
     * collected from. Zone and region names could be empty if unknown.
     * 
* * .envoy.config.core.v3.Locality locality = 1; */ public io.envoyproxy.envoy.config.core.v3.Locality.Builder getLocalityBuilder() { bitField0_ |= 0x00000001; onChanged(); return getLocalityFieldBuilder().getBuilder(); } /** *
     * Name of zone, region and optionally endpoint group these metrics were
     * collected from. Zone and region names could be empty if unknown.
     * 
* * .envoy.config.core.v3.Locality locality = 1; */ public io.envoyproxy.envoy.config.core.v3.LocalityOrBuilder getLocalityOrBuilder() { if (localityBuilder_ != null) { return localityBuilder_.getMessageOrBuilder(); } else { return locality_ == null ? io.envoyproxy.envoy.config.core.v3.Locality.getDefaultInstance() : locality_; } } /** *
     * Name of zone, region and optionally endpoint group these metrics were
     * collected from. Zone and region names could be empty if unknown.
     * 
* * .envoy.config.core.v3.Locality locality = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.Locality, io.envoyproxy.envoy.config.core.v3.Locality.Builder, io.envoyproxy.envoy.config.core.v3.LocalityOrBuilder> getLocalityFieldBuilder() { if (localityBuilder_ == null) { localityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.Locality, io.envoyproxy.envoy.config.core.v3.Locality.Builder, io.envoyproxy.envoy.config.core.v3.LocalityOrBuilder>( getLocality(), getParentForChildren(), isClean()); locality_ = null; } return localityBuilder_; } private long totalSuccessfulRequests_ ; /** *
     * The total number of requests successfully completed by the endpoints in the
     * locality.
     * 
* * uint64 total_successful_requests = 2; * @return The totalSuccessfulRequests. */ @java.lang.Override public long getTotalSuccessfulRequests() { return totalSuccessfulRequests_; } /** *
     * The total number of requests successfully completed by the endpoints in the
     * locality.
     * 
* * uint64 total_successful_requests = 2; * @param value The totalSuccessfulRequests to set. * @return This builder for chaining. */ public Builder setTotalSuccessfulRequests(long value) { totalSuccessfulRequests_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The total number of requests successfully completed by the endpoints in the
     * locality.
     * 
* * uint64 total_successful_requests = 2; * @return This builder for chaining. */ public Builder clearTotalSuccessfulRequests() { bitField0_ = (bitField0_ & ~0x00000002); totalSuccessfulRequests_ = 0L; onChanged(); return this; } private long totalRequestsInProgress_ ; /** *
     * The total number of unfinished requests
     * 
* * uint64 total_requests_in_progress = 3; * @return The totalRequestsInProgress. */ @java.lang.Override public long getTotalRequestsInProgress() { return totalRequestsInProgress_; } /** *
     * The total number of unfinished requests
     * 
* * uint64 total_requests_in_progress = 3; * @param value The totalRequestsInProgress to set. * @return This builder for chaining. */ public Builder setTotalRequestsInProgress(long value) { totalRequestsInProgress_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The total number of unfinished requests
     * 
* * uint64 total_requests_in_progress = 3; * @return This builder for chaining. */ public Builder clearTotalRequestsInProgress() { bitField0_ = (bitField0_ & ~0x00000004); totalRequestsInProgress_ = 0L; onChanged(); return this; } private long totalErrorRequests_ ; /** *
     * The total number of requests that failed due to errors at the endpoint,
     * aggregated over all endpoints in the locality.
     * 
* * uint64 total_error_requests = 4; * @return The totalErrorRequests. */ @java.lang.Override public long getTotalErrorRequests() { return totalErrorRequests_; } /** *
     * The total number of requests that failed due to errors at the endpoint,
     * aggregated over all endpoints in the locality.
     * 
* * uint64 total_error_requests = 4; * @param value The totalErrorRequests to set. * @return This builder for chaining. */ public Builder setTotalErrorRequests(long value) { totalErrorRequests_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * The total number of requests that failed due to errors at the endpoint,
     * aggregated over all endpoints in the locality.
     * 
* * uint64 total_error_requests = 4; * @return This builder for chaining. */ public Builder clearTotalErrorRequests() { bitField0_ = (bitField0_ & ~0x00000008); totalErrorRequests_ = 0L; onChanged(); return this; } private long totalIssuedRequests_ ; /** *
     * The total number of requests that were issued by this Envoy since
     * the last report. This information is aggregated over all the
     * upstream endpoints in the locality.
     * 
* * uint64 total_issued_requests = 8; * @return The totalIssuedRequests. */ @java.lang.Override public long getTotalIssuedRequests() { return totalIssuedRequests_; } /** *
     * The total number of requests that were issued by this Envoy since
     * the last report. This information is aggregated over all the
     * upstream endpoints in the locality.
     * 
* * uint64 total_issued_requests = 8; * @param value The totalIssuedRequests to set. * @return This builder for chaining. */ public Builder setTotalIssuedRequests(long value) { totalIssuedRequests_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * The total number of requests that were issued by this Envoy since
     * the last report. This information is aggregated over all the
     * upstream endpoints in the locality.
     * 
* * uint64 total_issued_requests = 8; * @return This builder for chaining. */ public Builder clearTotalIssuedRequests() { bitField0_ = (bitField0_ & ~0x00000010); totalIssuedRequests_ = 0L; onChanged(); return this; } private long totalActiveConnections_ ; /** *
     * The total number of connections in an established state at the time of the
     * report. This field is aggregated over all the upstream endpoints in the
     * locality.
     * In Envoy, this information may be based on ``upstream_cx_active metric``.
     * [#not-implemented-hide:]
     * 
* * uint64 total_active_connections = 9 [(.xds.annotations.v3.field_status) = { ... } * @return The totalActiveConnections. */ @java.lang.Override public long getTotalActiveConnections() { return totalActiveConnections_; } /** *
     * The total number of connections in an established state at the time of the
     * report. This field is aggregated over all the upstream endpoints in the
     * locality.
     * In Envoy, this information may be based on ``upstream_cx_active metric``.
     * [#not-implemented-hide:]
     * 
* * uint64 total_active_connections = 9 [(.xds.annotations.v3.field_status) = { ... } * @param value The totalActiveConnections to set. * @return This builder for chaining. */ public Builder setTotalActiveConnections(long value) { totalActiveConnections_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * The total number of connections in an established state at the time of the
     * report. This field is aggregated over all the upstream endpoints in the
     * locality.
     * In Envoy, this information may be based on ``upstream_cx_active metric``.
     * [#not-implemented-hide:]
     * 
* * uint64 total_active_connections = 9 [(.xds.annotations.v3.field_status) = { ... } * @return This builder for chaining. */ public Builder clearTotalActiveConnections() { bitField0_ = (bitField0_ & ~0x00000020); totalActiveConnections_ = 0L; onChanged(); return this; } private long totalNewConnections_ ; /** *
     * The total number of connections opened since the last report.
     * This field is aggregated over all the upstream endpoints in the locality.
     * In Envoy, this information may be based on ``upstream_cx_total`` metric
     * compared to itself between start and end of an interval, i.e.
     * ``upstream_cx_total``(now) - ``upstream_cx_total``(now -
     * load_report_interval).
     * [#not-implemented-hide:]
     * 
* * uint64 total_new_connections = 10 [(.xds.annotations.v3.field_status) = { ... } * @return The totalNewConnections. */ @java.lang.Override public long getTotalNewConnections() { return totalNewConnections_; } /** *
     * The total number of connections opened since the last report.
     * This field is aggregated over all the upstream endpoints in the locality.
     * In Envoy, this information may be based on ``upstream_cx_total`` metric
     * compared to itself between start and end of an interval, i.e.
     * ``upstream_cx_total``(now) - ``upstream_cx_total``(now -
     * load_report_interval).
     * [#not-implemented-hide:]
     * 
* * uint64 total_new_connections = 10 [(.xds.annotations.v3.field_status) = { ... } * @param value The totalNewConnections to set. * @return This builder for chaining. */ public Builder setTotalNewConnections(long value) { totalNewConnections_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * The total number of connections opened since the last report.
     * This field is aggregated over all the upstream endpoints in the locality.
     * In Envoy, this information may be based on ``upstream_cx_total`` metric
     * compared to itself between start and end of an interval, i.e.
     * ``upstream_cx_total``(now) - ``upstream_cx_total``(now -
     * load_report_interval).
     * [#not-implemented-hide:]
     * 
* * uint64 total_new_connections = 10 [(.xds.annotations.v3.field_status) = { ... } * @return This builder for chaining. */ public Builder clearTotalNewConnections() { bitField0_ = (bitField0_ & ~0x00000040); totalNewConnections_ = 0L; onChanged(); return this; } private long totalFailConnections_ ; /** *
     * The total number of connection failures since the last report.
     * This field is aggregated over all the upstream endpoints in the locality.
     * In Envoy, this information may be based on ``upstream_cx_connect_fail``
     * metric compared to itself between start and end of an interval, i.e.
     * ``upstream_cx_connect_fail``(now) - ``upstream_cx_connect_fail``(now -
     * load_report_interval).
     * [#not-implemented-hide:]
     * 
* * uint64 total_fail_connections = 11 [(.xds.annotations.v3.field_status) = { ... } * @return The totalFailConnections. */ @java.lang.Override public long getTotalFailConnections() { return totalFailConnections_; } /** *
     * The total number of connection failures since the last report.
     * This field is aggregated over all the upstream endpoints in the locality.
     * In Envoy, this information may be based on ``upstream_cx_connect_fail``
     * metric compared to itself between start and end of an interval, i.e.
     * ``upstream_cx_connect_fail``(now) - ``upstream_cx_connect_fail``(now -
     * load_report_interval).
     * [#not-implemented-hide:]
     * 
* * uint64 total_fail_connections = 11 [(.xds.annotations.v3.field_status) = { ... } * @param value The totalFailConnections to set. * @return This builder for chaining. */ public Builder setTotalFailConnections(long value) { totalFailConnections_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     * The total number of connection failures since the last report.
     * This field is aggregated over all the upstream endpoints in the locality.
     * In Envoy, this information may be based on ``upstream_cx_connect_fail``
     * metric compared to itself between start and end of an interval, i.e.
     * ``upstream_cx_connect_fail``(now) - ``upstream_cx_connect_fail``(now -
     * load_report_interval).
     * [#not-implemented-hide:]
     * 
* * uint64 total_fail_connections = 11 [(.xds.annotations.v3.field_status) = { ... } * @return This builder for chaining. */ public Builder clearTotalFailConnections() { bitField0_ = (bitField0_ & ~0x00000080); totalFailConnections_ = 0L; onChanged(); return this; } private io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats cpuUtilization_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats, io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats.Builder, io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStatsOrBuilder> cpuUtilizationBuilder_; /** *
     * CPU utilization stats for multi-dimensional load balancing.
     * This typically comes from endpoint metrics reported via ORCA.
     * 
* * .envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats cpu_utilization = 12; * @return Whether the cpuUtilization field is set. */ public boolean hasCpuUtilization() { return ((bitField0_ & 0x00000100) != 0); } /** *
     * CPU utilization stats for multi-dimensional load balancing.
     * This typically comes from endpoint metrics reported via ORCA.
     * 
* * .envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats cpu_utilization = 12; * @return The cpuUtilization. */ public io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats getCpuUtilization() { if (cpuUtilizationBuilder_ == null) { return cpuUtilization_ == null ? io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats.getDefaultInstance() : cpuUtilization_; } else { return cpuUtilizationBuilder_.getMessage(); } } /** *
     * CPU utilization stats for multi-dimensional load balancing.
     * This typically comes from endpoint metrics reported via ORCA.
     * 
* * .envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats cpu_utilization = 12; */ public Builder setCpuUtilization(io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats value) { if (cpuUtilizationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cpuUtilization_ = value; } else { cpuUtilizationBuilder_.setMessage(value); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     * CPU utilization stats for multi-dimensional load balancing.
     * This typically comes from endpoint metrics reported via ORCA.
     * 
* * .envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats cpu_utilization = 12; */ public Builder setCpuUtilization( io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats.Builder builderForValue) { if (cpuUtilizationBuilder_ == null) { cpuUtilization_ = builderForValue.build(); } else { cpuUtilizationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     * CPU utilization stats for multi-dimensional load balancing.
     * This typically comes from endpoint metrics reported via ORCA.
     * 
* * .envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats cpu_utilization = 12; */ public Builder mergeCpuUtilization(io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats value) { if (cpuUtilizationBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0) && cpuUtilization_ != null && cpuUtilization_ != io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats.getDefaultInstance()) { getCpuUtilizationBuilder().mergeFrom(value); } else { cpuUtilization_ = value; } } else { cpuUtilizationBuilder_.mergeFrom(value); } if (cpuUtilization_ != null) { bitField0_ |= 0x00000100; onChanged(); } return this; } /** *
     * CPU utilization stats for multi-dimensional load balancing.
     * This typically comes from endpoint metrics reported via ORCA.
     * 
* * .envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats cpu_utilization = 12; */ public Builder clearCpuUtilization() { bitField0_ = (bitField0_ & ~0x00000100); cpuUtilization_ = null; if (cpuUtilizationBuilder_ != null) { cpuUtilizationBuilder_.dispose(); cpuUtilizationBuilder_ = null; } onChanged(); return this; } /** *
     * CPU utilization stats for multi-dimensional load balancing.
     * This typically comes from endpoint metrics reported via ORCA.
     * 
* * .envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats cpu_utilization = 12; */ public io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats.Builder getCpuUtilizationBuilder() { bitField0_ |= 0x00000100; onChanged(); return getCpuUtilizationFieldBuilder().getBuilder(); } /** *
     * CPU utilization stats for multi-dimensional load balancing.
     * This typically comes from endpoint metrics reported via ORCA.
     * 
* * .envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats cpu_utilization = 12; */ public io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStatsOrBuilder getCpuUtilizationOrBuilder() { if (cpuUtilizationBuilder_ != null) { return cpuUtilizationBuilder_.getMessageOrBuilder(); } else { return cpuUtilization_ == null ? io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats.getDefaultInstance() : cpuUtilization_; } } /** *
     * CPU utilization stats for multi-dimensional load balancing.
     * This typically comes from endpoint metrics reported via ORCA.
     * 
* * .envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats cpu_utilization = 12; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats, io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats.Builder, io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStatsOrBuilder> getCpuUtilizationFieldBuilder() { if (cpuUtilizationBuilder_ == null) { cpuUtilizationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats, io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats.Builder, io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStatsOrBuilder>( getCpuUtilization(), getParentForChildren(), isClean()); cpuUtilization_ = null; } return cpuUtilizationBuilder_; } private io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats memUtilization_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats, io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats.Builder, io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStatsOrBuilder> memUtilizationBuilder_; /** *
     * Memory utilization for multi-dimensional load balancing.
     * This typically comes from endpoint metrics reported via ORCA.
     * 
* * .envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats mem_utilization = 13; * @return Whether the memUtilization field is set. */ public boolean hasMemUtilization() { return ((bitField0_ & 0x00000200) != 0); } /** *
     * Memory utilization for multi-dimensional load balancing.
     * This typically comes from endpoint metrics reported via ORCA.
     * 
* * .envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats mem_utilization = 13; * @return The memUtilization. */ public io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats getMemUtilization() { if (memUtilizationBuilder_ == null) { return memUtilization_ == null ? io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats.getDefaultInstance() : memUtilization_; } else { return memUtilizationBuilder_.getMessage(); } } /** *
     * Memory utilization for multi-dimensional load balancing.
     * This typically comes from endpoint metrics reported via ORCA.
     * 
* * .envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats mem_utilization = 13; */ public Builder setMemUtilization(io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats value) { if (memUtilizationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } memUtilization_ = value; } else { memUtilizationBuilder_.setMessage(value); } bitField0_ |= 0x00000200; onChanged(); return this; } /** *
     * Memory utilization for multi-dimensional load balancing.
     * This typically comes from endpoint metrics reported via ORCA.
     * 
* * .envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats mem_utilization = 13; */ public Builder setMemUtilization( io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats.Builder builderForValue) { if (memUtilizationBuilder_ == null) { memUtilization_ = builderForValue.build(); } else { memUtilizationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; onChanged(); return this; } /** *
     * Memory utilization for multi-dimensional load balancing.
     * This typically comes from endpoint metrics reported via ORCA.
     * 
* * .envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats mem_utilization = 13; */ public Builder mergeMemUtilization(io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats value) { if (memUtilizationBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0) && memUtilization_ != null && memUtilization_ != io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats.getDefaultInstance()) { getMemUtilizationBuilder().mergeFrom(value); } else { memUtilization_ = value; } } else { memUtilizationBuilder_.mergeFrom(value); } if (memUtilization_ != null) { bitField0_ |= 0x00000200; onChanged(); } return this; } /** *
     * Memory utilization for multi-dimensional load balancing.
     * This typically comes from endpoint metrics reported via ORCA.
     * 
* * .envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats mem_utilization = 13; */ public Builder clearMemUtilization() { bitField0_ = (bitField0_ & ~0x00000200); memUtilization_ = null; if (memUtilizationBuilder_ != null) { memUtilizationBuilder_.dispose(); memUtilizationBuilder_ = null; } onChanged(); return this; } /** *
     * Memory utilization for multi-dimensional load balancing.
     * This typically comes from endpoint metrics reported via ORCA.
     * 
* * .envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats mem_utilization = 13; */ public io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats.Builder getMemUtilizationBuilder() { bitField0_ |= 0x00000200; onChanged(); return getMemUtilizationFieldBuilder().getBuilder(); } /** *
     * Memory utilization for multi-dimensional load balancing.
     * This typically comes from endpoint metrics reported via ORCA.
     * 
* * .envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats mem_utilization = 13; */ public io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStatsOrBuilder getMemUtilizationOrBuilder() { if (memUtilizationBuilder_ != null) { return memUtilizationBuilder_.getMessageOrBuilder(); } else { return memUtilization_ == null ? io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats.getDefaultInstance() : memUtilization_; } } /** *
     * Memory utilization for multi-dimensional load balancing.
     * This typically comes from endpoint metrics reported via ORCA.
     * 
* * .envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats mem_utilization = 13; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats, io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats.Builder, io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStatsOrBuilder> getMemUtilizationFieldBuilder() { if (memUtilizationBuilder_ == null) { memUtilizationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats, io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats.Builder, io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStatsOrBuilder>( getMemUtilization(), getParentForChildren(), isClean()); memUtilization_ = null; } return memUtilizationBuilder_; } private io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats applicationUtilization_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats, io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats.Builder, io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStatsOrBuilder> applicationUtilizationBuilder_; /** *
     * Blended application-defined utilization for multi-dimensional load balancing.
     * This typically comes from endpoint metrics reported via ORCA.
     * 
* * .envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats application_utilization = 14; * @return Whether the applicationUtilization field is set. */ public boolean hasApplicationUtilization() { return ((bitField0_ & 0x00000400) != 0); } /** *
     * Blended application-defined utilization for multi-dimensional load balancing.
     * This typically comes from endpoint metrics reported via ORCA.
     * 
* * .envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats application_utilization = 14; * @return The applicationUtilization. */ public io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats getApplicationUtilization() { if (applicationUtilizationBuilder_ == null) { return applicationUtilization_ == null ? io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats.getDefaultInstance() : applicationUtilization_; } else { return applicationUtilizationBuilder_.getMessage(); } } /** *
     * Blended application-defined utilization for multi-dimensional load balancing.
     * This typically comes from endpoint metrics reported via ORCA.
     * 
* * .envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats application_utilization = 14; */ public Builder setApplicationUtilization(io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats value) { if (applicationUtilizationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } applicationUtilization_ = value; } else { applicationUtilizationBuilder_.setMessage(value); } bitField0_ |= 0x00000400; onChanged(); return this; } /** *
     * Blended application-defined utilization for multi-dimensional load balancing.
     * This typically comes from endpoint metrics reported via ORCA.
     * 
* * .envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats application_utilization = 14; */ public Builder setApplicationUtilization( io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats.Builder builderForValue) { if (applicationUtilizationBuilder_ == null) { applicationUtilization_ = builderForValue.build(); } else { applicationUtilizationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000400; onChanged(); return this; } /** *
     * Blended application-defined utilization for multi-dimensional load balancing.
     * This typically comes from endpoint metrics reported via ORCA.
     * 
* * .envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats application_utilization = 14; */ public Builder mergeApplicationUtilization(io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats value) { if (applicationUtilizationBuilder_ == null) { if (((bitField0_ & 0x00000400) != 0) && applicationUtilization_ != null && applicationUtilization_ != io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats.getDefaultInstance()) { getApplicationUtilizationBuilder().mergeFrom(value); } else { applicationUtilization_ = value; } } else { applicationUtilizationBuilder_.mergeFrom(value); } if (applicationUtilization_ != null) { bitField0_ |= 0x00000400; onChanged(); } return this; } /** *
     * Blended application-defined utilization for multi-dimensional load balancing.
     * This typically comes from endpoint metrics reported via ORCA.
     * 
* * .envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats application_utilization = 14; */ public Builder clearApplicationUtilization() { bitField0_ = (bitField0_ & ~0x00000400); applicationUtilization_ = null; if (applicationUtilizationBuilder_ != null) { applicationUtilizationBuilder_.dispose(); applicationUtilizationBuilder_ = null; } onChanged(); return this; } /** *
     * Blended application-defined utilization for multi-dimensional load balancing.
     * This typically comes from endpoint metrics reported via ORCA.
     * 
* * .envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats application_utilization = 14; */ public io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats.Builder getApplicationUtilizationBuilder() { bitField0_ |= 0x00000400; onChanged(); return getApplicationUtilizationFieldBuilder().getBuilder(); } /** *
     * Blended application-defined utilization for multi-dimensional load balancing.
     * This typically comes from endpoint metrics reported via ORCA.
     * 
* * .envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats application_utilization = 14; */ public io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStatsOrBuilder getApplicationUtilizationOrBuilder() { if (applicationUtilizationBuilder_ != null) { return applicationUtilizationBuilder_.getMessageOrBuilder(); } else { return applicationUtilization_ == null ? io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats.getDefaultInstance() : applicationUtilization_; } } /** *
     * Blended application-defined utilization for multi-dimensional load balancing.
     * This typically comes from endpoint metrics reported via ORCA.
     * 
* * .envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats application_utilization = 14; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats, io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats.Builder, io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStatsOrBuilder> getApplicationUtilizationFieldBuilder() { if (applicationUtilizationBuilder_ == null) { applicationUtilizationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats, io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats.Builder, io.envoyproxy.envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStatsOrBuilder>( getApplicationUtilization(), getParentForChildren(), isClean()); applicationUtilization_ = null; } return applicationUtilizationBuilder_; } private java.util.List loadMetricStats_ = java.util.Collections.emptyList(); private void ensureLoadMetricStatsIsMutable() { if (!((bitField0_ & 0x00000800) != 0)) { loadMetricStats_ = new java.util.ArrayList(loadMetricStats_); bitField0_ |= 0x00000800; } } 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_; /** *
     * Named stats for multi-dimensional load balancing.
     * These typically come from endpoint metrics reported via ORCA.
     * 
* * 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(); } } /** *
     * Named stats for multi-dimensional load balancing.
     * These typically come from endpoint metrics reported via ORCA.
     * 
* * repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5; */ public int getLoadMetricStatsCount() { if (loadMetricStatsBuilder_ == null) { return loadMetricStats_.size(); } else { return loadMetricStatsBuilder_.getCount(); } } /** *
     * Named stats for multi-dimensional load balancing.
     * These typically come from endpoint metrics reported via ORCA.
     * 
* * 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); } } /** *
     * Named stats for multi-dimensional load balancing.
     * These typically come from endpoint metrics reported via ORCA.
     * 
* * 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; } /** *
     * Named stats for multi-dimensional load balancing.
     * These typically come from endpoint metrics reported via ORCA.
     * 
* * 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; } /** *
     * Named stats for multi-dimensional load balancing.
     * These typically come from endpoint metrics reported via ORCA.
     * 
* * 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; } /** *
     * Named stats for multi-dimensional load balancing.
     * These typically come from endpoint metrics reported via ORCA.
     * 
* * 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; } /** *
     * Named stats for multi-dimensional load balancing.
     * These typically come from endpoint metrics reported via ORCA.
     * 
* * 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; } /** *
     * Named stats for multi-dimensional load balancing.
     * These typically come from endpoint metrics reported via ORCA.
     * 
* * 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; } /** *
     * Named stats for multi-dimensional load balancing.
     * These typically come from endpoint metrics reported via ORCA.
     * 
* * 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; } /** *
     * Named stats for multi-dimensional load balancing.
     * These typically come from endpoint metrics reported via ORCA.
     * 
* * repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5; */ public Builder clearLoadMetricStats() { if (loadMetricStatsBuilder_ == null) { loadMetricStats_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000800); onChanged(); } else { loadMetricStatsBuilder_.clear(); } return this; } /** *
     * Named stats for multi-dimensional load balancing.
     * These typically come from endpoint metrics reported via ORCA.
     * 
* * 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; } /** *
     * Named stats for multi-dimensional load balancing.
     * These typically come from endpoint metrics reported via ORCA.
     * 
* * 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); } /** *
     * Named stats for multi-dimensional load balancing.
     * These typically come from endpoint metrics reported via ORCA.
     * 
* * 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); } } /** *
     * Named stats for multi-dimensional load balancing.
     * These typically come from endpoint metrics reported via ORCA.
     * 
* * 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_); } } /** *
     * Named stats for multi-dimensional load balancing.
     * These typically come from endpoint metrics reported via ORCA.
     * 
* * 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()); } /** *
     * Named stats for multi-dimensional load balancing.
     * These typically come from endpoint metrics reported via ORCA.
     * 
* * 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()); } /** *
     * Named stats for multi-dimensional load balancing.
     * These typically come from endpoint metrics reported via ORCA.
     * 
* * 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_ & 0x00000800) != 0), getParentForChildren(), isClean()); loadMetricStats_ = null; } return loadMetricStatsBuilder_; } private java.util.List upstreamEndpointStats_ = java.util.Collections.emptyList(); private void ensureUpstreamEndpointStatsIsMutable() { if (!((bitField0_ & 0x00001000) != 0)) { upstreamEndpointStats_ = new java.util.ArrayList(upstreamEndpointStats_); bitField0_ |= 0x00001000; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats, io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats.Builder, io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStatsOrBuilder> upstreamEndpointStatsBuilder_; /** *
     * Endpoint granularity stats information for this locality. This information
     * is populated if the Server requests it by setting
     * :ref:`LoadStatsResponse.report_endpoint_granularity<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.report_endpoint_granularity>`.
     * 
* * repeated .envoy.config.endpoint.v3.UpstreamEndpointStats upstream_endpoint_stats = 7; */ public java.util.List getUpstreamEndpointStatsList() { if (upstreamEndpointStatsBuilder_ == null) { return java.util.Collections.unmodifiableList(upstreamEndpointStats_); } else { return upstreamEndpointStatsBuilder_.getMessageList(); } } /** *
     * Endpoint granularity stats information for this locality. This information
     * is populated if the Server requests it by setting
     * :ref:`LoadStatsResponse.report_endpoint_granularity<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.report_endpoint_granularity>`.
     * 
* * repeated .envoy.config.endpoint.v3.UpstreamEndpointStats upstream_endpoint_stats = 7; */ public int getUpstreamEndpointStatsCount() { if (upstreamEndpointStatsBuilder_ == null) { return upstreamEndpointStats_.size(); } else { return upstreamEndpointStatsBuilder_.getCount(); } } /** *
     * Endpoint granularity stats information for this locality. This information
     * is populated if the Server requests it by setting
     * :ref:`LoadStatsResponse.report_endpoint_granularity<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.report_endpoint_granularity>`.
     * 
* * repeated .envoy.config.endpoint.v3.UpstreamEndpointStats upstream_endpoint_stats = 7; */ public io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats getUpstreamEndpointStats(int index) { if (upstreamEndpointStatsBuilder_ == null) { return upstreamEndpointStats_.get(index); } else { return upstreamEndpointStatsBuilder_.getMessage(index); } } /** *
     * Endpoint granularity stats information for this locality. This information
     * is populated if the Server requests it by setting
     * :ref:`LoadStatsResponse.report_endpoint_granularity<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.report_endpoint_granularity>`.
     * 
* * repeated .envoy.config.endpoint.v3.UpstreamEndpointStats upstream_endpoint_stats = 7; */ public Builder setUpstreamEndpointStats( int index, io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats value) { if (upstreamEndpointStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUpstreamEndpointStatsIsMutable(); upstreamEndpointStats_.set(index, value); onChanged(); } else { upstreamEndpointStatsBuilder_.setMessage(index, value); } return this; } /** *
     * Endpoint granularity stats information for this locality. This information
     * is populated if the Server requests it by setting
     * :ref:`LoadStatsResponse.report_endpoint_granularity<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.report_endpoint_granularity>`.
     * 
* * repeated .envoy.config.endpoint.v3.UpstreamEndpointStats upstream_endpoint_stats = 7; */ public Builder setUpstreamEndpointStats( int index, io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats.Builder builderForValue) { if (upstreamEndpointStatsBuilder_ == null) { ensureUpstreamEndpointStatsIsMutable(); upstreamEndpointStats_.set(index, builderForValue.build()); onChanged(); } else { upstreamEndpointStatsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Endpoint granularity stats information for this locality. This information
     * is populated if the Server requests it by setting
     * :ref:`LoadStatsResponse.report_endpoint_granularity<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.report_endpoint_granularity>`.
     * 
* * repeated .envoy.config.endpoint.v3.UpstreamEndpointStats upstream_endpoint_stats = 7; */ public Builder addUpstreamEndpointStats(io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats value) { if (upstreamEndpointStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUpstreamEndpointStatsIsMutable(); upstreamEndpointStats_.add(value); onChanged(); } else { upstreamEndpointStatsBuilder_.addMessage(value); } return this; } /** *
     * Endpoint granularity stats information for this locality. This information
     * is populated if the Server requests it by setting
     * :ref:`LoadStatsResponse.report_endpoint_granularity<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.report_endpoint_granularity>`.
     * 
* * repeated .envoy.config.endpoint.v3.UpstreamEndpointStats upstream_endpoint_stats = 7; */ public Builder addUpstreamEndpointStats( int index, io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats value) { if (upstreamEndpointStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUpstreamEndpointStatsIsMutable(); upstreamEndpointStats_.add(index, value); onChanged(); } else { upstreamEndpointStatsBuilder_.addMessage(index, value); } return this; } /** *
     * Endpoint granularity stats information for this locality. This information
     * is populated if the Server requests it by setting
     * :ref:`LoadStatsResponse.report_endpoint_granularity<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.report_endpoint_granularity>`.
     * 
* * repeated .envoy.config.endpoint.v3.UpstreamEndpointStats upstream_endpoint_stats = 7; */ public Builder addUpstreamEndpointStats( io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats.Builder builderForValue) { if (upstreamEndpointStatsBuilder_ == null) { ensureUpstreamEndpointStatsIsMutable(); upstreamEndpointStats_.add(builderForValue.build()); onChanged(); } else { upstreamEndpointStatsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Endpoint granularity stats information for this locality. This information
     * is populated if the Server requests it by setting
     * :ref:`LoadStatsResponse.report_endpoint_granularity<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.report_endpoint_granularity>`.
     * 
* * repeated .envoy.config.endpoint.v3.UpstreamEndpointStats upstream_endpoint_stats = 7; */ public Builder addUpstreamEndpointStats( int index, io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats.Builder builderForValue) { if (upstreamEndpointStatsBuilder_ == null) { ensureUpstreamEndpointStatsIsMutable(); upstreamEndpointStats_.add(index, builderForValue.build()); onChanged(); } else { upstreamEndpointStatsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Endpoint granularity stats information for this locality. This information
     * is populated if the Server requests it by setting
     * :ref:`LoadStatsResponse.report_endpoint_granularity<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.report_endpoint_granularity>`.
     * 
* * repeated .envoy.config.endpoint.v3.UpstreamEndpointStats upstream_endpoint_stats = 7; */ public Builder addAllUpstreamEndpointStats( java.lang.Iterable values) { if (upstreamEndpointStatsBuilder_ == null) { ensureUpstreamEndpointStatsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, upstreamEndpointStats_); onChanged(); } else { upstreamEndpointStatsBuilder_.addAllMessages(values); } return this; } /** *
     * Endpoint granularity stats information for this locality. This information
     * is populated if the Server requests it by setting
     * :ref:`LoadStatsResponse.report_endpoint_granularity<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.report_endpoint_granularity>`.
     * 
* * repeated .envoy.config.endpoint.v3.UpstreamEndpointStats upstream_endpoint_stats = 7; */ public Builder clearUpstreamEndpointStats() { if (upstreamEndpointStatsBuilder_ == null) { upstreamEndpointStats_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00001000); onChanged(); } else { upstreamEndpointStatsBuilder_.clear(); } return this; } /** *
     * Endpoint granularity stats information for this locality. This information
     * is populated if the Server requests it by setting
     * :ref:`LoadStatsResponse.report_endpoint_granularity<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.report_endpoint_granularity>`.
     * 
* * repeated .envoy.config.endpoint.v3.UpstreamEndpointStats upstream_endpoint_stats = 7; */ public Builder removeUpstreamEndpointStats(int index) { if (upstreamEndpointStatsBuilder_ == null) { ensureUpstreamEndpointStatsIsMutable(); upstreamEndpointStats_.remove(index); onChanged(); } else { upstreamEndpointStatsBuilder_.remove(index); } return this; } /** *
     * Endpoint granularity stats information for this locality. This information
     * is populated if the Server requests it by setting
     * :ref:`LoadStatsResponse.report_endpoint_granularity<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.report_endpoint_granularity>`.
     * 
* * repeated .envoy.config.endpoint.v3.UpstreamEndpointStats upstream_endpoint_stats = 7; */ public io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats.Builder getUpstreamEndpointStatsBuilder( int index) { return getUpstreamEndpointStatsFieldBuilder().getBuilder(index); } /** *
     * Endpoint granularity stats information for this locality. This information
     * is populated if the Server requests it by setting
     * :ref:`LoadStatsResponse.report_endpoint_granularity<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.report_endpoint_granularity>`.
     * 
* * repeated .envoy.config.endpoint.v3.UpstreamEndpointStats upstream_endpoint_stats = 7; */ public io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStatsOrBuilder getUpstreamEndpointStatsOrBuilder( int index) { if (upstreamEndpointStatsBuilder_ == null) { return upstreamEndpointStats_.get(index); } else { return upstreamEndpointStatsBuilder_.getMessageOrBuilder(index); } } /** *
     * Endpoint granularity stats information for this locality. This information
     * is populated if the Server requests it by setting
     * :ref:`LoadStatsResponse.report_endpoint_granularity<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.report_endpoint_granularity>`.
     * 
* * repeated .envoy.config.endpoint.v3.UpstreamEndpointStats upstream_endpoint_stats = 7; */ public java.util.List getUpstreamEndpointStatsOrBuilderList() { if (upstreamEndpointStatsBuilder_ != null) { return upstreamEndpointStatsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(upstreamEndpointStats_); } } /** *
     * Endpoint granularity stats information for this locality. This information
     * is populated if the Server requests it by setting
     * :ref:`LoadStatsResponse.report_endpoint_granularity<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.report_endpoint_granularity>`.
     * 
* * repeated .envoy.config.endpoint.v3.UpstreamEndpointStats upstream_endpoint_stats = 7; */ public io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats.Builder addUpstreamEndpointStatsBuilder() { return getUpstreamEndpointStatsFieldBuilder().addBuilder( io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats.getDefaultInstance()); } /** *
     * Endpoint granularity stats information for this locality. This information
     * is populated if the Server requests it by setting
     * :ref:`LoadStatsResponse.report_endpoint_granularity<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.report_endpoint_granularity>`.
     * 
* * repeated .envoy.config.endpoint.v3.UpstreamEndpointStats upstream_endpoint_stats = 7; */ public io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats.Builder addUpstreamEndpointStatsBuilder( int index) { return getUpstreamEndpointStatsFieldBuilder().addBuilder( index, io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats.getDefaultInstance()); } /** *
     * Endpoint granularity stats information for this locality. This information
     * is populated if the Server requests it by setting
     * :ref:`LoadStatsResponse.report_endpoint_granularity<envoy_v3_api_field_service.load_stats.v3.LoadStatsResponse.report_endpoint_granularity>`.
     * 
* * repeated .envoy.config.endpoint.v3.UpstreamEndpointStats upstream_endpoint_stats = 7; */ public java.util.List getUpstreamEndpointStatsBuilderList() { return getUpstreamEndpointStatsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats, io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats.Builder, io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStatsOrBuilder> getUpstreamEndpointStatsFieldBuilder() { if (upstreamEndpointStatsBuilder_ == null) { upstreamEndpointStatsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats, io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats.Builder, io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStatsOrBuilder>( upstreamEndpointStats_, ((bitField0_ & 0x00001000) != 0), getParentForChildren(), isClean()); upstreamEndpointStats_ = null; } return upstreamEndpointStatsBuilder_; } private int priority_ ; /** *
     * [#not-implemented-hide:] The priority of the endpoint group these metrics
     * were collected from.
     * 
* * uint32 priority = 6; * @return The priority. */ @java.lang.Override public int getPriority() { return priority_; } /** *
     * [#not-implemented-hide:] The priority of the endpoint group these metrics
     * were collected from.
     * 
* * uint32 priority = 6; * @param value The priority to set. * @return This builder for chaining. */ public Builder setPriority(int value) { priority_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** *
     * [#not-implemented-hide:] The priority of the endpoint group these metrics
     * were collected from.
     * 
* * uint32 priority = 6; * @return This builder for chaining. */ public Builder clearPriority() { bitField0_ = (bitField0_ & ~0x00002000); priority_ = 0; 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.config.endpoint.v3.UpstreamLocalityStats) } // @@protoc_insertion_point(class_scope:envoy.config.endpoint.v3.UpstreamLocalityStats) private static final io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats(); } public static io.envoyproxy.envoy.config.endpoint.v3.UpstreamLocalityStats getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UpstreamLocalityStats 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.UpstreamLocalityStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy