Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/config/endpoint/v3/endpoint_components.proto
package io.envoyproxy.envoy.config.endpoint.v3;
/**
*
* A group of endpoints belonging to a Locality.
* One can have multiple LocalityLbEndpoints for a locality, but only if
* they have different priorities.
* [#next-free-field: 9]
*
* Identifies location of where the upstream hosts run.
*
*
* .envoy.config.core.v3.Locality locality = 1;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.LocalityOrBuilder getLocalityOrBuilder() {
return getLocality();
}
public static final int LB_ENDPOINTS_FIELD_NUMBER = 2;
private java.util.List lbEndpoints_;
/**
*
* The group of endpoints belonging to the locality specified.
* [#comment:TODO(adisuissa): Once LEDS is implemented this field needs to be
* deprecated and replaced by ``load_balancer_endpoints``.]
*
* The group of endpoints belonging to the locality specified.
* [#comment:TODO(adisuissa): Once LEDS is implemented this field needs to be
* deprecated and replaced by ``load_balancer_endpoints``.]
*
* The group of endpoints belonging to the locality specified.
* [#comment:TODO(adisuissa): Once LEDS is implemented this field needs to be
* deprecated and replaced by ``load_balancer_endpoints``.]
*
*
* repeated .envoy.config.endpoint.v3.LbEndpoint lb_endpoints = 2;
*/
@java.lang.Override
public int getLbEndpointsCount() {
return lbEndpoints_.size();
}
/**
*
* The group of endpoints belonging to the locality specified.
* [#comment:TODO(adisuissa): Once LEDS is implemented this field needs to be
* deprecated and replaced by ``load_balancer_endpoints``.]
*
* The group of endpoints belonging to the locality specified.
* [#comment:TODO(adisuissa): Once LEDS is implemented this field needs to be
* deprecated and replaced by ``load_balancer_endpoints``.]
*
*
* repeated .envoy.config.endpoint.v3.LbEndpoint lb_endpoints = 2;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.endpoint.v3.LbEndpointOrBuilder getLbEndpointsOrBuilder(
int index) {
return lbEndpoints_.get(index);
}
public static final int LOAD_BALANCER_ENDPOINTS_FIELD_NUMBER = 7;
/**
*
* The group of endpoints belonging to the locality.
* [#comment:TODO(adisuissa): Once LEDS is implemented the ``lb_endpoints`` field
* needs to be deprecated.]
*
*
* .envoy.config.endpoint.v3.LocalityLbEndpoints.LbEndpointList load_balancer_endpoints = 7;
* @return Whether the loadBalancerEndpoints field is set.
*/
@java.lang.Override
public boolean hasLoadBalancerEndpoints() {
return lbConfigCase_ == 7;
}
/**
*
* The group of endpoints belonging to the locality.
* [#comment:TODO(adisuissa): Once LEDS is implemented the ``lb_endpoints`` field
* needs to be deprecated.]
*
*
* .envoy.config.endpoint.v3.LocalityLbEndpoints.LbEndpointList load_balancer_endpoints = 7;
* @return The loadBalancerEndpoints.
*/
@java.lang.Override
public io.envoyproxy.envoy.config.endpoint.v3.LocalityLbEndpoints.LbEndpointList getLoadBalancerEndpoints() {
if (lbConfigCase_ == 7) {
return (io.envoyproxy.envoy.config.endpoint.v3.LocalityLbEndpoints.LbEndpointList) lbConfig_;
}
return io.envoyproxy.envoy.config.endpoint.v3.LocalityLbEndpoints.LbEndpointList.getDefaultInstance();
}
/**
*
* The group of endpoints belonging to the locality.
* [#comment:TODO(adisuissa): Once LEDS is implemented the ``lb_endpoints`` field
* needs to be deprecated.]
*
*
* .envoy.config.endpoint.v3.LocalityLbEndpoints.LbEndpointList load_balancer_endpoints = 7;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.endpoint.v3.LocalityLbEndpoints.LbEndpointListOrBuilder getLoadBalancerEndpointsOrBuilder() {
if (lbConfigCase_ == 7) {
return (io.envoyproxy.envoy.config.endpoint.v3.LocalityLbEndpoints.LbEndpointList) lbConfig_;
}
return io.envoyproxy.envoy.config.endpoint.v3.LocalityLbEndpoints.LbEndpointList.getDefaultInstance();
}
public static final int LEDS_CLUSTER_LOCALITY_CONFIG_FIELD_NUMBER = 8;
/**
*
* LEDS Configuration for the current locality.
*
*
* .envoy.config.endpoint.v3.LedsClusterLocalityConfig leds_cluster_locality_config = 8;
* @return Whether the ledsClusterLocalityConfig field is set.
*/
@java.lang.Override
public boolean hasLedsClusterLocalityConfig() {
return lbConfigCase_ == 8;
}
/**
*
* LEDS Configuration for the current locality.
*
*
* .envoy.config.endpoint.v3.LedsClusterLocalityConfig leds_cluster_locality_config = 8;
* @return The ledsClusterLocalityConfig.
*/
@java.lang.Override
public io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfig getLedsClusterLocalityConfig() {
if (lbConfigCase_ == 8) {
return (io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfig) lbConfig_;
}
return io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfig.getDefaultInstance();
}
/**
*
* LEDS Configuration for the current locality.
*
*
* .envoy.config.endpoint.v3.LedsClusterLocalityConfig leds_cluster_locality_config = 8;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfigOrBuilder getLedsClusterLocalityConfigOrBuilder() {
if (lbConfigCase_ == 8) {
return (io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfig) lbConfig_;
}
return io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfig.getDefaultInstance();
}
public static final int LOAD_BALANCING_WEIGHT_FIELD_NUMBER = 3;
private com.google.protobuf.UInt32Value loadBalancingWeight_;
/**
*
* Optional: Per priority/region/zone/sub_zone weight; at least 1. The load
* balancing weight for a locality is divided by the sum of the weights of all
* localities at the same priority level to produce the effective percentage
* of traffic for the locality. The sum of the weights of all localities at
* the same priority level must not exceed uint32_t maximal value (4294967295).
* Locality weights are only considered when :ref:`locality weighted load
* balancing <arch_overview_load_balancing_locality_weighted_lb>` is
* configured. These weights are ignored otherwise. If no weights are
* specified when locality weighted load balancing is enabled, the locality is
* assigned no load.
*
*
* .google.protobuf.UInt32Value load_balancing_weight = 3 [(.validate.rules) = { ... }
* @return Whether the loadBalancingWeight field is set.
*/
@java.lang.Override
public boolean hasLoadBalancingWeight() {
return loadBalancingWeight_ != null;
}
/**
*
* Optional: Per priority/region/zone/sub_zone weight; at least 1. The load
* balancing weight for a locality is divided by the sum of the weights of all
* localities at the same priority level to produce the effective percentage
* of traffic for the locality. The sum of the weights of all localities at
* the same priority level must not exceed uint32_t maximal value (4294967295).
* Locality weights are only considered when :ref:`locality weighted load
* balancing <arch_overview_load_balancing_locality_weighted_lb>` is
* configured. These weights are ignored otherwise. If no weights are
* specified when locality weighted load balancing is enabled, the locality is
* assigned no load.
*
* Optional: Per priority/region/zone/sub_zone weight; at least 1. The load
* balancing weight for a locality is divided by the sum of the weights of all
* localities at the same priority level to produce the effective percentage
* of traffic for the locality. The sum of the weights of all localities at
* the same priority level must not exceed uint32_t maximal value (4294967295).
* Locality weights are only considered when :ref:`locality weighted load
* balancing <arch_overview_load_balancing_locality_weighted_lb>` is
* configured. These weights are ignored otherwise. If no weights are
* specified when locality weighted load balancing is enabled, the locality is
* assigned no load.
*
*
* .google.protobuf.UInt32Value load_balancing_weight = 3 [(.validate.rules) = { ... }
*/
@java.lang.Override
public com.google.protobuf.UInt32ValueOrBuilder getLoadBalancingWeightOrBuilder() {
return getLoadBalancingWeight();
}
public static final int PRIORITY_FIELD_NUMBER = 5;
private int priority_;
/**
*
* Optional: the priority for this LocalityLbEndpoints. If unspecified this will
* default to the highest priority (0).
* Under usual circumstances, Envoy will only select endpoints for the highest
* priority (0). In the event that enough endpoints for a particular priority are
* unavailable/unhealthy, Envoy will fail over to selecting endpoints for the
* next highest priority group. Read more at :ref:`priority levels <arch_overview_load_balancing_priority_levels>`.
* Priorities should range from 0 (highest) to N (lowest) without skipping.
*
*
* uint32 priority = 5 [(.validate.rules) = { ... }
* @return The priority.
*/
@java.lang.Override
public int getPriority() {
return priority_;
}
public static final int PROXIMITY_FIELD_NUMBER = 6;
private com.google.protobuf.UInt32Value proximity_;
/**
*
* Optional: Per locality proximity value which indicates how close this
* locality is from the source locality. This value only provides ordering
* information (lower the value, closer it is to the source locality).
* This will be consumed by load balancing schemes that need proximity order
* to determine where to route the requests.
* [#not-implemented-hide:]
*
*
* .google.protobuf.UInt32Value proximity = 6;
* @return Whether the proximity field is set.
*/
@java.lang.Override
public boolean hasProximity() {
return proximity_ != null;
}
/**
*
* Optional: Per locality proximity value which indicates how close this
* locality is from the source locality. This value only provides ordering
* information (lower the value, closer it is to the source locality).
* This will be consumed by load balancing schemes that need proximity order
* to determine where to route the requests.
* [#not-implemented-hide:]
*
* Optional: Per locality proximity value which indicates how close this
* locality is from the source locality. This value only provides ordering
* information (lower the value, closer it is to the source locality).
* This will be consumed by load balancing schemes that need proximity order
* to determine where to route the requests.
* [#not-implemented-hide:]
*
*
* .google.protobuf.UInt32Value proximity = 6;
*/
@java.lang.Override
public com.google.protobuf.UInt32ValueOrBuilder getProximityOrBuilder() {
return getProximity();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (locality_ != null) {
output.writeMessage(1, getLocality());
}
for (int i = 0; i < lbEndpoints_.size(); i++) {
output.writeMessage(2, lbEndpoints_.get(i));
}
if (loadBalancingWeight_ != null) {
output.writeMessage(3, getLoadBalancingWeight());
}
if (priority_ != 0) {
output.writeUInt32(5, priority_);
}
if (proximity_ != null) {
output.writeMessage(6, getProximity());
}
if (lbConfigCase_ == 7) {
output.writeMessage(7, (io.envoyproxy.envoy.config.endpoint.v3.LocalityLbEndpoints.LbEndpointList) lbConfig_);
}
if (lbConfigCase_ == 8) {
output.writeMessage(8, (io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfig) lbConfig_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (locality_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getLocality());
}
for (int i = 0; i < lbEndpoints_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, lbEndpoints_.get(i));
}
if (loadBalancingWeight_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getLoadBalancingWeight());
}
if (priority_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, priority_);
}
if (proximity_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getProximity());
}
if (lbConfigCase_ == 7) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, (io.envoyproxy.envoy.config.endpoint.v3.LocalityLbEndpoints.LbEndpointList) lbConfig_);
}
if (lbConfigCase_ == 8) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, (io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfig) lbConfig_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.envoyproxy.envoy.config.endpoint.v3.LocalityLbEndpoints)) {
return super.equals(obj);
}
io.envoyproxy.envoy.config.endpoint.v3.LocalityLbEndpoints other = (io.envoyproxy.envoy.config.endpoint.v3.LocalityLbEndpoints) obj;
if (hasLocality() != other.hasLocality()) return false;
if (hasLocality()) {
if (!getLocality()
.equals(other.getLocality())) return false;
}
if (!getLbEndpointsList()
.equals(other.getLbEndpointsList())) return false;
if (hasLoadBalancingWeight() != other.hasLoadBalancingWeight()) return false;
if (hasLoadBalancingWeight()) {
if (!getLoadBalancingWeight()
.equals(other.getLoadBalancingWeight())) return false;
}
if (getPriority()
!= other.getPriority()) return false;
if (hasProximity() != other.hasProximity()) return false;
if (hasProximity()) {
if (!getProximity()
.equals(other.getProximity())) return false;
}
if (!getLbConfigCase().equals(other.getLbConfigCase())) return false;
switch (lbConfigCase_) {
case 7:
if (!getLoadBalancerEndpoints()
.equals(other.getLoadBalancerEndpoints())) return false;
break;
case 8:
if (!getLedsClusterLocalityConfig()
.equals(other.getLedsClusterLocalityConfig())) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasLocality()) {
hash = (37 * hash) + LOCALITY_FIELD_NUMBER;
hash = (53 * hash) + getLocality().hashCode();
}
if (getLbEndpointsCount() > 0) {
hash = (37 * hash) + LB_ENDPOINTS_FIELD_NUMBER;
hash = (53 * hash) + getLbEndpointsList().hashCode();
}
if (hasLoadBalancingWeight()) {
hash = (37 * hash) + LOAD_BALANCING_WEIGHT_FIELD_NUMBER;
hash = (53 * hash) + getLoadBalancingWeight().hashCode();
}
hash = (37 * hash) + PRIORITY_FIELD_NUMBER;
hash = (53 * hash) + getPriority();
if (hasProximity()) {
hash = (37 * hash) + PROXIMITY_FIELD_NUMBER;
hash = (53 * hash) + getProximity().hashCode();
}
switch (lbConfigCase_) {
case 7:
hash = (37 * hash) + LOAD_BALANCER_ENDPOINTS_FIELD_NUMBER;
hash = (53 * hash) + getLoadBalancerEndpoints().hashCode();
break;
case 8:
hash = (37 * hash) + LEDS_CLUSTER_LOCALITY_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getLedsClusterLocalityConfig().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.config.endpoint.v3.LocalityLbEndpoints parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.endpoint.v3.LocalityLbEndpoints parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.config.endpoint.v3.LocalityLbEndpoints parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.endpoint.v3.LocalityLbEndpoints parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.config.endpoint.v3.LocalityLbEndpoints parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.endpoint.v3.LocalityLbEndpoints parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.config.endpoint.v3.LocalityLbEndpoints parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.endpoint.v3.LocalityLbEndpoints parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.envoy.config.endpoint.v3.LocalityLbEndpoints parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.endpoint.v3.LocalityLbEndpoints parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.envoy.config.endpoint.v3.LocalityLbEndpoints parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.endpoint.v3.LocalityLbEndpoints parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.envoyproxy.envoy.config.endpoint.v3.LocalityLbEndpoints prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* A group of endpoints belonging to a Locality.
* One can have multiple LocalityLbEndpoints for a locality, but only if
* they have different priorities.
* [#next-free-field: 9]
*
* The group of endpoints belonging to the locality specified.
* [#comment:TODO(adisuissa): Once LEDS is implemented this field needs to be
* deprecated and replaced by ``load_balancer_endpoints``.]
*
* The group of endpoints belonging to the locality specified.
* [#comment:TODO(adisuissa): Once LEDS is implemented this field needs to be
* deprecated and replaced by ``load_balancer_endpoints``.]
*
*
* repeated .envoy.config.endpoint.v3.LbEndpoint lb_endpoints = 2;
*/
public int getLbEndpointsCount() {
if (lbEndpointsBuilder_ == null) {
return lbEndpoints_.size();
} else {
return lbEndpointsBuilder_.getCount();
}
}
/**
*
* The group of endpoints belonging to the locality specified.
* [#comment:TODO(adisuissa): Once LEDS is implemented this field needs to be
* deprecated and replaced by ``load_balancer_endpoints``.]
*
* The group of endpoints belonging to the locality specified.
* [#comment:TODO(adisuissa): Once LEDS is implemented this field needs to be
* deprecated and replaced by ``load_balancer_endpoints``.]
*
*
* repeated .envoy.config.endpoint.v3.LbEndpoint lb_endpoints = 2;
*/
public Builder setLbEndpoints(
int index, io.envoyproxy.envoy.config.endpoint.v3.LbEndpoint value) {
if (lbEndpointsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLbEndpointsIsMutable();
lbEndpoints_.set(index, value);
onChanged();
} else {
lbEndpointsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The group of endpoints belonging to the locality specified.
* [#comment:TODO(adisuissa): Once LEDS is implemented this field needs to be
* deprecated and replaced by ``load_balancer_endpoints``.]
*
* The group of endpoints belonging to the locality specified.
* [#comment:TODO(adisuissa): Once LEDS is implemented this field needs to be
* deprecated and replaced by ``load_balancer_endpoints``.]
*
*
* repeated .envoy.config.endpoint.v3.LbEndpoint lb_endpoints = 2;
*/
public Builder addLbEndpoints(io.envoyproxy.envoy.config.endpoint.v3.LbEndpoint value) {
if (lbEndpointsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLbEndpointsIsMutable();
lbEndpoints_.add(value);
onChanged();
} else {
lbEndpointsBuilder_.addMessage(value);
}
return this;
}
/**
*
* The group of endpoints belonging to the locality specified.
* [#comment:TODO(adisuissa): Once LEDS is implemented this field needs to be
* deprecated and replaced by ``load_balancer_endpoints``.]
*
*
* repeated .envoy.config.endpoint.v3.LbEndpoint lb_endpoints = 2;
*/
public Builder addLbEndpoints(
int index, io.envoyproxy.envoy.config.endpoint.v3.LbEndpoint value) {
if (lbEndpointsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLbEndpointsIsMutable();
lbEndpoints_.add(index, value);
onChanged();
} else {
lbEndpointsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The group of endpoints belonging to the locality specified.
* [#comment:TODO(adisuissa): Once LEDS is implemented this field needs to be
* deprecated and replaced by ``load_balancer_endpoints``.]
*
* The group of endpoints belonging to the locality specified.
* [#comment:TODO(adisuissa): Once LEDS is implemented this field needs to be
* deprecated and replaced by ``load_balancer_endpoints``.]
*
* The group of endpoints belonging to the locality specified.
* [#comment:TODO(adisuissa): Once LEDS is implemented this field needs to be
* deprecated and replaced by ``load_balancer_endpoints``.]
*
* The group of endpoints belonging to the locality specified.
* [#comment:TODO(adisuissa): Once LEDS is implemented this field needs to be
* deprecated and replaced by ``load_balancer_endpoints``.]
*
* The group of endpoints belonging to the locality specified.
* [#comment:TODO(adisuissa): Once LEDS is implemented this field needs to be
* deprecated and replaced by ``load_balancer_endpoints``.]
*
* The group of endpoints belonging to the locality specified.
* [#comment:TODO(adisuissa): Once LEDS is implemented this field needs to be
* deprecated and replaced by ``load_balancer_endpoints``.]
*
*
* repeated .envoy.config.endpoint.v3.LbEndpoint lb_endpoints = 2;
*/
public io.envoyproxy.envoy.config.endpoint.v3.LbEndpoint.Builder getLbEndpointsBuilder(
int index) {
return getLbEndpointsFieldBuilder().getBuilder(index);
}
/**
*
* The group of endpoints belonging to the locality specified.
* [#comment:TODO(adisuissa): Once LEDS is implemented this field needs to be
* deprecated and replaced by ``load_balancer_endpoints``.]
*
*
* repeated .envoy.config.endpoint.v3.LbEndpoint lb_endpoints = 2;
*/
public io.envoyproxy.envoy.config.endpoint.v3.LbEndpointOrBuilder getLbEndpointsOrBuilder(
int index) {
if (lbEndpointsBuilder_ == null) {
return lbEndpoints_.get(index); } else {
return lbEndpointsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The group of endpoints belonging to the locality specified.
* [#comment:TODO(adisuissa): Once LEDS is implemented this field needs to be
* deprecated and replaced by ``load_balancer_endpoints``.]
*
* The group of endpoints belonging to the locality specified.
* [#comment:TODO(adisuissa): Once LEDS is implemented this field needs to be
* deprecated and replaced by ``load_balancer_endpoints``.]
*
* The group of endpoints belonging to the locality specified.
* [#comment:TODO(adisuissa): Once LEDS is implemented this field needs to be
* deprecated and replaced by ``load_balancer_endpoints``.]
*
* The group of endpoints belonging to the locality specified.
* [#comment:TODO(adisuissa): Once LEDS is implemented this field needs to be
* deprecated and replaced by ``load_balancer_endpoints``.]
*
* The group of endpoints belonging to the locality.
* [#comment:TODO(adisuissa): Once LEDS is implemented the ``lb_endpoints`` field
* needs to be deprecated.]
*
*
* .envoy.config.endpoint.v3.LocalityLbEndpoints.LbEndpointList load_balancer_endpoints = 7;
* @return Whether the loadBalancerEndpoints field is set.
*/
@java.lang.Override
public boolean hasLoadBalancerEndpoints() {
return lbConfigCase_ == 7;
}
/**
*
* The group of endpoints belonging to the locality.
* [#comment:TODO(adisuissa): Once LEDS is implemented the ``lb_endpoints`` field
* needs to be deprecated.]
*
*
* .envoy.config.endpoint.v3.LocalityLbEndpoints.LbEndpointList load_balancer_endpoints = 7;
* @return The loadBalancerEndpoints.
*/
@java.lang.Override
public io.envoyproxy.envoy.config.endpoint.v3.LocalityLbEndpoints.LbEndpointList getLoadBalancerEndpoints() {
if (loadBalancerEndpointsBuilder_ == null) {
if (lbConfigCase_ == 7) {
return (io.envoyproxy.envoy.config.endpoint.v3.LocalityLbEndpoints.LbEndpointList) lbConfig_;
}
return io.envoyproxy.envoy.config.endpoint.v3.LocalityLbEndpoints.LbEndpointList.getDefaultInstance();
} else {
if (lbConfigCase_ == 7) {
return loadBalancerEndpointsBuilder_.getMessage();
}
return io.envoyproxy.envoy.config.endpoint.v3.LocalityLbEndpoints.LbEndpointList.getDefaultInstance();
}
}
/**
*
* The group of endpoints belonging to the locality.
* [#comment:TODO(adisuissa): Once LEDS is implemented the ``lb_endpoints`` field
* needs to be deprecated.]
*
* The group of endpoints belonging to the locality.
* [#comment:TODO(adisuissa): Once LEDS is implemented the ``lb_endpoints`` field
* needs to be deprecated.]
*
* The group of endpoints belonging to the locality.
* [#comment:TODO(adisuissa): Once LEDS is implemented the ``lb_endpoints`` field
* needs to be deprecated.]
*
* The group of endpoints belonging to the locality.
* [#comment:TODO(adisuissa): Once LEDS is implemented the ``lb_endpoints`` field
* needs to be deprecated.]
*
* The group of endpoints belonging to the locality.
* [#comment:TODO(adisuissa): Once LEDS is implemented the ``lb_endpoints`` field
* needs to be deprecated.]
*
* The group of endpoints belonging to the locality.
* [#comment:TODO(adisuissa): Once LEDS is implemented the ``lb_endpoints`` field
* needs to be deprecated.]
*
* The group of endpoints belonging to the locality.
* [#comment:TODO(adisuissa): Once LEDS is implemented the ``lb_endpoints`` field
* needs to be deprecated.]
*
* Optional: Per priority/region/zone/sub_zone weight; at least 1. The load
* balancing weight for a locality is divided by the sum of the weights of all
* localities at the same priority level to produce the effective percentage
* of traffic for the locality. The sum of the weights of all localities at
* the same priority level must not exceed uint32_t maximal value (4294967295).
* Locality weights are only considered when :ref:`locality weighted load
* balancing <arch_overview_load_balancing_locality_weighted_lb>` is
* configured. These weights are ignored otherwise. If no weights are
* specified when locality weighted load balancing is enabled, the locality is
* assigned no load.
*
*
* .google.protobuf.UInt32Value load_balancing_weight = 3 [(.validate.rules) = { ... }
* @return Whether the loadBalancingWeight field is set.
*/
public boolean hasLoadBalancingWeight() {
return loadBalancingWeightBuilder_ != null || loadBalancingWeight_ != null;
}
/**
*
* Optional: Per priority/region/zone/sub_zone weight; at least 1. The load
* balancing weight for a locality is divided by the sum of the weights of all
* localities at the same priority level to produce the effective percentage
* of traffic for the locality. The sum of the weights of all localities at
* the same priority level must not exceed uint32_t maximal value (4294967295).
* Locality weights are only considered when :ref:`locality weighted load
* balancing <arch_overview_load_balancing_locality_weighted_lb>` is
* configured. These weights are ignored otherwise. If no weights are
* specified when locality weighted load balancing is enabled, the locality is
* assigned no load.
*
* Optional: Per priority/region/zone/sub_zone weight; at least 1. The load
* balancing weight for a locality is divided by the sum of the weights of all
* localities at the same priority level to produce the effective percentage
* of traffic for the locality. The sum of the weights of all localities at
* the same priority level must not exceed uint32_t maximal value (4294967295).
* Locality weights are only considered when :ref:`locality weighted load
* balancing <arch_overview_load_balancing_locality_weighted_lb>` is
* configured. These weights are ignored otherwise. If no weights are
* specified when locality weighted load balancing is enabled, the locality is
* assigned no load.
*
* Optional: Per priority/region/zone/sub_zone weight; at least 1. The load
* balancing weight for a locality is divided by the sum of the weights of all
* localities at the same priority level to produce the effective percentage
* of traffic for the locality. The sum of the weights of all localities at
* the same priority level must not exceed uint32_t maximal value (4294967295).
* Locality weights are only considered when :ref:`locality weighted load
* balancing <arch_overview_load_balancing_locality_weighted_lb>` is
* configured. These weights are ignored otherwise. If no weights are
* specified when locality weighted load balancing is enabled, the locality is
* assigned no load.
*
* Optional: Per priority/region/zone/sub_zone weight; at least 1. The load
* balancing weight for a locality is divided by the sum of the weights of all
* localities at the same priority level to produce the effective percentage
* of traffic for the locality. The sum of the weights of all localities at
* the same priority level must not exceed uint32_t maximal value (4294967295).
* Locality weights are only considered when :ref:`locality weighted load
* balancing <arch_overview_load_balancing_locality_weighted_lb>` is
* configured. These weights are ignored otherwise. If no weights are
* specified when locality weighted load balancing is enabled, the locality is
* assigned no load.
*
* Optional: Per priority/region/zone/sub_zone weight; at least 1. The load
* balancing weight for a locality is divided by the sum of the weights of all
* localities at the same priority level to produce the effective percentage
* of traffic for the locality. The sum of the weights of all localities at
* the same priority level must not exceed uint32_t maximal value (4294967295).
* Locality weights are only considered when :ref:`locality weighted load
* balancing <arch_overview_load_balancing_locality_weighted_lb>` is
* configured. These weights are ignored otherwise. If no weights are
* specified when locality weighted load balancing is enabled, the locality is
* assigned no load.
*
* Optional: Per priority/region/zone/sub_zone weight; at least 1. The load
* balancing weight for a locality is divided by the sum of the weights of all
* localities at the same priority level to produce the effective percentage
* of traffic for the locality. The sum of the weights of all localities at
* the same priority level must not exceed uint32_t maximal value (4294967295).
* Locality weights are only considered when :ref:`locality weighted load
* balancing <arch_overview_load_balancing_locality_weighted_lb>` is
* configured. These weights are ignored otherwise. If no weights are
* specified when locality weighted load balancing is enabled, the locality is
* assigned no load.
*
* Optional: Per priority/region/zone/sub_zone weight; at least 1. The load
* balancing weight for a locality is divided by the sum of the weights of all
* localities at the same priority level to produce the effective percentage
* of traffic for the locality. The sum of the weights of all localities at
* the same priority level must not exceed uint32_t maximal value (4294967295).
* Locality weights are only considered when :ref:`locality weighted load
* balancing <arch_overview_load_balancing_locality_weighted_lb>` is
* configured. These weights are ignored otherwise. If no weights are
* specified when locality weighted load balancing is enabled, the locality is
* assigned no load.
*
* Optional: Per priority/region/zone/sub_zone weight; at least 1. The load
* balancing weight for a locality is divided by the sum of the weights of all
* localities at the same priority level to produce the effective percentage
* of traffic for the locality. The sum of the weights of all localities at
* the same priority level must not exceed uint32_t maximal value (4294967295).
* Locality weights are only considered when :ref:`locality weighted load
* balancing <arch_overview_load_balancing_locality_weighted_lb>` is
* configured. These weights are ignored otherwise. If no weights are
* specified when locality weighted load balancing is enabled, the locality is
* assigned no load.
*
* Optional: the priority for this LocalityLbEndpoints. If unspecified this will
* default to the highest priority (0).
* Under usual circumstances, Envoy will only select endpoints for the highest
* priority (0). In the event that enough endpoints for a particular priority are
* unavailable/unhealthy, Envoy will fail over to selecting endpoints for the
* next highest priority group. Read more at :ref:`priority levels <arch_overview_load_balancing_priority_levels>`.
* Priorities should range from 0 (highest) to N (lowest) without skipping.
*
*
* uint32 priority = 5 [(.validate.rules) = { ... }
* @return The priority.
*/
@java.lang.Override
public int getPriority() {
return priority_;
}
/**
*
* Optional: the priority for this LocalityLbEndpoints. If unspecified this will
* default to the highest priority (0).
* Under usual circumstances, Envoy will only select endpoints for the highest
* priority (0). In the event that enough endpoints for a particular priority are
* unavailable/unhealthy, Envoy will fail over to selecting endpoints for the
* next highest priority group. Read more at :ref:`priority levels <arch_overview_load_balancing_priority_levels>`.
* Priorities should range from 0 (highest) to N (lowest) without skipping.
*
*
* uint32 priority = 5 [(.validate.rules) = { ... }
* @param value The priority to set.
* @return This builder for chaining.
*/
public Builder setPriority(int value) {
priority_ = value;
onChanged();
return this;
}
/**
*
* Optional: the priority for this LocalityLbEndpoints. If unspecified this will
* default to the highest priority (0).
* Under usual circumstances, Envoy will only select endpoints for the highest
* priority (0). In the event that enough endpoints for a particular priority are
* unavailable/unhealthy, Envoy will fail over to selecting endpoints for the
* next highest priority group. Read more at :ref:`priority levels <arch_overview_load_balancing_priority_levels>`.
* Priorities should range from 0 (highest) to N (lowest) without skipping.
*
* Optional: Per locality proximity value which indicates how close this
* locality is from the source locality. This value only provides ordering
* information (lower the value, closer it is to the source locality).
* This will be consumed by load balancing schemes that need proximity order
* to determine where to route the requests.
* [#not-implemented-hide:]
*
*
* .google.protobuf.UInt32Value proximity = 6;
* @return Whether the proximity field is set.
*/
public boolean hasProximity() {
return proximityBuilder_ != null || proximity_ != null;
}
/**
*
* Optional: Per locality proximity value which indicates how close this
* locality is from the source locality. This value only provides ordering
* information (lower the value, closer it is to the source locality).
* This will be consumed by load balancing schemes that need proximity order
* to determine where to route the requests.
* [#not-implemented-hide:]
*
* Optional: Per locality proximity value which indicates how close this
* locality is from the source locality. This value only provides ordering
* information (lower the value, closer it is to the source locality).
* This will be consumed by load balancing schemes that need proximity order
* to determine where to route the requests.
* [#not-implemented-hide:]
*
*
* .google.protobuf.UInt32Value proximity = 6;
*/
public Builder setProximity(com.google.protobuf.UInt32Value value) {
if (proximityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
proximity_ = value;
onChanged();
} else {
proximityBuilder_.setMessage(value);
}
return this;
}
/**
*
* Optional: Per locality proximity value which indicates how close this
* locality is from the source locality. This value only provides ordering
* information (lower the value, closer it is to the source locality).
* This will be consumed by load balancing schemes that need proximity order
* to determine where to route the requests.
* [#not-implemented-hide:]
*
* Optional: Per locality proximity value which indicates how close this
* locality is from the source locality. This value only provides ordering
* information (lower the value, closer it is to the source locality).
* This will be consumed by load balancing schemes that need proximity order
* to determine where to route the requests.
* [#not-implemented-hide:]
*
* Optional: Per locality proximity value which indicates how close this
* locality is from the source locality. This value only provides ordering
* information (lower the value, closer it is to the source locality).
* This will be consumed by load balancing schemes that need proximity order
* to determine where to route the requests.
* [#not-implemented-hide:]
*
* Optional: Per locality proximity value which indicates how close this
* locality is from the source locality. This value only provides ordering
* information (lower the value, closer it is to the source locality).
* This will be consumed by load balancing schemes that need proximity order
* to determine where to route the requests.
* [#not-implemented-hide:]
*
* Optional: Per locality proximity value which indicates how close this
* locality is from the source locality. This value only provides ordering
* information (lower the value, closer it is to the source locality).
* This will be consumed by load balancing schemes that need proximity order
* to determine where to route the requests.
* [#not-implemented-hide:]
*
* Optional: Per locality proximity value which indicates how close this
* locality is from the source locality. This value only provides ordering
* information (lower the value, closer it is to the source locality).
* This will be consumed by load balancing schemes that need proximity order
* to determine where to route the requests.
* [#not-implemented-hide:]
*
*
* .google.protobuf.UInt32Value proximity = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>
getProximityFieldBuilder() {
if (proximityBuilder_ == null) {
proximityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>(
getProximity(),
getParentForChildren(),
isClean());
proximity_ = null;
}
return proximityBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:envoy.config.endpoint.v3.LocalityLbEndpoints)
}
// @@protoc_insertion_point(class_scope:envoy.config.endpoint.v3.LocalityLbEndpoints)
private static final io.envoyproxy.envoy.config.endpoint.v3.LocalityLbEndpoints DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.endpoint.v3.LocalityLbEndpoints();
}
public static io.envoyproxy.envoy.config.endpoint.v3.LocalityLbEndpoints getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LocalityLbEndpoints parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LocalityLbEndpoints(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.envoyproxy.envoy.config.endpoint.v3.LocalityLbEndpoints getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}