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 Addressprivate com.google.protobuf.SingleFieldBuilder<Address, Address.Builder, AddressOrBuilder> private intprivate List<EndpointLoadMetricStats> private com.google.protobuf.RepeatedFieldBuilder<EndpointLoadMetricStats, EndpointLoadMetricStats.Builder, EndpointLoadMetricStatsOrBuilder> private com.google.protobuf.Structprivate com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> private longprivate longprivate longprivate 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 voidbuildPartial0(UpstreamEndpointStats result) private voidclear()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 voidUpstream host address.Upstream host address.private com.google.protobuf.SingleFieldBuilder<Address, Address.Builder, AddressOrBuilder> Upstream host address.Upstream host address.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetLoadMetricStats(int index) Stats for multi-dimensional load balancing.getLoadMetricStatsBuilder(int index) Stats for multi-dimensional load balancing.Stats for multi-dimensional load balancing.intStats for multi-dimensional load balancing.private com.google.protobuf.RepeatedFieldBuilder<EndpointLoadMetricStats, EndpointLoadMetricStats.Builder, EndpointLoadMetricStatsOrBuilder> 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.StructOpaque and implementation dependent metadata of the endpoint.com.google.protobuf.Struct.BuilderOpaque and implementation dependent metadata of the endpoint.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.com.google.protobuf.StructOrBuilderOpaque and implementation dependent metadata of the endpoint.longThe total number of requests that failed due to errors at the endpoint.longThe total number of requests that were issued to this endpoint since the last report.longThe total number of unfinished requests for this endpoint.longThe total number of requests successfully completed by the endpoints in the locality.booleanUpstream host address.booleanOpaque and implementation dependent metadata of the endpoint.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanprivate voidmergeAddress(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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<UpstreamEndpointStats.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<UpstreamEndpointStats.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<UpstreamEndpointStats.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartialRepeatedFields
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UpstreamEndpointStats.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
hasAddressin interfaceUpstreamEndpointStatsOrBuilder- Returns:
- Whether the address field is set.
-
getAddress
Upstream host address.
.envoy.config.core.v3.Address address = 1;- Specified by:
getAddressin 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:
getAddressOrBuilderin interfaceUpstreamEndpointStatsOrBuilder
-
getAddressFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Address,Address.Builder, getAddressFieldBuilder()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:
hasMetadatain 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:
getMetadatain 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:
getMetadataOrBuilderin interfaceUpstreamEndpointStatsOrBuilder
-
getMetadataFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Struct,com.google.protobuf.Struct.Builder, getMetadataFieldBuilder()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:
getTotalSuccessfulRequestsin 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:
getTotalRequestsInProgressin 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:
getTotalErrorRequestsin 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:
getTotalIssuedRequestsin 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:
getLoadMetricStatsListin interfaceUpstreamEndpointStatsOrBuilder
-
getLoadMetricStatsCount
public int getLoadMetricStatsCount()Stats for multi-dimensional load balancing.
repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;- Specified by:
getLoadMetricStatsCountin interfaceUpstreamEndpointStatsOrBuilder
-
getLoadMetricStats
Stats for multi-dimensional load balancing.
repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;- Specified by:
getLoadMetricStatsin 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:
getLoadMetricStatsOrBuilderin interfaceUpstreamEndpointStatsOrBuilder
-
getLoadMetricStatsOrBuilderList
Stats for multi-dimensional load balancing.
repeated .envoy.config.endpoint.v3.EndpointLoadMetricStats load_metric_stats = 5;- Specified by:
getLoadMetricStatsOrBuilderListin 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; -
getLoadMetricStatsFieldBuilder
private com.google.protobuf.RepeatedFieldBuilder<EndpointLoadMetricStats,EndpointLoadMetricStats.Builder, getLoadMetricStatsFieldBuilder()EndpointLoadMetricStatsOrBuilder>
-