io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: service_config.proto
// Protobuf Java Version: 3.25.4
package io.grpc.serviceconfig;
/**
*
* Configuration for lrs LB policy.
*
*
* Protobuf type {@code grpc.service_config.LrsLoadBalancingPolicyConfig}
*/
public final class LrsLoadBalancingPolicyConfig extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.service_config.LrsLoadBalancingPolicyConfig)
LrsLoadBalancingPolicyConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use LrsLoadBalancingPolicyConfig.newBuilder() to construct.
private LrsLoadBalancingPolicyConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LrsLoadBalancingPolicyConfig() {
clusterName_ = "";
edsServiceName_ = "";
lrsLoadReportingServerName_ = "";
childPolicy_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LrsLoadBalancingPolicyConfig();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.grpc.serviceconfig.ServiceConfigProto.internal_static_grpc_service_config_LrsLoadBalancingPolicyConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.serviceconfig.ServiceConfigProto.internal_static_grpc_service_config_LrsLoadBalancingPolicyConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.class, io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Builder.class);
}
public interface LocalityOrBuilder extends
// @@protoc_insertion_point(interface_extends:grpc.service_config.LrsLoadBalancingPolicyConfig.Locality)
com.google.protobuf.MessageOrBuilder {
/**
* string region = 1;
* @return The region.
*/
java.lang.String getRegion();
/**
* string region = 1;
* @return The bytes for region.
*/
com.google.protobuf.ByteString
getRegionBytes();
/**
* string zone = 2;
* @return The zone.
*/
java.lang.String getZone();
/**
* string zone = 2;
* @return The bytes for zone.
*/
com.google.protobuf.ByteString
getZoneBytes();
/**
* string subzone = 3;
* @return The subzone.
*/
java.lang.String getSubzone();
/**
* string subzone = 3;
* @return The bytes for subzone.
*/
com.google.protobuf.ByteString
getSubzoneBytes();
}
/**
*
* The locality for which this policy will report load. Required.
*
*
* Protobuf type {@code grpc.service_config.LrsLoadBalancingPolicyConfig.Locality}
*/
public static final class Locality extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.service_config.LrsLoadBalancingPolicyConfig.Locality)
LocalityOrBuilder {
private static final long serialVersionUID = 0L;
// Use Locality.newBuilder() to construct.
private Locality(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Locality() {
region_ = "";
zone_ = "";
subzone_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Locality();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.grpc.serviceconfig.ServiceConfigProto.internal_static_grpc_service_config_LrsLoadBalancingPolicyConfig_Locality_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.serviceconfig.ServiceConfigProto.internal_static_grpc_service_config_LrsLoadBalancingPolicyConfig_Locality_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality.class, io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality.Builder.class);
}
public static final int REGION_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object region_ = "";
/**
* string region = 1;
* @return The region.
*/
@java.lang.Override
public java.lang.String getRegion() {
java.lang.Object ref = region_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
region_ = s;
return s;
}
}
/**
* string region = 1;
* @return The bytes for region.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRegionBytes() {
java.lang.Object ref = region_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
region_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ZONE_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object zone_ = "";
/**
* string zone = 2;
* @return The zone.
*/
@java.lang.Override
public java.lang.String getZone() {
java.lang.Object ref = zone_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
zone_ = s;
return s;
}
}
/**
* string zone = 2;
* @return The bytes for zone.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getZoneBytes() {
java.lang.Object ref = zone_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
zone_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SUBZONE_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object subzone_ = "";
/**
* string subzone = 3;
* @return The subzone.
*/
@java.lang.Override
public java.lang.String getSubzone() {
java.lang.Object ref = subzone_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
subzone_ = s;
return s;
}
}
/**
* string subzone = 3;
* @return The bytes for subzone.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSubzoneBytes() {
java.lang.Object ref = subzone_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
subzone_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, region_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subzone_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, subzone_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, region_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subzone_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, subzone_);
}
size += getUnknownFields().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.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality)) {
return super.equals(obj);
}
io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality other = (io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality) obj;
if (!getRegion()
.equals(other.getRegion())) return false;
if (!getZone()
.equals(other.getZone())) return false;
if (!getSubzone()
.equals(other.getSubzone())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + REGION_FIELD_NUMBER;
hash = (53 * hash) + getRegion().hashCode();
hash = (37 * hash) + ZONE_FIELD_NUMBER;
hash = (53 * hash) + getZone().hashCode();
hash = (37 * hash) + SUBZONE_FIELD_NUMBER;
hash = (53 * hash) + getSubzone().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality 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.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality 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.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality 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.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality 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;
}
/**
*
* The locality for which this policy will report load. Required.
*
*
* Protobuf type {@code grpc.service_config.LrsLoadBalancingPolicyConfig.Locality}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:grpc.service_config.LrsLoadBalancingPolicyConfig.Locality)
io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.LocalityOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.grpc.serviceconfig.ServiceConfigProto.internal_static_grpc_service_config_LrsLoadBalancingPolicyConfig_Locality_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.serviceconfig.ServiceConfigProto.internal_static_grpc_service_config_LrsLoadBalancingPolicyConfig_Locality_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality.class, io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality.Builder.class);
}
// Construct using io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
region_ = "";
zone_ = "";
subzone_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.grpc.serviceconfig.ServiceConfigProto.internal_static_grpc_service_config_LrsLoadBalancingPolicyConfig_Locality_descriptor;
}
@java.lang.Override
public io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality getDefaultInstanceForType() {
return io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality.getDefaultInstance();
}
@java.lang.Override
public io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality build() {
io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality buildPartial() {
io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality result = new io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.region_ = region_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.zone_ = zone_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.subzone_ = subzone_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality) {
return mergeFrom((io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality other) {
if (other == io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality.getDefaultInstance()) return this;
if (!other.getRegion().isEmpty()) {
region_ = other.region_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getZone().isEmpty()) {
zone_ = other.zone_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getSubzone().isEmpty()) {
subzone_ = other.subzone_;
bitField0_ |= 0x00000004;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
region_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
zone_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
subzone_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object region_ = "";
/**
* string region = 1;
* @return The region.
*/
public java.lang.String getRegion() {
java.lang.Object ref = region_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
region_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string region = 1;
* @return The bytes for region.
*/
public com.google.protobuf.ByteString
getRegionBytes() {
java.lang.Object ref = region_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
region_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string region = 1;
* @param value The region to set.
* @return This builder for chaining.
*/
public Builder setRegion(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
region_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string region = 1;
* @return This builder for chaining.
*/
public Builder clearRegion() {
region_ = getDefaultInstance().getRegion();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string region = 1;
* @param value The bytes for region to set.
* @return This builder for chaining.
*/
public Builder setRegionBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
region_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object zone_ = "";
/**
* string zone = 2;
* @return The zone.
*/
public java.lang.String getZone() {
java.lang.Object ref = zone_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
zone_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string zone = 2;
* @return The bytes for zone.
*/
public com.google.protobuf.ByteString
getZoneBytes() {
java.lang.Object ref = zone_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
zone_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string zone = 2;
* @param value The zone to set.
* @return This builder for chaining.
*/
public Builder setZone(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
zone_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* string zone = 2;
* @return This builder for chaining.
*/
public Builder clearZone() {
zone_ = getDefaultInstance().getZone();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* string zone = 2;
* @param value The bytes for zone to set.
* @return This builder for chaining.
*/
public Builder setZoneBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
zone_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object subzone_ = "";
/**
* string subzone = 3;
* @return The subzone.
*/
public java.lang.String getSubzone() {
java.lang.Object ref = subzone_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
subzone_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string subzone = 3;
* @return The bytes for subzone.
*/
public com.google.protobuf.ByteString
getSubzoneBytes() {
java.lang.Object ref = subzone_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
subzone_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string subzone = 3;
* @param value The subzone to set.
* @return This builder for chaining.
*/
public Builder setSubzone(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
subzone_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* string subzone = 3;
* @return This builder for chaining.
*/
public Builder clearSubzone() {
subzone_ = getDefaultInstance().getSubzone();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* string subzone = 3;
* @param value The bytes for subzone to set.
* @return This builder for chaining.
*/
public Builder setSubzoneBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
subzone_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
@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:grpc.service_config.LrsLoadBalancingPolicyConfig.Locality)
}
// @@protoc_insertion_point(class_scope:grpc.service_config.LrsLoadBalancingPolicyConfig.Locality)
private static final io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality();
}
public static io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Locality parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int CLUSTER_NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object clusterName_ = "";
/**
*
* Cluster name. Required.
*
*
* string cluster_name = 1;
* @return The clusterName.
*/
@java.lang.Override
public java.lang.String getClusterName() {
java.lang.Object ref = clusterName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
clusterName_ = s;
return s;
}
}
/**
*
* Cluster name. Required.
*
*
* string cluster_name = 1;
* @return The bytes for clusterName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getClusterNameBytes() {
java.lang.Object ref = clusterName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clusterName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EDS_SERVICE_NAME_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object edsServiceName_ = "";
/**
*
* EDS service name, as returned in CDS.
* May be unset if not specified in CDS.
*
*
* string eds_service_name = 2;
* @return The edsServiceName.
*/
@java.lang.Override
public java.lang.String getEdsServiceName() {
java.lang.Object ref = edsServiceName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
edsServiceName_ = s;
return s;
}
}
/**
*
* EDS service name, as returned in CDS.
* May be unset if not specified in CDS.
*
*
* string eds_service_name = 2;
* @return The bytes for edsServiceName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEdsServiceNameBytes() {
java.lang.Object ref = edsServiceName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
edsServiceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LRS_LOAD_REPORTING_SERVER_NAME_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object lrsLoadReportingServerName_ = "";
/**
*
* Server to send load reports to. Required.
* If set to empty string, load reporting will be sent to the same
* server as we are getting xds data from.
*
*
* string lrs_load_reporting_server_name = 3;
* @return The lrsLoadReportingServerName.
*/
@java.lang.Override
public java.lang.String getLrsLoadReportingServerName() {
java.lang.Object ref = lrsLoadReportingServerName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
lrsLoadReportingServerName_ = s;
return s;
}
}
/**
*
* Server to send load reports to. Required.
* If set to empty string, load reporting will be sent to the same
* server as we are getting xds data from.
*
*
* string lrs_load_reporting_server_name = 3;
* @return The bytes for lrsLoadReportingServerName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLrsLoadReportingServerNameBytes() {
java.lang.Object ref = lrsLoadReportingServerName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
lrsLoadReportingServerName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALITY_FIELD_NUMBER = 4;
private io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality locality_;
/**
* .grpc.service_config.LrsLoadBalancingPolicyConfig.Locality locality = 4;
* @return Whether the locality field is set.
*/
@java.lang.Override
public boolean hasLocality() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .grpc.service_config.LrsLoadBalancingPolicyConfig.Locality locality = 4;
* @return The locality.
*/
@java.lang.Override
public io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality getLocality() {
return locality_ == null ? io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality.getDefaultInstance() : locality_;
}
/**
* .grpc.service_config.LrsLoadBalancingPolicyConfig.Locality locality = 4;
*/
@java.lang.Override
public io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.LocalityOrBuilder getLocalityOrBuilder() {
return locality_ == null ? io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality.getDefaultInstance() : locality_;
}
public static final int CHILD_POLICY_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private java.util.List childPolicy_;
/**
*
* Endpoint-picking policy.
*
*
* repeated .grpc.service_config.LoadBalancingConfig child_policy = 5;
*/
@java.lang.Override
public java.util.List getChildPolicyList() {
return childPolicy_;
}
/**
*
* Endpoint-picking policy.
*
*
* repeated .grpc.service_config.LoadBalancingConfig child_policy = 5;
*/
@java.lang.Override
public java.util.List extends io.grpc.serviceconfig.LoadBalancingConfigOrBuilder>
getChildPolicyOrBuilderList() {
return childPolicy_;
}
/**
*
* Endpoint-picking policy.
*
*
* repeated .grpc.service_config.LoadBalancingConfig child_policy = 5;
*/
@java.lang.Override
public int getChildPolicyCount() {
return childPolicy_.size();
}
/**
*
* Endpoint-picking policy.
*
*
* repeated .grpc.service_config.LoadBalancingConfig child_policy = 5;
*/
@java.lang.Override
public io.grpc.serviceconfig.LoadBalancingConfig getChildPolicy(int index) {
return childPolicy_.get(index);
}
/**
*
* Endpoint-picking policy.
*
*
* repeated .grpc.service_config.LoadBalancingConfig child_policy = 5;
*/
@java.lang.Override
public io.grpc.serviceconfig.LoadBalancingConfigOrBuilder getChildPolicyOrBuilder(
int index) {
return childPolicy_.get(index);
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(edsServiceName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, edsServiceName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lrsLoadReportingServerName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, lrsLoadReportingServerName_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(4, getLocality());
}
for (int i = 0; i < childPolicy_.size(); i++) {
output.writeMessage(5, childPolicy_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(edsServiceName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, edsServiceName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lrsLoadReportingServerName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, lrsLoadReportingServerName_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getLocality());
}
for (int i = 0; i < childPolicy_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, childPolicy_.get(i));
}
size += getUnknownFields().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.grpc.serviceconfig.LrsLoadBalancingPolicyConfig)) {
return super.equals(obj);
}
io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig other = (io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig) obj;
if (!getClusterName()
.equals(other.getClusterName())) return false;
if (!getEdsServiceName()
.equals(other.getEdsServiceName())) return false;
if (!getLrsLoadReportingServerName()
.equals(other.getLrsLoadReportingServerName())) return false;
if (hasLocality() != other.hasLocality()) return false;
if (hasLocality()) {
if (!getLocality()
.equals(other.getLocality())) return false;
}
if (!getChildPolicyList()
.equals(other.getChildPolicyList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CLUSTER_NAME_FIELD_NUMBER;
hash = (53 * hash) + getClusterName().hashCode();
hash = (37 * hash) + EDS_SERVICE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getEdsServiceName().hashCode();
hash = (37 * hash) + LRS_LOAD_REPORTING_SERVER_NAME_FIELD_NUMBER;
hash = (53 * hash) + getLrsLoadReportingServerName().hashCode();
if (hasLocality()) {
hash = (37 * hash) + LOCALITY_FIELD_NUMBER;
hash = (53 * hash) + getLocality().hashCode();
}
if (getChildPolicyCount() > 0) {
hash = (37 * hash) + CHILD_POLICY_FIELD_NUMBER;
hash = (53 * hash) + getChildPolicyList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig 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.grpc.serviceconfig.LrsLoadBalancingPolicyConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig 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.grpc.serviceconfig.LrsLoadBalancingPolicyConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig 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.grpc.serviceconfig.LrsLoadBalancingPolicyConfig 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;
}
/**
*
* Configuration for lrs LB policy.
*
*
* Protobuf type {@code grpc.service_config.LrsLoadBalancingPolicyConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:grpc.service_config.LrsLoadBalancingPolicyConfig)
io.grpc.serviceconfig.LrsLoadBalancingPolicyConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.grpc.serviceconfig.ServiceConfigProto.internal_static_grpc_service_config_LrsLoadBalancingPolicyConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.serviceconfig.ServiceConfigProto.internal_static_grpc_service_config_LrsLoadBalancingPolicyConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.class, io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Builder.class);
}
// Construct using io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getLocalityFieldBuilder();
getChildPolicyFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
clusterName_ = "";
edsServiceName_ = "";
lrsLoadReportingServerName_ = "";
locality_ = null;
if (localityBuilder_ != null) {
localityBuilder_.dispose();
localityBuilder_ = null;
}
if (childPolicyBuilder_ == null) {
childPolicy_ = java.util.Collections.emptyList();
} else {
childPolicy_ = null;
childPolicyBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.grpc.serviceconfig.ServiceConfigProto.internal_static_grpc_service_config_LrsLoadBalancingPolicyConfig_descriptor;
}
@java.lang.Override
public io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig getDefaultInstanceForType() {
return io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.getDefaultInstance();
}
@java.lang.Override
public io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig build() {
io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig buildPartial() {
io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig result = new io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig result) {
if (childPolicyBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)) {
childPolicy_ = java.util.Collections.unmodifiableList(childPolicy_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.childPolicy_ = childPolicy_;
} else {
result.childPolicy_ = childPolicyBuilder_.build();
}
}
private void buildPartial0(io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.clusterName_ = clusterName_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.edsServiceName_ = edsServiceName_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.lrsLoadReportingServerName_ = lrsLoadReportingServerName_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000008) != 0)) {
result.locality_ = localityBuilder_ == null
? locality_
: localityBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig) {
return mergeFrom((io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig other) {
if (other == io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.getDefaultInstance()) return this;
if (!other.getClusterName().isEmpty()) {
clusterName_ = other.clusterName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getEdsServiceName().isEmpty()) {
edsServiceName_ = other.edsServiceName_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getLrsLoadReportingServerName().isEmpty()) {
lrsLoadReportingServerName_ = other.lrsLoadReportingServerName_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasLocality()) {
mergeLocality(other.getLocality());
}
if (childPolicyBuilder_ == null) {
if (!other.childPolicy_.isEmpty()) {
if (childPolicy_.isEmpty()) {
childPolicy_ = other.childPolicy_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureChildPolicyIsMutable();
childPolicy_.addAll(other.childPolicy_);
}
onChanged();
}
} else {
if (!other.childPolicy_.isEmpty()) {
if (childPolicyBuilder_.isEmpty()) {
childPolicyBuilder_.dispose();
childPolicyBuilder_ = null;
childPolicy_ = other.childPolicy_;
bitField0_ = (bitField0_ & ~0x00000010);
childPolicyBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getChildPolicyFieldBuilder() : null;
} else {
childPolicyBuilder_.addAllMessages(other.childPolicy_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
clusterName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
edsServiceName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
lrsLoadReportingServerName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getLocalityFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
io.grpc.serviceconfig.LoadBalancingConfig m =
input.readMessage(
io.grpc.serviceconfig.LoadBalancingConfig.parser(),
extensionRegistry);
if (childPolicyBuilder_ == null) {
ensureChildPolicyIsMutable();
childPolicy_.add(m);
} else {
childPolicyBuilder_.addMessage(m);
}
break;
} // case 42
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object clusterName_ = "";
/**
*
* Cluster name. Required.
*
*
* string cluster_name = 1;
* @return The clusterName.
*/
public java.lang.String getClusterName() {
java.lang.Object ref = clusterName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
clusterName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Cluster name. Required.
*
*
* string cluster_name = 1;
* @return The bytes for clusterName.
*/
public com.google.protobuf.ByteString
getClusterNameBytes() {
java.lang.Object ref = clusterName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clusterName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Cluster name. Required.
*
*
* string cluster_name = 1;
* @param value The clusterName to set.
* @return This builder for chaining.
*/
public Builder setClusterName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
clusterName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Cluster name. Required.
*
*
* string cluster_name = 1;
* @return This builder for chaining.
*/
public Builder clearClusterName() {
clusterName_ = getDefaultInstance().getClusterName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Cluster name. Required.
*
*
* string cluster_name = 1;
* @param value The bytes for clusterName to set.
* @return This builder for chaining.
*/
public Builder setClusterNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
clusterName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object edsServiceName_ = "";
/**
*
* EDS service name, as returned in CDS.
* May be unset if not specified in CDS.
*
*
* string eds_service_name = 2;
* @return The edsServiceName.
*/
public java.lang.String getEdsServiceName() {
java.lang.Object ref = edsServiceName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
edsServiceName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* EDS service name, as returned in CDS.
* May be unset if not specified in CDS.
*
*
* string eds_service_name = 2;
* @return The bytes for edsServiceName.
*/
public com.google.protobuf.ByteString
getEdsServiceNameBytes() {
java.lang.Object ref = edsServiceName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
edsServiceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* EDS service name, as returned in CDS.
* May be unset if not specified in CDS.
*
*
* string eds_service_name = 2;
* @param value The edsServiceName to set.
* @return This builder for chaining.
*/
public Builder setEdsServiceName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
edsServiceName_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* EDS service name, as returned in CDS.
* May be unset if not specified in CDS.
*
*
* string eds_service_name = 2;
* @return This builder for chaining.
*/
public Builder clearEdsServiceName() {
edsServiceName_ = getDefaultInstance().getEdsServiceName();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* EDS service name, as returned in CDS.
* May be unset if not specified in CDS.
*
*
* string eds_service_name = 2;
* @param value The bytes for edsServiceName to set.
* @return This builder for chaining.
*/
public Builder setEdsServiceNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
edsServiceName_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object lrsLoadReportingServerName_ = "";
/**
*
* Server to send load reports to. Required.
* If set to empty string, load reporting will be sent to the same
* server as we are getting xds data from.
*
*
* string lrs_load_reporting_server_name = 3;
* @return The lrsLoadReportingServerName.
*/
public java.lang.String getLrsLoadReportingServerName() {
java.lang.Object ref = lrsLoadReportingServerName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
lrsLoadReportingServerName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Server to send load reports to. Required.
* If set to empty string, load reporting will be sent to the same
* server as we are getting xds data from.
*
*
* string lrs_load_reporting_server_name = 3;
* @return The bytes for lrsLoadReportingServerName.
*/
public com.google.protobuf.ByteString
getLrsLoadReportingServerNameBytes() {
java.lang.Object ref = lrsLoadReportingServerName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
lrsLoadReportingServerName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Server to send load reports to. Required.
* If set to empty string, load reporting will be sent to the same
* server as we are getting xds data from.
*
*
* string lrs_load_reporting_server_name = 3;
* @param value The lrsLoadReportingServerName to set.
* @return This builder for chaining.
*/
public Builder setLrsLoadReportingServerName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
lrsLoadReportingServerName_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Server to send load reports to. Required.
* If set to empty string, load reporting will be sent to the same
* server as we are getting xds data from.
*
*
* string lrs_load_reporting_server_name = 3;
* @return This builder for chaining.
*/
public Builder clearLrsLoadReportingServerName() {
lrsLoadReportingServerName_ = getDefaultInstance().getLrsLoadReportingServerName();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* Server to send load reports to. Required.
* If set to empty string, load reporting will be sent to the same
* server as we are getting xds data from.
*
*
* string lrs_load_reporting_server_name = 3;
* @param value The bytes for lrsLoadReportingServerName to set.
* @return This builder for chaining.
*/
public Builder setLrsLoadReportingServerNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
lrsLoadReportingServerName_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality locality_;
private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality, io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality.Builder, io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.LocalityOrBuilder> localityBuilder_;
/**
* .grpc.service_config.LrsLoadBalancingPolicyConfig.Locality locality = 4;
* @return Whether the locality field is set.
*/
public boolean hasLocality() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* .grpc.service_config.LrsLoadBalancingPolicyConfig.Locality locality = 4;
* @return The locality.
*/
public io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality getLocality() {
if (localityBuilder_ == null) {
return locality_ == null ? io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality.getDefaultInstance() : locality_;
} else {
return localityBuilder_.getMessage();
}
}
/**
* .grpc.service_config.LrsLoadBalancingPolicyConfig.Locality locality = 4;
*/
public Builder setLocality(io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality value) {
if (localityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
locality_ = value;
} else {
localityBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* .grpc.service_config.LrsLoadBalancingPolicyConfig.Locality locality = 4;
*/
public Builder setLocality(
io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality.Builder builderForValue) {
if (localityBuilder_ == null) {
locality_ = builderForValue.build();
} else {
localityBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* .grpc.service_config.LrsLoadBalancingPolicyConfig.Locality locality = 4;
*/
public Builder mergeLocality(io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality value) {
if (localityBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
locality_ != null &&
locality_ != io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality.getDefaultInstance()) {
getLocalityBuilder().mergeFrom(value);
} else {
locality_ = value;
}
} else {
localityBuilder_.mergeFrom(value);
}
if (locality_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
* .grpc.service_config.LrsLoadBalancingPolicyConfig.Locality locality = 4;
*/
public Builder clearLocality() {
bitField0_ = (bitField0_ & ~0x00000008);
locality_ = null;
if (localityBuilder_ != null) {
localityBuilder_.dispose();
localityBuilder_ = null;
}
onChanged();
return this;
}
/**
* .grpc.service_config.LrsLoadBalancingPolicyConfig.Locality locality = 4;
*/
public io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality.Builder getLocalityBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getLocalityFieldBuilder().getBuilder();
}
/**
* .grpc.service_config.LrsLoadBalancingPolicyConfig.Locality locality = 4;
*/
public io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.LocalityOrBuilder getLocalityOrBuilder() {
if (localityBuilder_ != null) {
return localityBuilder_.getMessageOrBuilder();
} else {
return locality_ == null ?
io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality.getDefaultInstance() : locality_;
}
}
/**
* .grpc.service_config.LrsLoadBalancingPolicyConfig.Locality locality = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality, io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality.Builder, io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.LocalityOrBuilder>
getLocalityFieldBuilder() {
if (localityBuilder_ == null) {
localityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality, io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Locality.Builder, io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.LocalityOrBuilder>(
getLocality(),
getParentForChildren(),
isClean());
locality_ = null;
}
return localityBuilder_;
}
private java.util.List childPolicy_ =
java.util.Collections.emptyList();
private void ensureChildPolicyIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
childPolicy_ = new java.util.ArrayList(childPolicy_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.grpc.serviceconfig.LoadBalancingConfig, io.grpc.serviceconfig.LoadBalancingConfig.Builder, io.grpc.serviceconfig.LoadBalancingConfigOrBuilder> childPolicyBuilder_;
/**
*
* Endpoint-picking policy.
*
*
* repeated .grpc.service_config.LoadBalancingConfig child_policy = 5;
*/
public java.util.List getChildPolicyList() {
if (childPolicyBuilder_ == null) {
return java.util.Collections.unmodifiableList(childPolicy_);
} else {
return childPolicyBuilder_.getMessageList();
}
}
/**
*
* Endpoint-picking policy.
*
*
* repeated .grpc.service_config.LoadBalancingConfig child_policy = 5;
*/
public int getChildPolicyCount() {
if (childPolicyBuilder_ == null) {
return childPolicy_.size();
} else {
return childPolicyBuilder_.getCount();
}
}
/**
*
* Endpoint-picking policy.
*
*
* repeated .grpc.service_config.LoadBalancingConfig child_policy = 5;
*/
public io.grpc.serviceconfig.LoadBalancingConfig getChildPolicy(int index) {
if (childPolicyBuilder_ == null) {
return childPolicy_.get(index);
} else {
return childPolicyBuilder_.getMessage(index);
}
}
/**
*
* Endpoint-picking policy.
*
*
* repeated .grpc.service_config.LoadBalancingConfig child_policy = 5;
*/
public Builder setChildPolicy(
int index, io.grpc.serviceconfig.LoadBalancingConfig value) {
if (childPolicyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChildPolicyIsMutable();
childPolicy_.set(index, value);
onChanged();
} else {
childPolicyBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Endpoint-picking policy.
*
*
* repeated .grpc.service_config.LoadBalancingConfig child_policy = 5;
*/
public Builder setChildPolicy(
int index, io.grpc.serviceconfig.LoadBalancingConfig.Builder builderForValue) {
if (childPolicyBuilder_ == null) {
ensureChildPolicyIsMutable();
childPolicy_.set(index, builderForValue.build());
onChanged();
} else {
childPolicyBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Endpoint-picking policy.
*
*
* repeated .grpc.service_config.LoadBalancingConfig child_policy = 5;
*/
public Builder addChildPolicy(io.grpc.serviceconfig.LoadBalancingConfig value) {
if (childPolicyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChildPolicyIsMutable();
childPolicy_.add(value);
onChanged();
} else {
childPolicyBuilder_.addMessage(value);
}
return this;
}
/**
*
* Endpoint-picking policy.
*
*
* repeated .grpc.service_config.LoadBalancingConfig child_policy = 5;
*/
public Builder addChildPolicy(
int index, io.grpc.serviceconfig.LoadBalancingConfig value) {
if (childPolicyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChildPolicyIsMutable();
childPolicy_.add(index, value);
onChanged();
} else {
childPolicyBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Endpoint-picking policy.
*
*
* repeated .grpc.service_config.LoadBalancingConfig child_policy = 5;
*/
public Builder addChildPolicy(
io.grpc.serviceconfig.LoadBalancingConfig.Builder builderForValue) {
if (childPolicyBuilder_ == null) {
ensureChildPolicyIsMutable();
childPolicy_.add(builderForValue.build());
onChanged();
} else {
childPolicyBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Endpoint-picking policy.
*
*
* repeated .grpc.service_config.LoadBalancingConfig child_policy = 5;
*/
public Builder addChildPolicy(
int index, io.grpc.serviceconfig.LoadBalancingConfig.Builder builderForValue) {
if (childPolicyBuilder_ == null) {
ensureChildPolicyIsMutable();
childPolicy_.add(index, builderForValue.build());
onChanged();
} else {
childPolicyBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Endpoint-picking policy.
*
*
* repeated .grpc.service_config.LoadBalancingConfig child_policy = 5;
*/
public Builder addAllChildPolicy(
java.lang.Iterable extends io.grpc.serviceconfig.LoadBalancingConfig> values) {
if (childPolicyBuilder_ == null) {
ensureChildPolicyIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, childPolicy_);
onChanged();
} else {
childPolicyBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Endpoint-picking policy.
*
*
* repeated .grpc.service_config.LoadBalancingConfig child_policy = 5;
*/
public Builder clearChildPolicy() {
if (childPolicyBuilder_ == null) {
childPolicy_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
childPolicyBuilder_.clear();
}
return this;
}
/**
*
* Endpoint-picking policy.
*
*
* repeated .grpc.service_config.LoadBalancingConfig child_policy = 5;
*/
public Builder removeChildPolicy(int index) {
if (childPolicyBuilder_ == null) {
ensureChildPolicyIsMutable();
childPolicy_.remove(index);
onChanged();
} else {
childPolicyBuilder_.remove(index);
}
return this;
}
/**
*
* Endpoint-picking policy.
*
*
* repeated .grpc.service_config.LoadBalancingConfig child_policy = 5;
*/
public io.grpc.serviceconfig.LoadBalancingConfig.Builder getChildPolicyBuilder(
int index) {
return getChildPolicyFieldBuilder().getBuilder(index);
}
/**
*
* Endpoint-picking policy.
*
*
* repeated .grpc.service_config.LoadBalancingConfig child_policy = 5;
*/
public io.grpc.serviceconfig.LoadBalancingConfigOrBuilder getChildPolicyOrBuilder(
int index) {
if (childPolicyBuilder_ == null) {
return childPolicy_.get(index); } else {
return childPolicyBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Endpoint-picking policy.
*
*
* repeated .grpc.service_config.LoadBalancingConfig child_policy = 5;
*/
public java.util.List extends io.grpc.serviceconfig.LoadBalancingConfigOrBuilder>
getChildPolicyOrBuilderList() {
if (childPolicyBuilder_ != null) {
return childPolicyBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(childPolicy_);
}
}
/**
*
* Endpoint-picking policy.
*
*
* repeated .grpc.service_config.LoadBalancingConfig child_policy = 5;
*/
public io.grpc.serviceconfig.LoadBalancingConfig.Builder addChildPolicyBuilder() {
return getChildPolicyFieldBuilder().addBuilder(
io.grpc.serviceconfig.LoadBalancingConfig.getDefaultInstance());
}
/**
*
* Endpoint-picking policy.
*
*
* repeated .grpc.service_config.LoadBalancingConfig child_policy = 5;
*/
public io.grpc.serviceconfig.LoadBalancingConfig.Builder addChildPolicyBuilder(
int index) {
return getChildPolicyFieldBuilder().addBuilder(
index, io.grpc.serviceconfig.LoadBalancingConfig.getDefaultInstance());
}
/**
*
* Endpoint-picking policy.
*
*
* repeated .grpc.service_config.LoadBalancingConfig child_policy = 5;
*/
public java.util.List
getChildPolicyBuilderList() {
return getChildPolicyFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.grpc.serviceconfig.LoadBalancingConfig, io.grpc.serviceconfig.LoadBalancingConfig.Builder, io.grpc.serviceconfig.LoadBalancingConfigOrBuilder>
getChildPolicyFieldBuilder() {
if (childPolicyBuilder_ == null) {
childPolicyBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.grpc.serviceconfig.LoadBalancingConfig, io.grpc.serviceconfig.LoadBalancingConfig.Builder, io.grpc.serviceconfig.LoadBalancingConfigOrBuilder>(
childPolicy_,
((bitField0_ & 0x00000010) != 0),
getParentForChildren(),
isClean());
childPolicy_ = null;
}
return childPolicyBuilder_;
}
@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:grpc.service_config.LrsLoadBalancingPolicyConfig)
}
// @@protoc_insertion_point(class_scope:grpc.service_config.LrsLoadBalancingPolicyConfig)
private static final io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig();
}
public static io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LrsLoadBalancingPolicyConfig parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.grpc.serviceconfig.LrsLoadBalancingPolicyConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy