mirror of https://github.com/grpc/grpc-java.git
Sync load_balancer.proto to latest version.
This commit is contained in:
parent
8a0c89a9f8
commit
63d54731cc
|
|
@ -15,6 +15,7 @@ public final class InitialLoadBalanceResponse extends
|
||||||
super(builder);
|
super(builder);
|
||||||
}
|
}
|
||||||
private InitialLoadBalanceResponse() {
|
private InitialLoadBalanceResponse() {
|
||||||
|
loadBalancerDelegate_ = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
@java.lang.Override
|
@java.lang.Override
|
||||||
|
|
@ -42,13 +43,13 @@ public final class InitialLoadBalanceResponse extends
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 18: {
|
case 10: {
|
||||||
java.lang.String s = input.readStringRequireUtf8();
|
java.lang.String s = input.readStringRequireUtf8();
|
||||||
initialResponseTypeCase_ = 2;
|
|
||||||
initialResponseType_ = s;
|
loadBalancerDelegate_ = s;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 26: {
|
case 18: {
|
||||||
com.google.protobuf.Duration.Builder subBuilder = null;
|
com.google.protobuf.Duration.Builder subBuilder = null;
|
||||||
if (clientStatsReportInterval_ != null) {
|
if (clientStatsReportInterval_ != null) {
|
||||||
subBuilder = clientStatsReportInterval_.toBuilder();
|
subBuilder = clientStatsReportInterval_.toBuilder();
|
||||||
|
|
@ -84,100 +85,55 @@ public final class InitialLoadBalanceResponse extends
|
||||||
io.grpc.grpclb.InitialLoadBalanceResponse.class, io.grpc.grpclb.InitialLoadBalanceResponse.Builder.class);
|
io.grpc.grpclb.InitialLoadBalanceResponse.class, io.grpc.grpclb.InitialLoadBalanceResponse.Builder.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
private int initialResponseTypeCase_ = 0;
|
public static final int LOAD_BALANCER_DELEGATE_FIELD_NUMBER = 1;
|
||||||
private java.lang.Object initialResponseType_;
|
private volatile java.lang.Object loadBalancerDelegate_;
|
||||||
public enum InitialResponseTypeCase
|
|
||||||
implements com.google.protobuf.Internal.EnumLite {
|
|
||||||
LOAD_BALANCER_DELEGATE(2),
|
|
||||||
INITIALRESPONSETYPE_NOT_SET(0);
|
|
||||||
private final int value;
|
|
||||||
private InitialResponseTypeCase(int value) {
|
|
||||||
this.value = value;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @deprecated Use {@link #forNumber(int)} instead.
|
|
||||||
*/
|
|
||||||
@java.lang.Deprecated
|
|
||||||
public static InitialResponseTypeCase valueOf(int value) {
|
|
||||||
return forNumber(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static InitialResponseTypeCase forNumber(int value) {
|
|
||||||
switch (value) {
|
|
||||||
case 2: return LOAD_BALANCER_DELEGATE;
|
|
||||||
case 0: return INITIALRESPONSETYPE_NOT_SET;
|
|
||||||
default: return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
public int getNumber() {
|
|
||||||
return this.value;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
public InitialResponseTypeCase
|
|
||||||
getInitialResponseTypeCase() {
|
|
||||||
return InitialResponseTypeCase.forNumber(
|
|
||||||
initialResponseTypeCase_);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final int LOAD_BALANCER_DELEGATE_FIELD_NUMBER = 2;
|
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* This is an application layer redirect that indicates the client should
|
* This is an application layer redirect that indicates the client should use
|
||||||
* use the specified server for load balancing. When this field is set in
|
* the specified server for load balancing. When this field is non-empty in
|
||||||
* the response, the client should open a separate connection to the
|
* the response, the client should open a separate connection to the
|
||||||
* load_balancer_delegate and call the BalanceLoad method.
|
* load_balancer_delegate and call the BalanceLoad method.
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>optional string load_balancer_delegate = 2;</code>
|
* <code>optional string load_balancer_delegate = 1;</code>
|
||||||
*/
|
*/
|
||||||
public java.lang.String getLoadBalancerDelegate() {
|
public java.lang.String getLoadBalancerDelegate() {
|
||||||
java.lang.Object ref = "";
|
java.lang.Object ref = loadBalancerDelegate_;
|
||||||
if (initialResponseTypeCase_ == 2) {
|
|
||||||
ref = initialResponseType_;
|
|
||||||
}
|
|
||||||
if (ref instanceof java.lang.String) {
|
if (ref instanceof java.lang.String) {
|
||||||
return (java.lang.String) ref;
|
return (java.lang.String) ref;
|
||||||
} else {
|
} else {
|
||||||
com.google.protobuf.ByteString bs =
|
com.google.protobuf.ByteString bs =
|
||||||
(com.google.protobuf.ByteString) ref;
|
(com.google.protobuf.ByteString) ref;
|
||||||
java.lang.String s = bs.toStringUtf8();
|
java.lang.String s = bs.toStringUtf8();
|
||||||
if (initialResponseTypeCase_ == 2) {
|
loadBalancerDelegate_ = s;
|
||||||
initialResponseType_ = s;
|
|
||||||
}
|
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* This is an application layer redirect that indicates the client should
|
* This is an application layer redirect that indicates the client should use
|
||||||
* use the specified server for load balancing. When this field is set in
|
* the specified server for load balancing. When this field is non-empty in
|
||||||
* the response, the client should open a separate connection to the
|
* the response, the client should open a separate connection to the
|
||||||
* load_balancer_delegate and call the BalanceLoad method.
|
* load_balancer_delegate and call the BalanceLoad method.
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>optional string load_balancer_delegate = 2;</code>
|
* <code>optional string load_balancer_delegate = 1;</code>
|
||||||
*/
|
*/
|
||||||
public com.google.protobuf.ByteString
|
public com.google.protobuf.ByteString
|
||||||
getLoadBalancerDelegateBytes() {
|
getLoadBalancerDelegateBytes() {
|
||||||
java.lang.Object ref = "";
|
java.lang.Object ref = loadBalancerDelegate_;
|
||||||
if (initialResponseTypeCase_ == 2) {
|
|
||||||
ref = initialResponseType_;
|
|
||||||
}
|
|
||||||
if (ref instanceof java.lang.String) {
|
if (ref instanceof java.lang.String) {
|
||||||
com.google.protobuf.ByteString b =
|
com.google.protobuf.ByteString b =
|
||||||
com.google.protobuf.ByteString.copyFromUtf8(
|
com.google.protobuf.ByteString.copyFromUtf8(
|
||||||
(java.lang.String) ref);
|
(java.lang.String) ref);
|
||||||
if (initialResponseTypeCase_ == 2) {
|
loadBalancerDelegate_ = b;
|
||||||
initialResponseType_ = b;
|
|
||||||
}
|
|
||||||
return b;
|
return b;
|
||||||
} else {
|
} else {
|
||||||
return (com.google.protobuf.ByteString) ref;
|
return (com.google.protobuf.ByteString) ref;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final int CLIENT_STATS_REPORT_INTERVAL_FIELD_NUMBER = 3;
|
public static final int CLIENT_STATS_REPORT_INTERVAL_FIELD_NUMBER = 2;
|
||||||
private com.google.protobuf.Duration clientStatsReportInterval_;
|
private com.google.protobuf.Duration clientStatsReportInterval_;
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
|
|
@ -186,7 +142,7 @@ public final class InitialLoadBalanceResponse extends
|
||||||
* positive.
|
* positive.
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>optional .google.protobuf.Duration client_stats_report_interval = 3;</code>
|
* <code>optional .google.protobuf.Duration client_stats_report_interval = 2;</code>
|
||||||
*/
|
*/
|
||||||
public boolean hasClientStatsReportInterval() {
|
public boolean hasClientStatsReportInterval() {
|
||||||
return clientStatsReportInterval_ != null;
|
return clientStatsReportInterval_ != null;
|
||||||
|
|
@ -198,7 +154,7 @@ public final class InitialLoadBalanceResponse extends
|
||||||
* positive.
|
* positive.
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>optional .google.protobuf.Duration client_stats_report_interval = 3;</code>
|
* <code>optional .google.protobuf.Duration client_stats_report_interval = 2;</code>
|
||||||
*/
|
*/
|
||||||
public com.google.protobuf.Duration getClientStatsReportInterval() {
|
public com.google.protobuf.Duration getClientStatsReportInterval() {
|
||||||
return clientStatsReportInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : clientStatsReportInterval_;
|
return clientStatsReportInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : clientStatsReportInterval_;
|
||||||
|
|
@ -210,7 +166,7 @@ public final class InitialLoadBalanceResponse extends
|
||||||
* positive.
|
* positive.
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>optional .google.protobuf.Duration client_stats_report_interval = 3;</code>
|
* <code>optional .google.protobuf.Duration client_stats_report_interval = 2;</code>
|
||||||
*/
|
*/
|
||||||
public com.google.protobuf.DurationOrBuilder getClientStatsReportIntervalOrBuilder() {
|
public com.google.protobuf.DurationOrBuilder getClientStatsReportIntervalOrBuilder() {
|
||||||
return getClientStatsReportInterval();
|
return getClientStatsReportInterval();
|
||||||
|
|
@ -228,11 +184,11 @@ public final class InitialLoadBalanceResponse extends
|
||||||
|
|
||||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||||
throws java.io.IOException {
|
throws java.io.IOException {
|
||||||
if (initialResponseTypeCase_ == 2) {
|
if (!getLoadBalancerDelegateBytes().isEmpty()) {
|
||||||
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, initialResponseType_);
|
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, loadBalancerDelegate_);
|
||||||
}
|
}
|
||||||
if (clientStatsReportInterval_ != null) {
|
if (clientStatsReportInterval_ != null) {
|
||||||
output.writeMessage(3, getClientStatsReportInterval());
|
output.writeMessage(2, getClientStatsReportInterval());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -241,12 +197,12 @@ public final class InitialLoadBalanceResponse extends
|
||||||
if (size != -1) return size;
|
if (size != -1) return size;
|
||||||
|
|
||||||
size = 0;
|
size = 0;
|
||||||
if (initialResponseTypeCase_ == 2) {
|
if (!getLoadBalancerDelegateBytes().isEmpty()) {
|
||||||
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, initialResponseType_);
|
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, loadBalancerDelegate_);
|
||||||
}
|
}
|
||||||
if (clientStatsReportInterval_ != null) {
|
if (clientStatsReportInterval_ != null) {
|
||||||
size += com.google.protobuf.CodedOutputStream
|
size += com.google.protobuf.CodedOutputStream
|
||||||
.computeMessageSize(3, getClientStatsReportInterval());
|
.computeMessageSize(2, getClientStatsReportInterval());
|
||||||
}
|
}
|
||||||
memoizedSize = size;
|
memoizedSize = size;
|
||||||
return size;
|
return size;
|
||||||
|
|
@ -264,22 +220,13 @@ public final class InitialLoadBalanceResponse extends
|
||||||
io.grpc.grpclb.InitialLoadBalanceResponse other = (io.grpc.grpclb.InitialLoadBalanceResponse) obj;
|
io.grpc.grpclb.InitialLoadBalanceResponse other = (io.grpc.grpclb.InitialLoadBalanceResponse) obj;
|
||||||
|
|
||||||
boolean result = true;
|
boolean result = true;
|
||||||
|
result = result && getLoadBalancerDelegate()
|
||||||
|
.equals(other.getLoadBalancerDelegate());
|
||||||
result = result && (hasClientStatsReportInterval() == other.hasClientStatsReportInterval());
|
result = result && (hasClientStatsReportInterval() == other.hasClientStatsReportInterval());
|
||||||
if (hasClientStatsReportInterval()) {
|
if (hasClientStatsReportInterval()) {
|
||||||
result = result && getClientStatsReportInterval()
|
result = result && getClientStatsReportInterval()
|
||||||
.equals(other.getClientStatsReportInterval());
|
.equals(other.getClientStatsReportInterval());
|
||||||
}
|
}
|
||||||
result = result && getInitialResponseTypeCase().equals(
|
|
||||||
other.getInitialResponseTypeCase());
|
|
||||||
if (!result) return false;
|
|
||||||
switch (initialResponseTypeCase_) {
|
|
||||||
case 2:
|
|
||||||
result = result && getLoadBalancerDelegate()
|
|
||||||
.equals(other.getLoadBalancerDelegate());
|
|
||||||
break;
|
|
||||||
case 0:
|
|
||||||
default:
|
|
||||||
}
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -290,18 +237,12 @@ public final class InitialLoadBalanceResponse extends
|
||||||
}
|
}
|
||||||
int hash = 41;
|
int hash = 41;
|
||||||
hash = (19 * hash) + getDescriptorForType().hashCode();
|
hash = (19 * hash) + getDescriptorForType().hashCode();
|
||||||
|
hash = (37 * hash) + LOAD_BALANCER_DELEGATE_FIELD_NUMBER;
|
||||||
|
hash = (53 * hash) + getLoadBalancerDelegate().hashCode();
|
||||||
if (hasClientStatsReportInterval()) {
|
if (hasClientStatsReportInterval()) {
|
||||||
hash = (37 * hash) + CLIENT_STATS_REPORT_INTERVAL_FIELD_NUMBER;
|
hash = (37 * hash) + CLIENT_STATS_REPORT_INTERVAL_FIELD_NUMBER;
|
||||||
hash = (53 * hash) + getClientStatsReportInterval().hashCode();
|
hash = (53 * hash) + getClientStatsReportInterval().hashCode();
|
||||||
}
|
}
|
||||||
switch (initialResponseTypeCase_) {
|
|
||||||
case 2:
|
|
||||||
hash = (37 * hash) + LOAD_BALANCER_DELEGATE_FIELD_NUMBER;
|
|
||||||
hash = (53 * hash) + getLoadBalancerDelegate().hashCode();
|
|
||||||
break;
|
|
||||||
case 0:
|
|
||||||
default:
|
|
||||||
}
|
|
||||||
hash = (29 * hash) + unknownFields.hashCode();
|
hash = (29 * hash) + unknownFields.hashCode();
|
||||||
memoizedHashCode = hash;
|
memoizedHashCode = hash;
|
||||||
return hash;
|
return hash;
|
||||||
|
|
@ -420,14 +361,14 @@ public final class InitialLoadBalanceResponse extends
|
||||||
}
|
}
|
||||||
public Builder clear() {
|
public Builder clear() {
|
||||||
super.clear();
|
super.clear();
|
||||||
|
loadBalancerDelegate_ = "";
|
||||||
|
|
||||||
if (clientStatsReportIntervalBuilder_ == null) {
|
if (clientStatsReportIntervalBuilder_ == null) {
|
||||||
clientStatsReportInterval_ = null;
|
clientStatsReportInterval_ = null;
|
||||||
} else {
|
} else {
|
||||||
clientStatsReportInterval_ = null;
|
clientStatsReportInterval_ = null;
|
||||||
clientStatsReportIntervalBuilder_ = null;
|
clientStatsReportIntervalBuilder_ = null;
|
||||||
}
|
}
|
||||||
initialResponseTypeCase_ = 0;
|
|
||||||
initialResponseType_ = null;
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -450,15 +391,12 @@ public final class InitialLoadBalanceResponse extends
|
||||||
|
|
||||||
public io.grpc.grpclb.InitialLoadBalanceResponse buildPartial() {
|
public io.grpc.grpclb.InitialLoadBalanceResponse buildPartial() {
|
||||||
io.grpc.grpclb.InitialLoadBalanceResponse result = new io.grpc.grpclb.InitialLoadBalanceResponse(this);
|
io.grpc.grpclb.InitialLoadBalanceResponse result = new io.grpc.grpclb.InitialLoadBalanceResponse(this);
|
||||||
if (initialResponseTypeCase_ == 2) {
|
result.loadBalancerDelegate_ = loadBalancerDelegate_;
|
||||||
result.initialResponseType_ = initialResponseType_;
|
|
||||||
}
|
|
||||||
if (clientStatsReportIntervalBuilder_ == null) {
|
if (clientStatsReportIntervalBuilder_ == null) {
|
||||||
result.clientStatsReportInterval_ = clientStatsReportInterval_;
|
result.clientStatsReportInterval_ = clientStatsReportInterval_;
|
||||||
} else {
|
} else {
|
||||||
result.clientStatsReportInterval_ = clientStatsReportIntervalBuilder_.build();
|
result.clientStatsReportInterval_ = clientStatsReportIntervalBuilder_.build();
|
||||||
}
|
}
|
||||||
result.initialResponseTypeCase_ = initialResponseTypeCase_;
|
|
||||||
onBuilt();
|
onBuilt();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
@ -500,20 +438,13 @@ public final class InitialLoadBalanceResponse extends
|
||||||
|
|
||||||
public Builder mergeFrom(io.grpc.grpclb.InitialLoadBalanceResponse other) {
|
public Builder mergeFrom(io.grpc.grpclb.InitialLoadBalanceResponse other) {
|
||||||
if (other == io.grpc.grpclb.InitialLoadBalanceResponse.getDefaultInstance()) return this;
|
if (other == io.grpc.grpclb.InitialLoadBalanceResponse.getDefaultInstance()) return this;
|
||||||
|
if (!other.getLoadBalancerDelegate().isEmpty()) {
|
||||||
|
loadBalancerDelegate_ = other.loadBalancerDelegate_;
|
||||||
|
onChanged();
|
||||||
|
}
|
||||||
if (other.hasClientStatsReportInterval()) {
|
if (other.hasClientStatsReportInterval()) {
|
||||||
mergeClientStatsReportInterval(other.getClientStatsReportInterval());
|
mergeClientStatsReportInterval(other.getClientStatsReportInterval());
|
||||||
}
|
}
|
||||||
switch (other.getInitialResponseTypeCase()) {
|
|
||||||
case LOAD_BALANCER_DELEGATE: {
|
|
||||||
initialResponseTypeCase_ = 2;
|
|
||||||
initialResponseType_ = other.initialResponseType_;
|
|
||||||
onChanged();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case INITIALRESPONSETYPE_NOT_SET: {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
onChanged();
|
onChanged();
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
@ -539,44 +470,25 @@ public final class InitialLoadBalanceResponse extends
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
private int initialResponseTypeCase_ = 0;
|
|
||||||
private java.lang.Object initialResponseType_;
|
|
||||||
public InitialResponseTypeCase
|
|
||||||
getInitialResponseTypeCase() {
|
|
||||||
return InitialResponseTypeCase.forNumber(
|
|
||||||
initialResponseTypeCase_);
|
|
||||||
}
|
|
||||||
|
|
||||||
public Builder clearInitialResponseType() {
|
|
||||||
initialResponseTypeCase_ = 0;
|
|
||||||
initialResponseType_ = null;
|
|
||||||
onChanged();
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
private java.lang.Object loadBalancerDelegate_ = "";
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* This is an application layer redirect that indicates the client should
|
* This is an application layer redirect that indicates the client should use
|
||||||
* use the specified server for load balancing. When this field is set in
|
* the specified server for load balancing. When this field is non-empty in
|
||||||
* the response, the client should open a separate connection to the
|
* the response, the client should open a separate connection to the
|
||||||
* load_balancer_delegate and call the BalanceLoad method.
|
* load_balancer_delegate and call the BalanceLoad method.
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>optional string load_balancer_delegate = 2;</code>
|
* <code>optional string load_balancer_delegate = 1;</code>
|
||||||
*/
|
*/
|
||||||
public java.lang.String getLoadBalancerDelegate() {
|
public java.lang.String getLoadBalancerDelegate() {
|
||||||
java.lang.Object ref = "";
|
java.lang.Object ref = loadBalancerDelegate_;
|
||||||
if (initialResponseTypeCase_ == 2) {
|
|
||||||
ref = initialResponseType_;
|
|
||||||
}
|
|
||||||
if (!(ref instanceof java.lang.String)) {
|
if (!(ref instanceof java.lang.String)) {
|
||||||
com.google.protobuf.ByteString bs =
|
com.google.protobuf.ByteString bs =
|
||||||
(com.google.protobuf.ByteString) ref;
|
(com.google.protobuf.ByteString) ref;
|
||||||
java.lang.String s = bs.toStringUtf8();
|
java.lang.String s = bs.toStringUtf8();
|
||||||
if (initialResponseTypeCase_ == 2) {
|
loadBalancerDelegate_ = s;
|
||||||
initialResponseType_ = s;
|
|
||||||
}
|
|
||||||
return s;
|
return s;
|
||||||
} else {
|
} else {
|
||||||
return (java.lang.String) ref;
|
return (java.lang.String) ref;
|
||||||
|
|
@ -584,27 +496,22 @@ public final class InitialLoadBalanceResponse extends
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* This is an application layer redirect that indicates the client should
|
* This is an application layer redirect that indicates the client should use
|
||||||
* use the specified server for load balancing. When this field is set in
|
* the specified server for load balancing. When this field is non-empty in
|
||||||
* the response, the client should open a separate connection to the
|
* the response, the client should open a separate connection to the
|
||||||
* load_balancer_delegate and call the BalanceLoad method.
|
* load_balancer_delegate and call the BalanceLoad method.
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>optional string load_balancer_delegate = 2;</code>
|
* <code>optional string load_balancer_delegate = 1;</code>
|
||||||
*/
|
*/
|
||||||
public com.google.protobuf.ByteString
|
public com.google.protobuf.ByteString
|
||||||
getLoadBalancerDelegateBytes() {
|
getLoadBalancerDelegateBytes() {
|
||||||
java.lang.Object ref = "";
|
java.lang.Object ref = loadBalancerDelegate_;
|
||||||
if (initialResponseTypeCase_ == 2) {
|
|
||||||
ref = initialResponseType_;
|
|
||||||
}
|
|
||||||
if (ref instanceof String) {
|
if (ref instanceof String) {
|
||||||
com.google.protobuf.ByteString b =
|
com.google.protobuf.ByteString b =
|
||||||
com.google.protobuf.ByteString.copyFromUtf8(
|
com.google.protobuf.ByteString.copyFromUtf8(
|
||||||
(java.lang.String) ref);
|
(java.lang.String) ref);
|
||||||
if (initialResponseTypeCase_ == 2) {
|
loadBalancerDelegate_ = b;
|
||||||
initialResponseType_ = b;
|
|
||||||
}
|
|
||||||
return b;
|
return b;
|
||||||
} else {
|
} else {
|
||||||
return (com.google.protobuf.ByteString) ref;
|
return (com.google.protobuf.ByteString) ref;
|
||||||
|
|
@ -612,51 +519,49 @@ public final class InitialLoadBalanceResponse extends
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* This is an application layer redirect that indicates the client should
|
* This is an application layer redirect that indicates the client should use
|
||||||
* use the specified server for load balancing. When this field is set in
|
* the specified server for load balancing. When this field is non-empty in
|
||||||
* the response, the client should open a separate connection to the
|
* the response, the client should open a separate connection to the
|
||||||
* load_balancer_delegate and call the BalanceLoad method.
|
* load_balancer_delegate and call the BalanceLoad method.
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>optional string load_balancer_delegate = 2;</code>
|
* <code>optional string load_balancer_delegate = 1;</code>
|
||||||
*/
|
*/
|
||||||
public Builder setLoadBalancerDelegate(
|
public Builder setLoadBalancerDelegate(
|
||||||
java.lang.String value) {
|
java.lang.String value) {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
throw new NullPointerException();
|
throw new NullPointerException();
|
||||||
}
|
}
|
||||||
initialResponseTypeCase_ = 2;
|
|
||||||
initialResponseType_ = value;
|
loadBalancerDelegate_ = value;
|
||||||
onChanged();
|
onChanged();
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* This is an application layer redirect that indicates the client should
|
* This is an application layer redirect that indicates the client should use
|
||||||
* use the specified server for load balancing. When this field is set in
|
* the specified server for load balancing. When this field is non-empty in
|
||||||
* the response, the client should open a separate connection to the
|
* the response, the client should open a separate connection to the
|
||||||
* load_balancer_delegate and call the BalanceLoad method.
|
* load_balancer_delegate and call the BalanceLoad method.
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>optional string load_balancer_delegate = 2;</code>
|
* <code>optional string load_balancer_delegate = 1;</code>
|
||||||
*/
|
*/
|
||||||
public Builder clearLoadBalancerDelegate() {
|
public Builder clearLoadBalancerDelegate() {
|
||||||
if (initialResponseTypeCase_ == 2) {
|
|
||||||
initialResponseTypeCase_ = 0;
|
loadBalancerDelegate_ = getDefaultInstance().getLoadBalancerDelegate();
|
||||||
initialResponseType_ = null;
|
onChanged();
|
||||||
onChanged();
|
|
||||||
}
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* This is an application layer redirect that indicates the client should
|
* This is an application layer redirect that indicates the client should use
|
||||||
* use the specified server for load balancing. When this field is set in
|
* the specified server for load balancing. When this field is non-empty in
|
||||||
* the response, the client should open a separate connection to the
|
* the response, the client should open a separate connection to the
|
||||||
* load_balancer_delegate and call the BalanceLoad method.
|
* load_balancer_delegate and call the BalanceLoad method.
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>optional string load_balancer_delegate = 2;</code>
|
* <code>optional string load_balancer_delegate = 1;</code>
|
||||||
*/
|
*/
|
||||||
public Builder setLoadBalancerDelegateBytes(
|
public Builder setLoadBalancerDelegateBytes(
|
||||||
com.google.protobuf.ByteString value) {
|
com.google.protobuf.ByteString value) {
|
||||||
|
|
@ -664,8 +569,8 @@ public final class InitialLoadBalanceResponse extends
|
||||||
throw new NullPointerException();
|
throw new NullPointerException();
|
||||||
}
|
}
|
||||||
checkByteStringIsUtf8(value);
|
checkByteStringIsUtf8(value);
|
||||||
initialResponseTypeCase_ = 2;
|
|
||||||
initialResponseType_ = value;
|
loadBalancerDelegate_ = value;
|
||||||
onChanged();
|
onChanged();
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
@ -680,7 +585,7 @@ public final class InitialLoadBalanceResponse extends
|
||||||
* positive.
|
* positive.
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>optional .google.protobuf.Duration client_stats_report_interval = 3;</code>
|
* <code>optional .google.protobuf.Duration client_stats_report_interval = 2;</code>
|
||||||
*/
|
*/
|
||||||
public boolean hasClientStatsReportInterval() {
|
public boolean hasClientStatsReportInterval() {
|
||||||
return clientStatsReportIntervalBuilder_ != null || clientStatsReportInterval_ != null;
|
return clientStatsReportIntervalBuilder_ != null || clientStatsReportInterval_ != null;
|
||||||
|
|
@ -692,7 +597,7 @@ public final class InitialLoadBalanceResponse extends
|
||||||
* positive.
|
* positive.
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>optional .google.protobuf.Duration client_stats_report_interval = 3;</code>
|
* <code>optional .google.protobuf.Duration client_stats_report_interval = 2;</code>
|
||||||
*/
|
*/
|
||||||
public com.google.protobuf.Duration getClientStatsReportInterval() {
|
public com.google.protobuf.Duration getClientStatsReportInterval() {
|
||||||
if (clientStatsReportIntervalBuilder_ == null) {
|
if (clientStatsReportIntervalBuilder_ == null) {
|
||||||
|
|
@ -708,7 +613,7 @@ public final class InitialLoadBalanceResponse extends
|
||||||
* positive.
|
* positive.
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>optional .google.protobuf.Duration client_stats_report_interval = 3;</code>
|
* <code>optional .google.protobuf.Duration client_stats_report_interval = 2;</code>
|
||||||
*/
|
*/
|
||||||
public Builder setClientStatsReportInterval(com.google.protobuf.Duration value) {
|
public Builder setClientStatsReportInterval(com.google.protobuf.Duration value) {
|
||||||
if (clientStatsReportIntervalBuilder_ == null) {
|
if (clientStatsReportIntervalBuilder_ == null) {
|
||||||
|
|
@ -730,7 +635,7 @@ public final class InitialLoadBalanceResponse extends
|
||||||
* positive.
|
* positive.
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>optional .google.protobuf.Duration client_stats_report_interval = 3;</code>
|
* <code>optional .google.protobuf.Duration client_stats_report_interval = 2;</code>
|
||||||
*/
|
*/
|
||||||
public Builder setClientStatsReportInterval(
|
public Builder setClientStatsReportInterval(
|
||||||
com.google.protobuf.Duration.Builder builderForValue) {
|
com.google.protobuf.Duration.Builder builderForValue) {
|
||||||
|
|
@ -750,7 +655,7 @@ public final class InitialLoadBalanceResponse extends
|
||||||
* positive.
|
* positive.
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>optional .google.protobuf.Duration client_stats_report_interval = 3;</code>
|
* <code>optional .google.protobuf.Duration client_stats_report_interval = 2;</code>
|
||||||
*/
|
*/
|
||||||
public Builder mergeClientStatsReportInterval(com.google.protobuf.Duration value) {
|
public Builder mergeClientStatsReportInterval(com.google.protobuf.Duration value) {
|
||||||
if (clientStatsReportIntervalBuilder_ == null) {
|
if (clientStatsReportIntervalBuilder_ == null) {
|
||||||
|
|
@ -774,7 +679,7 @@ public final class InitialLoadBalanceResponse extends
|
||||||
* positive.
|
* positive.
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>optional .google.protobuf.Duration client_stats_report_interval = 3;</code>
|
* <code>optional .google.protobuf.Duration client_stats_report_interval = 2;</code>
|
||||||
*/
|
*/
|
||||||
public Builder clearClientStatsReportInterval() {
|
public Builder clearClientStatsReportInterval() {
|
||||||
if (clientStatsReportIntervalBuilder_ == null) {
|
if (clientStatsReportIntervalBuilder_ == null) {
|
||||||
|
|
@ -794,7 +699,7 @@ public final class InitialLoadBalanceResponse extends
|
||||||
* positive.
|
* positive.
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>optional .google.protobuf.Duration client_stats_report_interval = 3;</code>
|
* <code>optional .google.protobuf.Duration client_stats_report_interval = 2;</code>
|
||||||
*/
|
*/
|
||||||
public com.google.protobuf.Duration.Builder getClientStatsReportIntervalBuilder() {
|
public com.google.protobuf.Duration.Builder getClientStatsReportIntervalBuilder() {
|
||||||
|
|
||||||
|
|
@ -808,7 +713,7 @@ public final class InitialLoadBalanceResponse extends
|
||||||
* positive.
|
* positive.
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>optional .google.protobuf.Duration client_stats_report_interval = 3;</code>
|
* <code>optional .google.protobuf.Duration client_stats_report_interval = 2;</code>
|
||||||
*/
|
*/
|
||||||
public com.google.protobuf.DurationOrBuilder getClientStatsReportIntervalOrBuilder() {
|
public com.google.protobuf.DurationOrBuilder getClientStatsReportIntervalOrBuilder() {
|
||||||
if (clientStatsReportIntervalBuilder_ != null) {
|
if (clientStatsReportIntervalBuilder_ != null) {
|
||||||
|
|
@ -825,7 +730,7 @@ public final class InitialLoadBalanceResponse extends
|
||||||
* positive.
|
* positive.
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>optional .google.protobuf.Duration client_stats_report_interval = 3;</code>
|
* <code>optional .google.protobuf.Duration client_stats_report_interval = 2;</code>
|
||||||
*/
|
*/
|
||||||
private com.google.protobuf.SingleFieldBuilderV3<
|
private com.google.protobuf.SingleFieldBuilderV3<
|
||||||
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
|
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
|
||||||
|
|
|
||||||
|
|
@ -9,24 +9,24 @@ public interface InitialLoadBalanceResponseOrBuilder extends
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* This is an application layer redirect that indicates the client should
|
* This is an application layer redirect that indicates the client should use
|
||||||
* use the specified server for load balancing. When this field is set in
|
* the specified server for load balancing. When this field is non-empty in
|
||||||
* the response, the client should open a separate connection to the
|
* the response, the client should open a separate connection to the
|
||||||
* load_balancer_delegate and call the BalanceLoad method.
|
* load_balancer_delegate and call the BalanceLoad method.
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>optional string load_balancer_delegate = 2;</code>
|
* <code>optional string load_balancer_delegate = 1;</code>
|
||||||
*/
|
*/
|
||||||
java.lang.String getLoadBalancerDelegate();
|
java.lang.String getLoadBalancerDelegate();
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* This is an application layer redirect that indicates the client should
|
* This is an application layer redirect that indicates the client should use
|
||||||
* use the specified server for load balancing. When this field is set in
|
* the specified server for load balancing. When this field is non-empty in
|
||||||
* the response, the client should open a separate connection to the
|
* the response, the client should open a separate connection to the
|
||||||
* load_balancer_delegate and call the BalanceLoad method.
|
* load_balancer_delegate and call the BalanceLoad method.
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>optional string load_balancer_delegate = 2;</code>
|
* <code>optional string load_balancer_delegate = 1;</code>
|
||||||
*/
|
*/
|
||||||
com.google.protobuf.ByteString
|
com.google.protobuf.ByteString
|
||||||
getLoadBalancerDelegateBytes();
|
getLoadBalancerDelegateBytes();
|
||||||
|
|
@ -38,7 +38,7 @@ public interface InitialLoadBalanceResponseOrBuilder extends
|
||||||
* positive.
|
* positive.
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>optional .google.protobuf.Duration client_stats_report_interval = 3;</code>
|
* <code>optional .google.protobuf.Duration client_stats_report_interval = 2;</code>
|
||||||
*/
|
*/
|
||||||
boolean hasClientStatsReportInterval();
|
boolean hasClientStatsReportInterval();
|
||||||
/**
|
/**
|
||||||
|
|
@ -48,7 +48,7 @@ public interface InitialLoadBalanceResponseOrBuilder extends
|
||||||
* positive.
|
* positive.
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>optional .google.protobuf.Duration client_stats_report_interval = 3;</code>
|
* <code>optional .google.protobuf.Duration client_stats_report_interval = 2;</code>
|
||||||
*/
|
*/
|
||||||
com.google.protobuf.Duration getClientStatsReportInterval();
|
com.google.protobuf.Duration getClientStatsReportInterval();
|
||||||
/**
|
/**
|
||||||
|
|
@ -58,9 +58,7 @@ public interface InitialLoadBalanceResponseOrBuilder extends
|
||||||
* positive.
|
* positive.
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>optional .google.protobuf.Duration client_stats_report_interval = 3;</code>
|
* <code>optional .google.protobuf.Duration client_stats_report_interval = 2;</code>
|
||||||
*/
|
*/
|
||||||
com.google.protobuf.DurationOrBuilder getClientStatsReportIntervalOrBuilder();
|
com.google.protobuf.DurationOrBuilder getClientStatsReportIntervalOrBuilder();
|
||||||
|
|
||||||
public io.grpc.grpclb.InitialLoadBalanceResponse.InitialResponseTypeCase getInitialResponseTypeCase();
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -71,19 +71,19 @@ public final class LoadBalancerProto {
|
||||||
"al_response\030\001 \001(\0132&.grpc.lb.v1.InitialLo" +
|
"al_response\030\001 \001(\0132&.grpc.lb.v1.InitialLo" +
|
||||||
"adBalanceResponseH\000\022-\n\013server_list\030\002 \001(\013" +
|
"adBalanceResponseH\000\022-\n\013server_list\030\002 \001(\013" +
|
||||||
"2\026.grpc.lb.v1.ServerListH\000B\034\n\032load_balan" +
|
"2\026.grpc.lb.v1.ServerListH\000B\034\n\032load_balan" +
|
||||||
"ce_response_type\"\230\001\n\032InitialLoadBalanceR" +
|
"ce_response_type\"}\n\032InitialLoadBalanceRe" +
|
||||||
"esponse\022 \n\026load_balancer_delegate\030\002 \001(\tH" +
|
"sponse\022\036\n\026load_balancer_delegate\030\001 \001(\t\022?" +
|
||||||
"\000\022?\n\034client_stats_report_interval\030\003 \001(\0132" +
|
"\n\034client_stats_report_interval\030\002 \001(\0132\031.g" +
|
||||||
"\031.google.protobuf.DurationB\027\n\025initial_re" +
|
"oogle.protobuf.Duration\"i\n\nServerList\022#\n" +
|
||||||
"sponse_type\"i\n\nServerList\022#\n\007servers\030\001 \003" +
|
"\007servers\030\001 \003(\0132\022.grpc.lb.v1.Server\0226\n\023ex" +
|
||||||
"(\0132\022.grpc.lb.v1.Server\0226\n\023expiration_int" +
|
"piration_interval\030\003 \001(\0132\031.google.protobu" +
|
||||||
"erval\030\003 \001(\0132\031.google.protobuf.Duration\"\\",
|
"f.Duration\"\\\n\006Server\022\022\n\nip_address\030\001 \001(\014",
|
||||||
"\n\006Server\022\022\n\nip_address\030\001 \001(\014\022\014\n\004port\030\002 \001" +
|
"\022\014\n\004port\030\002 \001(\005\022\032\n\022load_balance_token\030\003 \001" +
|
||||||
"(\005\022\032\n\022load_balance_token\030\003 \001(\t\022\024\n\014drop_r" +
|
"(\t\022\024\n\014drop_request\030\004 \001(\0102b\n\014LoadBalancer" +
|
||||||
"equest\030\004 \001(\0102b\n\014LoadBalancer\022R\n\013BalanceL" +
|
"\022R\n\013BalanceLoad\022\036.grpc.lb.v1.LoadBalance" +
|
||||||
"oad\022\036.grpc.lb.v1.LoadBalanceRequest\032\037.gr" +
|
"Request\032\037.grpc.lb.v1.LoadBalanceResponse" +
|
||||||
"pc.lb.v1.LoadBalanceResponse(\0010\001B%\n\016io.g" +
|
"(\0010\001B%\n\016io.grpc.grpclbB\021LoadBalancerProt" +
|
||||||
"rpc.grpclbB\021LoadBalancerProtoP\001b\006proto3"
|
"oP\001b\006proto3"
|
||||||
};
|
};
|
||||||
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
|
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
|
||||||
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
|
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
|
||||||
|
|
@ -127,7 +127,7 @@ public final class LoadBalancerProto {
|
||||||
internal_static_grpc_lb_v1_InitialLoadBalanceResponse_fieldAccessorTable = new
|
internal_static_grpc_lb_v1_InitialLoadBalanceResponse_fieldAccessorTable = new
|
||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||||
internal_static_grpc_lb_v1_InitialLoadBalanceResponse_descriptor,
|
internal_static_grpc_lb_v1_InitialLoadBalanceResponse_descriptor,
|
||||||
new java.lang.String[] { "LoadBalancerDelegate", "ClientStatsReportInterval", "InitialResponseType", });
|
new java.lang.String[] { "LoadBalancerDelegate", "ClientStatsReportInterval", });
|
||||||
internal_static_grpc_lb_v1_ServerList_descriptor =
|
internal_static_grpc_lb_v1_ServerList_descriptor =
|
||||||
getDescriptor().getMessageTypes().get(5);
|
getDescriptor().getMessageTypes().get(5);
|
||||||
internal_static_grpc_lb_v1_ServerList_fieldAccessorTable = new
|
internal_static_grpc_lb_v1_ServerList_fieldAccessorTable = new
|
||||||
|
|
|
||||||
|
|
@ -121,9 +121,10 @@ public final class Server extends
|
||||||
private volatile java.lang.Object loadBalanceToken_;
|
private volatile java.lang.Object loadBalanceToken_;
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* An opaque token that is passed from the client to the server in metadata.
|
* An opaque but printable token given to the frontend for each pick. All
|
||||||
* The server may expect this token to indicate that the request from the
|
* frontend requests for that pick must include the token in its initial
|
||||||
* client was load balanced.
|
* metadata. The token is used by the backend to verify the request and to
|
||||||
|
* allow the backend to report load to the gRPC LB system.
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>optional string load_balance_token = 3;</code>
|
* <code>optional string load_balance_token = 3;</code>
|
||||||
|
|
@ -142,9 +143,10 @@ public final class Server extends
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* An opaque token that is passed from the client to the server in metadata.
|
* An opaque but printable token given to the frontend for each pick. All
|
||||||
* The server may expect this token to indicate that the request from the
|
* frontend requests for that pick must include the token in its initial
|
||||||
* client was load balanced.
|
* metadata. The token is used by the backend to verify the request and to
|
||||||
|
* allow the backend to report load to the gRPC LB system.
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>optional string load_balance_token = 3;</code>
|
* <code>optional string load_balance_token = 3;</code>
|
||||||
|
|
@ -583,9 +585,10 @@ public final class Server extends
|
||||||
private java.lang.Object loadBalanceToken_ = "";
|
private java.lang.Object loadBalanceToken_ = "";
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* An opaque token that is passed from the client to the server in metadata.
|
* An opaque but printable token given to the frontend for each pick. All
|
||||||
* The server may expect this token to indicate that the request from the
|
* frontend requests for that pick must include the token in its initial
|
||||||
* client was load balanced.
|
* metadata. The token is used by the backend to verify the request and to
|
||||||
|
* allow the backend to report load to the gRPC LB system.
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>optional string load_balance_token = 3;</code>
|
* <code>optional string load_balance_token = 3;</code>
|
||||||
|
|
@ -604,9 +607,10 @@ public final class Server extends
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* An opaque token that is passed from the client to the server in metadata.
|
* An opaque but printable token given to the frontend for each pick. All
|
||||||
* The server may expect this token to indicate that the request from the
|
* frontend requests for that pick must include the token in its initial
|
||||||
* client was load balanced.
|
* metadata. The token is used by the backend to verify the request and to
|
||||||
|
* allow the backend to report load to the gRPC LB system.
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>optional string load_balance_token = 3;</code>
|
* <code>optional string load_balance_token = 3;</code>
|
||||||
|
|
@ -626,9 +630,10 @@ public final class Server extends
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* An opaque token that is passed from the client to the server in metadata.
|
* An opaque but printable token given to the frontend for each pick. All
|
||||||
* The server may expect this token to indicate that the request from the
|
* frontend requests for that pick must include the token in its initial
|
||||||
* client was load balanced.
|
* metadata. The token is used by the backend to verify the request and to
|
||||||
|
* allow the backend to report load to the gRPC LB system.
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>optional string load_balance_token = 3;</code>
|
* <code>optional string load_balance_token = 3;</code>
|
||||||
|
|
@ -645,9 +650,10 @@ public final class Server extends
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* An opaque token that is passed from the client to the server in metadata.
|
* An opaque but printable token given to the frontend for each pick. All
|
||||||
* The server may expect this token to indicate that the request from the
|
* frontend requests for that pick must include the token in its initial
|
||||||
* client was load balanced.
|
* metadata. The token is used by the backend to verify the request and to
|
||||||
|
* allow the backend to report load to the gRPC LB system.
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>optional string load_balance_token = 3;</code>
|
* <code>optional string load_balance_token = 3;</code>
|
||||||
|
|
@ -660,9 +666,10 @@ public final class Server extends
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* An opaque token that is passed from the client to the server in metadata.
|
* An opaque but printable token given to the frontend for each pick. All
|
||||||
* The server may expect this token to indicate that the request from the
|
* frontend requests for that pick must include the token in its initial
|
||||||
* client was load balanced.
|
* metadata. The token is used by the backend to verify the request and to
|
||||||
|
* allow the backend to report load to the gRPC LB system.
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>optional string load_balance_token = 3;</code>
|
* <code>optional string load_balance_token = 3;</code>
|
||||||
|
|
|
||||||
|
|
@ -28,9 +28,10 @@ public interface ServerOrBuilder extends
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* An opaque token that is passed from the client to the server in metadata.
|
* An opaque but printable token given to the frontend for each pick. All
|
||||||
* The server may expect this token to indicate that the request from the
|
* frontend requests for that pick must include the token in its initial
|
||||||
* client was load balanced.
|
* metadata. The token is used by the backend to verify the request and to
|
||||||
|
* allow the backend to report load to the gRPC LB system.
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>optional string load_balance_token = 3;</code>
|
* <code>optional string load_balance_token = 3;</code>
|
||||||
|
|
@ -38,9 +39,10 @@ public interface ServerOrBuilder extends
|
||||||
java.lang.String getLoadBalanceToken();
|
java.lang.String getLoadBalanceToken();
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* An opaque token that is passed from the client to the server in metadata.
|
* An opaque but printable token given to the frontend for each pick. All
|
||||||
* The server may expect this token to indicate that the request from the
|
* frontend requests for that pick must include the token in its initial
|
||||||
* client was load balanced.
|
* metadata. The token is used by the backend to verify the request and to
|
||||||
|
* allow the backend to report load to the gRPC LB system.
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>optional string load_balance_token = 3;</code>
|
* <code>optional string load_balance_token = 3;</code>
|
||||||
|
|
|
||||||
|
|
@ -57,21 +57,16 @@ message LoadBalanceResponse {
|
||||||
}
|
}
|
||||||
|
|
||||||
message InitialLoadBalanceResponse {
|
message InitialLoadBalanceResponse {
|
||||||
oneof initial_response_type {
|
// This is an application layer redirect that indicates the client should use
|
||||||
// TODO(zhangkun83): ClientConfig not yet defined
|
// the specified server for load balancing. When this field is non-empty in
|
||||||
//ClientConfig client_config = 1;
|
// the response, the client should open a separate connection to the
|
||||||
|
// load_balancer_delegate and call the BalanceLoad method.
|
||||||
// This is an application layer redirect that indicates the client should
|
string load_balancer_delegate = 1;
|
||||||
// use the specified server for load balancing. When this field is set in
|
|
||||||
// the response, the client should open a separate connection to the
|
|
||||||
// load_balancer_delegate and call the BalanceLoad method.
|
|
||||||
string load_balancer_delegate = 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
// This interval defines how often the client should send the client stats
|
// This interval defines how often the client should send the client stats
|
||||||
// to the load balancer. Stats should only be reported when the duration is
|
// to the load balancer. Stats should only be reported when the duration is
|
||||||
// positive.
|
// positive.
|
||||||
google.protobuf.Duration client_stats_report_interval = 3;
|
google.protobuf.Duration client_stats_report_interval = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
message ServerList {
|
message ServerList {
|
||||||
|
|
@ -96,9 +91,10 @@ message Server {
|
||||||
// A resolved port number for the server.
|
// A resolved port number for the server.
|
||||||
int32 port = 2;
|
int32 port = 2;
|
||||||
|
|
||||||
// An opaque token that is passed from the client to the server in metadata.
|
// An opaque but printable token given to the frontend for each pick. All
|
||||||
// The server may expect this token to indicate that the request from the
|
// frontend requests for that pick must include the token in its initial
|
||||||
// client was load balanced.
|
// metadata. The token is used by the backend to verify the request and to
|
||||||
|
// allow the backend to report load to the gRPC LB system.
|
||||||
string load_balance_token = 3;
|
string load_balance_token = 3;
|
||||||
|
|
||||||
// Indicates whether this particular request should be dropped by the client
|
// Indicates whether this particular request should be dropped by the client
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue