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/api/v2/endpoint/endpoint.proto
package io.envoyproxy.envoy.api.v2.endpoint;
/**
*
* A group of endpoints belonging to a Locality.
* One can have multiple LocalityLbEndpoints for a locality, but this is
* generally only done if the different groups need to have different load
* balancing weights or different priorities.
*
*
* Protobuf type {@code envoy.api.v2.endpoint.LocalityLbEndpoints}
*/
public final class LocalityLbEndpoints extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.api.v2.endpoint.LocalityLbEndpoints)
LocalityLbEndpointsOrBuilder {
private static final long serialVersionUID = 0L;
// Use LocalityLbEndpoints.newBuilder() to construct.
private LocalityLbEndpoints(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LocalityLbEndpoints() {
lbEndpoints_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LocalityLbEndpoints();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LocalityLbEndpoints(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
io.envoyproxy.envoy.api.v2.core.Locality.Builder subBuilder = null;
if (locality_ != null) {
subBuilder = locality_.toBuilder();
}
locality_ = input.readMessage(io.envoyproxy.envoy.api.v2.core.Locality.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(locality_);
locality_ = subBuilder.buildPartial();
}
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
lbEndpoints_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
lbEndpoints_.add(
input.readMessage(io.envoyproxy.envoy.api.v2.endpoint.LbEndpoint.parser(), extensionRegistry));
break;
}
case 26: {
com.google.protobuf.UInt32Value.Builder subBuilder = null;
if (loadBalancingWeight_ != null) {
subBuilder = loadBalancingWeight_.toBuilder();
}
loadBalancingWeight_ = input.readMessage(com.google.protobuf.UInt32Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(loadBalancingWeight_);
loadBalancingWeight_ = subBuilder.buildPartial();
}
break;
}
case 40: {
priority_ = input.readUInt32();
break;
}
case 50: {
com.google.protobuf.UInt32Value.Builder subBuilder = null;
if (proximity_ != null) {
subBuilder = proximity_.toBuilder();
}
proximity_ = input.readMessage(com.google.protobuf.UInt32Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(proximity_);
proximity_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
lbEndpoints_ = java.util.Collections.unmodifiableList(lbEndpoints_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.api.v2.endpoint.EndpointProto.internal_static_envoy_api_v2_endpoint_LocalityLbEndpoints_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.api.v2.endpoint.EndpointProto.internal_static_envoy_api_v2_endpoint_LocalityLbEndpoints_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.api.v2.endpoint.LocalityLbEndpoints.class, io.envoyproxy.envoy.api.v2.endpoint.LocalityLbEndpoints.Builder.class);
}
public static final int LOCALITY_FIELD_NUMBER = 1;
private io.envoyproxy.envoy.api.v2.core.Locality locality_;
/**
*
* Identifies location of where the upstream hosts run.
*
* The group of endpoints belonging to the locality specified.
*
*
* repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2;
*/
public io.envoyproxy.envoy.api.v2.endpoint.LbEndpointOrBuilder getLbEndpointsOrBuilder(
int index) {
return lbEndpoints_.get(index);
}
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.
* 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.
* 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.
* 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) = { ... }
*/
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 all endpoints for a particular priority are
* unavailable/unhealthy, Envoy will fail over to selecting endpoints for the
* next highest priority group.
* Priorities should range from 0 (highest) to N (lowest) without skipping.
*
*
* uint32 priority = 5 [(.validate.rules) = { ... }
*/
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:]
*
* 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 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());
}
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());
}
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.api.v2.endpoint.LocalityLbEndpoints)) {
return super.equals(obj);
}
io.envoyproxy.envoy.api.v2.endpoint.LocalityLbEndpoints other = (io.envoyproxy.envoy.api.v2.endpoint.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 (!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();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.api.v2.endpoint.LocalityLbEndpoints parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.api.v2.endpoint.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.api.v2.endpoint.LocalityLbEndpoints parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.api.v2.endpoint.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.api.v2.endpoint.LocalityLbEndpoints parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.api.v2.endpoint.LocalityLbEndpoints parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.api.v2.endpoint.LocalityLbEndpoints parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.api.v2.endpoint.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.api.v2.endpoint.LocalityLbEndpoints parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.api.v2.endpoint.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.api.v2.endpoint.LocalityLbEndpoints parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.api.v2.endpoint.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.api.v2.endpoint.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 this is
* generally only done if the different groups need to have different load
* balancing weights or different priorities.
*
* 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.
* 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.
* 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.
* 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.
* 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.
* 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.
* 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.
* 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.
* 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.
* 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 all endpoints for a particular priority are
* unavailable/unhealthy, Envoy will fail over to selecting endpoints for the
* next highest priority group.
* Priorities should range from 0 (highest) to N (lowest) without skipping.
*
* 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 all endpoints for a particular priority are
* unavailable/unhealthy, Envoy will fail over to selecting endpoints for the
* next highest priority group.
* Priorities should range from 0 (highest) to N (lowest) without skipping.
*
* 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 all endpoints for a particular priority are
* unavailable/unhealthy, Envoy will fail over to selecting endpoints for the
* next highest priority group.
* 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:]
*
* 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.api.v2.endpoint.LocalityLbEndpoints)
}
// @@protoc_insertion_point(class_scope:envoy.api.v2.endpoint.LocalityLbEndpoints)
private static final io.envoyproxy.envoy.api.v2.endpoint.LocalityLbEndpoints DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.api.v2.endpoint.LocalityLbEndpoints();
}
public static io.envoyproxy.envoy.api.v2.endpoint.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.api.v2.endpoint.LocalityLbEndpoints getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}