Class 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.GeneratedMessageV3.Builder<UpstreamEndpointStats.Builder>
    implements UpstreamEndpointStatsOrBuilder
     [#not-implemented-hide:] Not configuration. TBD how to doc proto APIs.
     [#next-free-field: 8]
     
    Protobuf type envoy.api.v2.endpoint.UpstreamEndpointStats
    • Method Detail

      • getDescriptor

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

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

        public UpstreamEndpointStats.Builder 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public UpstreamEndpointStats.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<UpstreamEndpointStats.Builder>
      • clearField

        public UpstreamEndpointStats.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<UpstreamEndpointStats.Builder>
      • clearOneof

        public UpstreamEndpointStats.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<UpstreamEndpointStats.Builder>
      • setRepeatedField

        public UpstreamEndpointStats.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                              int index,
                                                              Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<UpstreamEndpointStats.Builder>
      • addRepeatedField

        public UpstreamEndpointStats.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                              Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<UpstreamEndpointStats.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.api.v2.core.Address address = 1;
        Specified by:
        hasAddress in interface UpstreamEndpointStatsOrBuilder
        Returns:
        Whether the address field is set.
      • getAddressBuilder

        public Address.Builder getAddressBuilder()
         Upstream host address.
         
        .envoy.api.v2.core.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
      • 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.
      • getLoadMetricStatsCount

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

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

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

        public EndpointLoadMetricStats.Builder getLoadMetricStatsBuilder​(int index)
         Stats for multi-dimensional load balancing.
         
        repeated .envoy.api.v2.endpoint.EndpointLoadMetricStats load_metric_stats = 5;
      • addLoadMetricStatsBuilder

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

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

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

        public final UpstreamEndpointStats.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<UpstreamEndpointStats.Builder>
      • mergeUnknownFields

        public final UpstreamEndpointStats.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<UpstreamEndpointStats.Builder>