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 Summary
FieldsModifier and TypeFieldDescriptionprivate Address
private com.google.protobuf.SingleFieldBuilder
<Address, Address.Builder, AddressOrBuilder> private int
private List
<EndpointLoadMetricStats> private com.google.protobuf.RepeatedFieldBuilder
<EndpointLoadMetricStats, EndpointLoadMetricStats.Builder, EndpointLoadMetricStatsOrBuilder> private com.google.protobuf.Struct
private com.google.protobuf.SingleFieldBuilder
<com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> private long
private long
private long
private long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllLoadMetricStats
(Iterable<? extends EndpointLoadMetricStats> values) Stats for multi-dimensional load balancing.addLoadMetricStats
(int index, EndpointLoadMetricStats value) Stats for multi-dimensional load balancing.addLoadMetricStats
(int index, EndpointLoadMetricStats.Builder builderForValue) Stats for multi-dimensional load balancing.Stats for multi-dimensional load balancing.addLoadMetricStats
(EndpointLoadMetricStats.Builder builderForValue) Stats for multi-dimensional load balancing.Stats for multi-dimensional load balancing.addLoadMetricStatsBuilder
(int index) Stats for multi-dimensional load balancing.build()
private void
buildPartial0
(UpstreamEndpointStats result) private void
clear()
Upstream host address.Stats for multi-dimensional load balancing.Opaque and implementation dependent metadata of the endpoint.The total number of requests that failed due to errors at the endpoint.The total number of requests that were issued to this endpoint since the last report.The total number of unfinished requests for this endpoint.The total number of requests successfully completed by the endpoints in the locality.private void
Upstream host address.Upstream host address.Upstream host address.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getLoadMetricStats
(int index) Stats for multi-dimensional load balancing.getLoadMetricStatsBuilder
(int index) Stats for multi-dimensional load balancing.Stats for multi-dimensional load balancing.int
Stats for multi-dimensional load balancing.Stats for multi-dimensional load balancing.getLoadMetricStatsOrBuilder
(int index) Stats for multi-dimensional load balancing.List
<? extends EndpointLoadMetricStatsOrBuilder> Stats for multi-dimensional load balancing.com.google.protobuf.Struct
Opaque and implementation dependent metadata of the endpoint.com.google.protobuf.Struct.Builder
Opaque and implementation dependent metadata of the endpoint.com.google.protobuf.StructOrBuilder
Opaque and implementation dependent metadata of the endpoint.long
The total number of requests that failed due to errors at the endpoint.long
The total number of requests that were issued to this endpoint since the last report.long
The total number of unfinished requests for this endpoint.long
The total number of requests successfully completed by the endpoints in the locality.boolean
Upstream host address.boolean
Opaque and implementation dependent metadata of the endpoint.private com.google.protobuf.SingleFieldBuilder
<Address, Address.Builder, AddressOrBuilder> Upstream host address.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
private com.google.protobuf.RepeatedFieldBuilder
<EndpointLoadMetricStats, EndpointLoadMetricStats.Builder, EndpointLoadMetricStatsOrBuilder> private com.google.protobuf.SingleFieldBuilder
<com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> Opaque and implementation dependent metadata of the endpoint.final boolean
private void
mergeAddress
(Address value) Upstream host address.mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(UpstreamEndpointStats other) mergeMetadata
(com.google.protobuf.Struct value) Opaque and implementation dependent metadata of the endpoint.removeLoadMetricStats
(int index) Stats for multi-dimensional load balancing.setAddress
(Address value) Upstream host address.setAddress
(Address.Builder builderForValue) Upstream host address.setLoadMetricStats
(int index, EndpointLoadMetricStats value) Stats for multi-dimensional load balancing.setLoadMetricStats
(int index, EndpointLoadMetricStats.Builder builderForValue) Stats for multi-dimensional load balancing.setMetadata
(com.google.protobuf.Struct value) Opaque and implementation dependent metadata of the endpoint.setMetadata
(com.google.protobuf.Struct.Builder builderForValue) Opaque and implementation dependent metadata of the endpoint.setTotalErrorRequests
(long value) The total number of requests that failed due to errors at the endpoint.setTotalIssuedRequests
(long value) The total number of requests that were issued to this endpoint since the last report.setTotalRequestsInProgress
(long value) The total number of unfinished requests for this endpoint.setTotalSuccessfulRequests
(long value) The total number of requests successfully completed by the endpoints in the locality.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
bitField0_
private int bitField0_ -
address_
-
addressBuilder_
private com.google.protobuf.SingleFieldBuilder<Address,Address.Builder, addressBuilder_AddressOrBuilder> -
metadata_
private com.google.protobuf.Struct metadata_ -
metadataBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Struct,com.google.protobuf.Struct.Builder, metadataBuilder_com.google.protobuf.StructOrBuilder> -
totalSuccessfulRequests_
private long totalSuccessfulRequests_ -
totalRequestsInProgress_
private long totalRequestsInProgress_ -
totalErrorRequests_
private long totalErrorRequests_ -
totalIssuedRequests_
private long totalIssuedRequests_ -
loadMetricStats_
-
loadMetricStatsBuilder_
private com.google.protobuf.RepeatedFieldBuilder<EndpointLoadMetricStats,EndpointLoadMetricStats.Builder, loadMetricStatsBuilder_EndpointLoadMetricStatsOrBuilder>
-
-
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 classcom.google.protobuf.GeneratedMessage.Builder<UpstreamEndpointStats.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<UpstreamEndpointStats.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<UpstreamEndpointStats.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartialRepeatedFields
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<UpstreamEndpointStats.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.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 interfaceUpstreamEndpointStatsOrBuilder
- Returns:
- Whether the address field is set.
-
getAddress
Upstream host address.
.envoy.config.core.v3.Address address = 1;
- Specified by:
getAddress
in interfaceUpstreamEndpointStatsOrBuilder
- Returns:
- The address.
-
setAddress
Upstream host address.
.envoy.config.core.v3.Address address = 1;
-
setAddress
Upstream host address.
.envoy.config.core.v3.Address address = 1;
-
mergeAddress
Upstream host address.
.envoy.config.core.v3.Address address = 1;
-
clearAddress
Upstream host address.
.envoy.config.core.v3.Address address = 1;
-
getAddressBuilder
Upstream host address.
.envoy.config.core.v3.Address address = 1;
-
getAddressOrBuilder
Upstream host address.
.envoy.config.core.v3.Address address = 1;
- Specified by:
getAddressOrBuilder
in interfaceUpstreamEndpointStatsOrBuilder
-
internalGetAddressFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Address,Address.Builder, internalGetAddressFieldBuilder()AddressOrBuilder> 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 interfaceUpstreamEndpointStatsOrBuilder
- 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 interfaceUpstreamEndpointStatsOrBuilder
- Returns:
- The metadata.
-
setMetadata
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
Opaque and implementation dependent metadata of the endpoint. Envoy will pass this directly to the management server.
.google.protobuf.Struct metadata = 6;
-
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 interfaceUpstreamEndpointStatsOrBuilder
-
internalGetMetadataFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Struct,com.google.protobuf.Struct.Builder, internalGetMetadataFieldBuilder()com.google.protobuf.StructOrBuilder> 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 interfaceUpstreamEndpointStatsOrBuilder
- Returns:
- The totalSuccessfulRequests.
-
setTotalSuccessfulRequests
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
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 interfaceUpstreamEndpointStatsOrBuilder
- Returns:
- The totalRequestsInProgress.
-
setTotalRequestsInProgress
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
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 interfaceUpstreamEndpointStatsOrBuilder
- Returns:
- The totalErrorRequests.
-
setTotalErrorRequests
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
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 interfaceUpstreamEndpointStatsOrBuilder
- Returns:
- The totalIssuedRequests.
-
setTotalIssuedRequests
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
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
Stats for multi-dimensional load balancing.
repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
- Specified by:
getLoadMetricStatsList
in interfaceUpstreamEndpointStatsOrBuilder
-
getLoadMetricStatsCount
public int getLoadMetricStatsCount()Stats for multi-dimensional load balancing.
repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
- Specified by:
getLoadMetricStatsCount
in interfaceUpstreamEndpointStatsOrBuilder
-
getLoadMetricStats
Stats for multi-dimensional load balancing.
repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
- Specified by:
getLoadMetricStats
in interfaceUpstreamEndpointStatsOrBuilder
-
setLoadMetricStats
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
Stats for multi-dimensional load balancing.
repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
-
addLoadMetricStats
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
Stats for multi-dimensional load balancing.
repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
-
removeLoadMetricStats
Stats for multi-dimensional load balancing.
repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
-
getLoadMetricStatsBuilder
Stats for multi-dimensional load balancing.
repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
-
getLoadMetricStatsOrBuilder
Stats for multi-dimensional load balancing.
repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
- Specified by:
getLoadMetricStatsOrBuilder
in interfaceUpstreamEndpointStatsOrBuilder
-
getLoadMetricStatsOrBuilderList
Stats for multi-dimensional load balancing.
repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
- Specified by:
getLoadMetricStatsOrBuilderList
in interfaceUpstreamEndpointStatsOrBuilder
-
addLoadMetricStatsBuilder
Stats for multi-dimensional load balancing.
repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
-
addLoadMetricStatsBuilder
Stats for multi-dimensional load balancing.
repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
-
getLoadMetricStatsBuilderList
Stats for multi-dimensional load balancing.
repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;
-
internalGetLoadMetricStatsFieldBuilder
private com.google.protobuf.RepeatedFieldBuilder<EndpointLoadMetricStats,EndpointLoadMetricStats.Builder, internalGetLoadMetricStatsFieldBuilder()EndpointLoadMetricStatsOrBuilder>
-