Class UpstreamEndpointStats.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<UpstreamEndpointStats.Builder>
com.google.protobuf.GeneratedMessage.Builder<UpstreamEndpointStats.Builder>
io.envoyproxy.envoy.config.endpoint.v3.UpstreamEndpointStats.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, UpstreamEndpointStatsOrBuilder, Cloneable
Enclosing class:
UpstreamEndpointStats

public static final class UpstreamEndpointStats.Builder extends com.google.protobuf.GeneratedMessage.Builder<UpstreamEndpointStats.Builder> implements UpstreamEndpointStatsOrBuilder
 [#next-free-field: 8]
 
Protobuf type envoy.config.endpoint.v3.UpstreamEndpointStats
  • Field Details

    • bitField0_

      private int bitField0_
    • address_

      private Address address_
    • addressBuilder_

      private com.google.protobuf.SingleFieldBuilder<Address,Address.Builder,AddressOrBuilder> addressBuilder_
    • metadata_

      private com.google.protobuf.Struct metadata_
    • metadataBuilder_

      private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Struct,com.google.protobuf.Struct.Builder,com.google.protobuf.StructOrBuilder> metadataBuilder_
    • totalSuccessfulRequests_

      private long totalSuccessfulRequests_
    • totalRequestsInProgress_

      private long totalRequestsInProgress_
    • totalErrorRequests_

      private long totalErrorRequests_
    • totalIssuedRequests_

      private long totalIssuedRequests_
    • loadMetricStats_

      private List<EndpointLoadMetricStats> loadMetricStats_
    • loadMetricStatsBuilder_

      private com.google.protobuf.RepeatedFieldBuilder<EndpointLoadMetricStats,EndpointLoadMetricStats.Builder,EndpointLoadMetricStatsOrBuilder> loadMetricStatsBuilder_
  • Constructor Details

    • Builder

      private Builder()
    • Builder

      private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<UpstreamEndpointStats.Builder>
    • maybeForceBuilderInitialization

      private void maybeForceBuilderInitialization()
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<UpstreamEndpointStats.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<UpstreamEndpointStats.Builder>
    • getDefaultInstanceForType

      public UpstreamEndpointStats getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public UpstreamEndpointStats build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public UpstreamEndpointStats buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • buildPartialRepeatedFields

      private void buildPartialRepeatedFields(UpstreamEndpointStats result)
    • buildPartial0

      private void buildPartial0(UpstreamEndpointStats result)
    • mergeFrom

      public UpstreamEndpointStats.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<UpstreamEndpointStats.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<UpstreamEndpointStats.Builder>
    • mergeFrom

      public UpstreamEndpointStats.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<UpstreamEndpointStats.Builder>
      Throws:
      IOException
    • hasAddress

      public boolean hasAddress()
       Upstream host address.
       
      .envoy.config.core.v3.Address address = 1;
      Specified by:
      hasAddress in interface UpstreamEndpointStatsOrBuilder
      Returns:
      Whether the address field is set.
    • getAddress

      public Address getAddress()
       Upstream host address.
       
      .envoy.config.core.v3.Address address = 1;
      Specified by:
      getAddress in interface UpstreamEndpointStatsOrBuilder
      Returns:
      The address.
    • setAddress

      public UpstreamEndpointStats.Builder setAddress(Address value)
       Upstream host address.
       
      .envoy.config.core.v3.Address address = 1;
    • setAddress

      public UpstreamEndpointStats.Builder setAddress(Address.Builder builderForValue)
       Upstream host address.
       
      .envoy.config.core.v3.Address address = 1;
    • mergeAddress

      public UpstreamEndpointStats.Builder mergeAddress(Address value)
       Upstream host address.
       
      .envoy.config.core.v3.Address address = 1;
    • clearAddress

      public UpstreamEndpointStats.Builder clearAddress()
       Upstream host address.
       
      .envoy.config.core.v3.Address address = 1;
    • getAddressBuilder

      public Address.Builder getAddressBuilder()
       Upstream host address.
       
      .envoy.config.core.v3.Address address = 1;
    • getAddressOrBuilder

      public AddressOrBuilder getAddressOrBuilder()
       Upstream host address.
       
      .envoy.config.core.v3.Address address = 1;
      Specified by:
      getAddressOrBuilder in interface UpstreamEndpointStatsOrBuilder
    • getAddressFieldBuilder

      private com.google.protobuf.SingleFieldBuilder<Address,Address.Builder,AddressOrBuilder> getAddressFieldBuilder()
       Upstream host address.
       
      .envoy.config.core.v3.Address address = 1;
    • hasMetadata

      public boolean hasMetadata()
       Opaque and implementation dependent metadata of the
       endpoint. Envoy will pass this directly to the management server.
       
      .google.protobuf.Struct metadata = 6;
      Specified by:
      hasMetadata in interface UpstreamEndpointStatsOrBuilder
      Returns:
      Whether the metadata field is set.
    • getMetadata

      public com.google.protobuf.Struct getMetadata()
       Opaque and implementation dependent metadata of the
       endpoint. Envoy will pass this directly to the management server.
       
      .google.protobuf.Struct metadata = 6;
      Specified by:
      getMetadata in interface UpstreamEndpointStatsOrBuilder
      Returns:
      The metadata.
    • setMetadata

      public UpstreamEndpointStats.Builder setMetadata(com.google.protobuf.Struct value)
       Opaque and implementation dependent metadata of the
       endpoint. Envoy will pass this directly to the management server.
       
      .google.protobuf.Struct metadata = 6;
    • setMetadata

      public UpstreamEndpointStats.Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue)
       Opaque and implementation dependent metadata of the
       endpoint. Envoy will pass this directly to the management server.
       
      .google.protobuf.Struct metadata = 6;
    • mergeMetadata

      public UpstreamEndpointStats.Builder mergeMetadata(com.google.protobuf.Struct value)
       Opaque and implementation dependent metadata of the
       endpoint. Envoy will pass this directly to the management server.
       
      .google.protobuf.Struct metadata = 6;
    • clearMetadata

      public UpstreamEndpointStats.Builder clearMetadata()
       Opaque and implementation dependent metadata of the
       endpoint. Envoy will pass this directly to the management server.
       
      .google.protobuf.Struct metadata = 6;
    • getMetadataBuilder

      public com.google.protobuf.Struct.Builder getMetadataBuilder()
       Opaque and implementation dependent metadata of the
       endpoint. Envoy will pass this directly to the management server.
       
      .google.protobuf.Struct metadata = 6;
    • getMetadataOrBuilder

      public com.google.protobuf.StructOrBuilder getMetadataOrBuilder()
       Opaque and implementation dependent metadata of the
       endpoint. Envoy will pass this directly to the management server.
       
      .google.protobuf.Struct metadata = 6;
      Specified by:
      getMetadataOrBuilder in interface UpstreamEndpointStatsOrBuilder
    • getMetadataFieldBuilder

      private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Struct,com.google.protobuf.Struct.Builder,com.google.protobuf.StructOrBuilder> getMetadataFieldBuilder()
       Opaque and implementation dependent metadata of the
       endpoint. Envoy will pass this directly to the management server.
       
      .google.protobuf.Struct metadata = 6;
    • getTotalSuccessfulRequests

      public long getTotalSuccessfulRequests()
       The total number of requests successfully completed by the endpoints in the
       locality. These include non-5xx responses for HTTP, where errors
       originate at the client and the endpoint responded successfully. For gRPC,
       the grpc-status values are those not covered by total_error_requests below.
       
      uint64 total_successful_requests = 2;
      Specified by:
      getTotalSuccessfulRequests in interface UpstreamEndpointStatsOrBuilder
      Returns:
      The totalSuccessfulRequests.
    • setTotalSuccessfulRequests

      public UpstreamEndpointStats.Builder setTotalSuccessfulRequests(long value)
       The total number of requests successfully completed by the endpoints in the
       locality. These include non-5xx responses for HTTP, where errors
       originate at the client and the endpoint responded successfully. For gRPC,
       the grpc-status values are those not covered by total_error_requests below.
       
      uint64 total_successful_requests = 2;
      Parameters:
      value - The totalSuccessfulRequests to set.
      Returns:
      This builder for chaining.
    • clearTotalSuccessfulRequests

      public UpstreamEndpointStats.Builder clearTotalSuccessfulRequests()
       The total number of requests successfully completed by the endpoints in the
       locality. These include non-5xx responses for HTTP, where errors
       originate at the client and the endpoint responded successfully. For gRPC,
       the grpc-status values are those not covered by total_error_requests below.
       
      uint64 total_successful_requests = 2;
      Returns:
      This builder for chaining.
    • getTotalRequestsInProgress

      public long getTotalRequestsInProgress()
       The total number of unfinished requests for this endpoint.
       
      uint64 total_requests_in_progress = 3;
      Specified by:
      getTotalRequestsInProgress in interface UpstreamEndpointStatsOrBuilder
      Returns:
      The totalRequestsInProgress.
    • setTotalRequestsInProgress

      public UpstreamEndpointStats.Builder setTotalRequestsInProgress(long value)
       The total number of unfinished requests for this endpoint.
       
      uint64 total_requests_in_progress = 3;
      Parameters:
      value - The totalRequestsInProgress to set.
      Returns:
      This builder for chaining.
    • clearTotalRequestsInProgress

      public UpstreamEndpointStats.Builder clearTotalRequestsInProgress()
       The total number of unfinished requests for this endpoint.
       
      uint64 total_requests_in_progress = 3;
      Returns:
      This builder for chaining.
    • getTotalErrorRequests

      public long getTotalErrorRequests()
       The total number of requests that failed due to errors at the endpoint.
       For HTTP these are responses with 5xx status codes and for gRPC the
       grpc-status values:
      
       - DeadlineExceeded
       - Unimplemented
       - Internal
       - Unavailable
       - Unknown
       - DataLoss
       
      uint64 total_error_requests = 4;
      Specified by:
      getTotalErrorRequests in interface UpstreamEndpointStatsOrBuilder
      Returns:
      The totalErrorRequests.
    • setTotalErrorRequests

      public UpstreamEndpointStats.Builder setTotalErrorRequests(long value)
       The total number of requests that failed due to errors at the endpoint.
       For HTTP these are responses with 5xx status codes and for gRPC the
       grpc-status values:
      
       - DeadlineExceeded
       - Unimplemented
       - Internal
       - Unavailable
       - Unknown
       - DataLoss
       
      uint64 total_error_requests = 4;
      Parameters:
      value - The totalErrorRequests to set.
      Returns:
      This builder for chaining.
    • clearTotalErrorRequests

      public UpstreamEndpointStats.Builder clearTotalErrorRequests()
       The total number of requests that failed due to errors at the endpoint.
       For HTTP these are responses with 5xx status codes and for gRPC the
       grpc-status values:
      
       - DeadlineExceeded
       - Unimplemented
       - Internal
       - Unavailable
       - Unknown
       - DataLoss
       
      uint64 total_error_requests = 4;
      Returns:
      This builder for chaining.
    • getTotalIssuedRequests

      public long getTotalIssuedRequests()
       The total number of requests that were issued to this endpoint
       since the last report. A single TCP connection, HTTP or gRPC
       request or stream is counted as one request.
       
      uint64 total_issued_requests = 7;
      Specified by:
      getTotalIssuedRequests in interface UpstreamEndpointStatsOrBuilder
      Returns:
      The totalIssuedRequests.
    • setTotalIssuedRequests

      public UpstreamEndpointStats.Builder setTotalIssuedRequests(long value)
       The total number of requests that were issued to this endpoint
       since the last report. A single TCP connection, HTTP or gRPC
       request or stream is counted as one request.
       
      uint64 total_issued_requests = 7;
      Parameters:
      value - The totalIssuedRequests to set.
      Returns:
      This builder for chaining.
    • clearTotalIssuedRequests

      public UpstreamEndpointStats.Builder clearTotalIssuedRequests()
       The total number of requests that were issued to this endpoint
       since the last report. A single TCP connection, HTTP or gRPC
       request or stream is counted as one request.
       
      uint64 total_issued_requests = 7;
      Returns:
      This builder for chaining.
    • ensureLoadMetricStatsIsMutable

      private void ensureLoadMetricStatsIsMutable()
    • getLoadMetricStatsList

      public List<EndpointLoadMetricStats> getLoadMetricStatsList()
       Stats for multi-dimensional load balancing.
       
      repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
      Specified by:
      getLoadMetricStatsList in interface UpstreamEndpointStatsOrBuilder
    • getLoadMetricStatsCount

      public int getLoadMetricStatsCount()
       Stats for multi-dimensional load balancing.
       
      repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
      Specified by:
      getLoadMetricStatsCount in interface UpstreamEndpointStatsOrBuilder
    • getLoadMetricStats

      public EndpointLoadMetricStats getLoadMetricStats(int index)
       Stats for multi-dimensional load balancing.
       
      repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
      Specified by:
      getLoadMetricStats in interface UpstreamEndpointStatsOrBuilder
    • setLoadMetricStats

      public UpstreamEndpointStats.Builder setLoadMetricStats(int index, EndpointLoadMetricStats value)
       Stats for multi-dimensional load balancing.
       
      repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
    • setLoadMetricStats

      public UpstreamEndpointStats.Builder setLoadMetricStats(int index, EndpointLoadMetricStats.Builder builderForValue)
       Stats for multi-dimensional load balancing.
       
      repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
    • addLoadMetricStats

      public UpstreamEndpointStats.Builder addLoadMetricStats(EndpointLoadMetricStats value)
       Stats for multi-dimensional load balancing.
       
      repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
    • addLoadMetricStats

      public UpstreamEndpointStats.Builder addLoadMetricStats(int index, EndpointLoadMetricStats value)
       Stats for multi-dimensional load balancing.
       
      repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
    • addLoadMetricStats

      public UpstreamEndpointStats.Builder addLoadMetricStats(EndpointLoadMetricStats.Builder builderForValue)
       Stats for multi-dimensional load balancing.
       
      repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
    • addLoadMetricStats

      public UpstreamEndpointStats.Builder addLoadMetricStats(int index, EndpointLoadMetricStats.Builder builderForValue)
       Stats for multi-dimensional load balancing.
       
      repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
    • addAllLoadMetricStats

      public UpstreamEndpointStats.Builder addAllLoadMetricStats(Iterable<? extends EndpointLoadMetricStats> values)
       Stats for multi-dimensional load balancing.
       
      repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
    • clearLoadMetricStats

      public UpstreamEndpointStats.Builder clearLoadMetricStats()
       Stats for multi-dimensional load balancing.
       
      repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
    • removeLoadMetricStats

      public UpstreamEndpointStats.Builder removeLoadMetricStats(int index)
       Stats for multi-dimensional load balancing.
       
      repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
    • getLoadMetricStatsBuilder

      public EndpointLoadMetricStats.Builder getLoadMetricStatsBuilder(int index)
       Stats for multi-dimensional load balancing.
       
      repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
    • getLoadMetricStatsOrBuilder

      public EndpointLoadMetricStatsOrBuilder getLoadMetricStatsOrBuilder(int index)
       Stats for multi-dimensional load balancing.
       
      repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
      Specified by:
      getLoadMetricStatsOrBuilder in interface UpstreamEndpointStatsOrBuilder
    • getLoadMetricStatsOrBuilderList

      public List<? extends EndpointLoadMetricStatsOrBuilder> getLoadMetricStatsOrBuilderList()
       Stats for multi-dimensional load balancing.
       
      repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
      Specified by:
      getLoadMetricStatsOrBuilderList in interface UpstreamEndpointStatsOrBuilder
    • addLoadMetricStatsBuilder

      public EndpointLoadMetricStats.Builder addLoadMetricStatsBuilder()
       Stats for multi-dimensional load balancing.
       
      repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
    • addLoadMetricStatsBuilder

      public EndpointLoadMetricStats.Builder addLoadMetricStatsBuilder(int index)
       Stats for multi-dimensional load balancing.
       
      repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
    • getLoadMetricStatsBuilderList

      public List<EndpointLoadMetricStats.Builder> getLoadMetricStatsBuilderList()
       Stats for multi-dimensional load balancing.
       
      repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
    • getLoadMetricStatsFieldBuilder

      private com.google.protobuf.RepeatedFieldBuilder<EndpointLoadMetricStats,EndpointLoadMetricStats.Builder,EndpointLoadMetricStatsOrBuilder> getLoadMetricStatsFieldBuilder()