Class UpstreamEndpointStats.Builder

    • Field Detail

      • bitField0_

        private int bitField0_
      • address_

        private Address address_
      • 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_
    • Constructor Detail

      • Builder

        private Builder()
      • Builder

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

      • 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

        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.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
      • 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 java.io.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:
        java.io.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.
      • getAddressBuilder

        public Address.Builder getAddressBuilder()
         Upstream host address.
         
        .envoy.config.core.v3.Address address = 1;
      • 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()
      • 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
      • addAllLoadMetricStats

        public UpstreamEndpointStats.Builder addAllLoadMetricStats​(java.lang.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;
      • 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 java.util.List<EndpointLoadMetricStats.Builder> getLoadMetricStatsBuilderList()
         Stats for multi-dimensional load balancing.
         
        repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;