All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig Maven / Gradle / Ivy

There is a newer version: 2.50.0
Show newest version
// 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 xds_cluster_impl LB policy.
 * 
* * Protobuf type {@code grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig} */ public final class XdsClusterImplLoadBalancingPolicyConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig) XdsClusterImplLoadBalancingPolicyConfigOrBuilder { private static final long serialVersionUID = 0L; // Use XdsClusterImplLoadBalancingPolicyConfig.newBuilder() to construct. private XdsClusterImplLoadBalancingPolicyConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private XdsClusterImplLoadBalancingPolicyConfig() { cluster_ = ""; edsServiceName_ = ""; dropCategories_ = java.util.Collections.emptyList(); childPolicy_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new XdsClusterImplLoadBalancingPolicyConfig(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grpc.serviceconfig.ServiceConfigProto.internal_static_grpc_service_config_XdsClusterImplLoadBalancingPolicyConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grpc.serviceconfig.ServiceConfigProto.internal_static_grpc_service_config_XdsClusterImplLoadBalancingPolicyConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.class, io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.Builder.class); } public interface DropCategoryOrBuilder extends // @@protoc_insertion_point(interface_extends:grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig.DropCategory) com.google.protobuf.MessageOrBuilder { /** * string category = 1; * @return The category. */ java.lang.String getCategory(); /** * string category = 1; * @return The bytes for category. */ com.google.protobuf.ByteString getCategoryBytes(); /** * uint32 requests_per_million = 2; * @return The requestsPerMillion. */ int getRequestsPerMillion(); } /** *
   * Drop configuration.
   * 
* * Protobuf type {@code grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig.DropCategory} */ public static final class DropCategory extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig.DropCategory) DropCategoryOrBuilder { private static final long serialVersionUID = 0L; // Use DropCategory.newBuilder() to construct. private DropCategory(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DropCategory() { category_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DropCategory(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grpc.serviceconfig.ServiceConfigProto.internal_static_grpc_service_config_XdsClusterImplLoadBalancingPolicyConfig_DropCategory_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grpc.serviceconfig.ServiceConfigProto.internal_static_grpc_service_config_XdsClusterImplLoadBalancingPolicyConfig_DropCategory_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory.class, io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory.Builder.class); } public static final int CATEGORY_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object category_ = ""; /** * string category = 1; * @return The category. */ @java.lang.Override public java.lang.String getCategory() { java.lang.Object ref = category_; 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(); category_ = s; return s; } } /** * string category = 1; * @return The bytes for category. */ @java.lang.Override public com.google.protobuf.ByteString getCategoryBytes() { java.lang.Object ref = category_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); category_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REQUESTS_PER_MILLION_FIELD_NUMBER = 2; private int requestsPerMillion_ = 0; /** * uint32 requests_per_million = 2; * @return The requestsPerMillion. */ @java.lang.Override public int getRequestsPerMillion() { return requestsPerMillion_; } 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(category_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, category_); } if (requestsPerMillion_ != 0) { output.writeUInt32(2, requestsPerMillion_); } 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(category_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, category_); } if (requestsPerMillion_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, requestsPerMillion_); } 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.XdsClusterImplLoadBalancingPolicyConfig.DropCategory)) { return super.equals(obj); } io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory other = (io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory) obj; if (!getCategory() .equals(other.getCategory())) return false; if (getRequestsPerMillion() != other.getRequestsPerMillion()) 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) + CATEGORY_FIELD_NUMBER; hash = (53 * hash) + getCategory().hashCode(); hash = (37 * hash) + REQUESTS_PER_MILLION_FIELD_NUMBER; hash = (53 * hash) + getRequestsPerMillion(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory 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.XdsClusterImplLoadBalancingPolicyConfig.DropCategory parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory 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.XdsClusterImplLoadBalancingPolicyConfig.DropCategory parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory 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.XdsClusterImplLoadBalancingPolicyConfig.DropCategory parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory 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.XdsClusterImplLoadBalancingPolicyConfig.DropCategory parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory 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.XdsClusterImplLoadBalancingPolicyConfig.DropCategory 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; } /** *
     * Drop configuration.
     * 
* * Protobuf type {@code grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig.DropCategory} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig.DropCategory) io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategoryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grpc.serviceconfig.ServiceConfigProto.internal_static_grpc_service_config_XdsClusterImplLoadBalancingPolicyConfig_DropCategory_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grpc.serviceconfig.ServiceConfigProto.internal_static_grpc_service_config_XdsClusterImplLoadBalancingPolicyConfig_DropCategory_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory.class, io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory.Builder.class); } // Construct using io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; category_ = ""; requestsPerMillion_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.grpc.serviceconfig.ServiceConfigProto.internal_static_grpc_service_config_XdsClusterImplLoadBalancingPolicyConfig_DropCategory_descriptor; } @java.lang.Override public io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory getDefaultInstanceForType() { return io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory.getDefaultInstance(); } @java.lang.Override public io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory build() { io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory buildPartial() { io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory result = new io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.category_ = category_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.requestsPerMillion_ = requestsPerMillion_; } } @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.XdsClusterImplLoadBalancingPolicyConfig.DropCategory) { return mergeFrom((io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory other) { if (other == io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory.getDefaultInstance()) return this; if (!other.getCategory().isEmpty()) { category_ = other.category_; bitField0_ |= 0x00000001; onChanged(); } if (other.getRequestsPerMillion() != 0) { setRequestsPerMillion(other.getRequestsPerMillion()); } 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: { category_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { requestsPerMillion_ = input.readUInt32(); bitField0_ |= 0x00000002; break; } // case 16 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 category_ = ""; /** * string category = 1; * @return The category. */ public java.lang.String getCategory() { java.lang.Object ref = category_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); category_ = s; return s; } else { return (java.lang.String) ref; } } /** * string category = 1; * @return The bytes for category. */ public com.google.protobuf.ByteString getCategoryBytes() { java.lang.Object ref = category_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); category_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string category = 1; * @param value The category to set. * @return This builder for chaining. */ public Builder setCategory( java.lang.String value) { if (value == null) { throw new NullPointerException(); } category_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string category = 1; * @return This builder for chaining. */ public Builder clearCategory() { category_ = getDefaultInstance().getCategory(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string category = 1; * @param value The bytes for category to set. * @return This builder for chaining. */ public Builder setCategoryBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); category_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private int requestsPerMillion_ ; /** * uint32 requests_per_million = 2; * @return The requestsPerMillion. */ @java.lang.Override public int getRequestsPerMillion() { return requestsPerMillion_; } /** * uint32 requests_per_million = 2; * @param value The requestsPerMillion to set. * @return This builder for chaining. */ public Builder setRequestsPerMillion(int value) { requestsPerMillion_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * uint32 requests_per_million = 2; * @return This builder for chaining. */ public Builder clearRequestsPerMillion() { bitField0_ = (bitField0_ & ~0x00000002); requestsPerMillion_ = 0; 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.XdsClusterImplLoadBalancingPolicyConfig.DropCategory) } // @@protoc_insertion_point(class_scope:grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig.DropCategory) private static final io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory(); } public static io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DropCategory 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.XdsClusterImplLoadBalancingPolicyConfig.DropCategory getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int CLUSTER_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object cluster_ = ""; /** *
   * Cluster name.  Required.
   * 
* * string cluster = 1; * @return The cluster. */ @java.lang.Override public java.lang.String getCluster() { java.lang.Object ref = cluster_; 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(); cluster_ = s; return s; } } /** *
   * Cluster name.  Required.
   * 
* * string cluster = 1; * @return The bytes for cluster. */ @java.lang.Override public com.google.protobuf.ByteString getClusterBytes() { java.lang.Object ref = cluster_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cluster_ = 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.
   * Not set if cluster is not an EDS cluster or if it does not
   * specify an EDS service name.
   * 
* * 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.
   * Not set if cluster is not an EDS cluster or if it does not
   * specify an EDS service name.
   * 
* * 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; private com.google.protobuf.StringValue lrsLoadReportingServerName_; /** *
   * Server to send load reports to.
   * If unset, no load reporting is done.
   * If set to empty string, load reporting will be sent to the same
   * server as we are getting xds data from.
   * DEPRECATED: Use new lrs_load_reporting_server field instead.
   * 
* * .google.protobuf.StringValue lrs_load_reporting_server_name = 3 [deprecated = true]; * @deprecated grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig.lrs_load_reporting_server_name is deprecated. * See service_config.proto;l=344 * @return Whether the lrsLoadReportingServerName field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasLrsLoadReportingServerName() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Server to send load reports to.
   * If unset, no load reporting is done.
   * If set to empty string, load reporting will be sent to the same
   * server as we are getting xds data from.
   * DEPRECATED: Use new lrs_load_reporting_server field instead.
   * 
* * .google.protobuf.StringValue lrs_load_reporting_server_name = 3 [deprecated = true]; * @deprecated grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig.lrs_load_reporting_server_name is deprecated. * See service_config.proto;l=344 * @return The lrsLoadReportingServerName. */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.StringValue getLrsLoadReportingServerName() { return lrsLoadReportingServerName_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : lrsLoadReportingServerName_; } /** *
   * Server to send load reports to.
   * If unset, no load reporting is done.
   * If set to empty string, load reporting will be sent to the same
   * server as we are getting xds data from.
   * DEPRECATED: Use new lrs_load_reporting_server field instead.
   * 
* * .google.protobuf.StringValue lrs_load_reporting_server_name = 3 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.StringValueOrBuilder getLrsLoadReportingServerNameOrBuilder() { return lrsLoadReportingServerName_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : lrsLoadReportingServerName_; } public static final int LRS_LOAD_REPORTING_SERVER_FIELD_NUMBER = 7; private io.grpc.serviceconfig.XdsServer lrsLoadReportingServer_; /** *
   * LRS server to send load reports to.
   * If not present, load reporting will be disabled.
   * Supercedes lrs_load_reporting_server_name field.
   * 
* * .grpc.service_config.XdsServer lrs_load_reporting_server = 7; * @return Whether the lrsLoadReportingServer field is set. */ @java.lang.Override public boolean hasLrsLoadReportingServer() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * LRS server to send load reports to.
   * If not present, load reporting will be disabled.
   * Supercedes lrs_load_reporting_server_name field.
   * 
* * .grpc.service_config.XdsServer lrs_load_reporting_server = 7; * @return The lrsLoadReportingServer. */ @java.lang.Override public io.grpc.serviceconfig.XdsServer getLrsLoadReportingServer() { return lrsLoadReportingServer_ == null ? io.grpc.serviceconfig.XdsServer.getDefaultInstance() : lrsLoadReportingServer_; } /** *
   * LRS server to send load reports to.
   * If not present, load reporting will be disabled.
   * Supercedes lrs_load_reporting_server_name field.
   * 
* * .grpc.service_config.XdsServer lrs_load_reporting_server = 7; */ @java.lang.Override public io.grpc.serviceconfig.XdsServerOrBuilder getLrsLoadReportingServerOrBuilder() { return lrsLoadReportingServer_ == null ? io.grpc.serviceconfig.XdsServer.getDefaultInstance() : lrsLoadReportingServer_; } public static final int MAX_CONCURRENT_REQUESTS_FIELD_NUMBER = 4; private com.google.protobuf.UInt32Value maxConcurrentRequests_; /** *
   * Maximum number of outstanding requests can be made to the upstream cluster.
   * Default is 1024.
   * 
* * .google.protobuf.UInt32Value max_concurrent_requests = 4; * @return Whether the maxConcurrentRequests field is set. */ @java.lang.Override public boolean hasMaxConcurrentRequests() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * Maximum number of outstanding requests can be made to the upstream cluster.
   * Default is 1024.
   * 
* * .google.protobuf.UInt32Value max_concurrent_requests = 4; * @return The maxConcurrentRequests. */ @java.lang.Override public com.google.protobuf.UInt32Value getMaxConcurrentRequests() { return maxConcurrentRequests_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : maxConcurrentRequests_; } /** *
   * Maximum number of outstanding requests can be made to the upstream cluster.
   * Default is 1024.
   * 
* * .google.protobuf.UInt32Value max_concurrent_requests = 4; */ @java.lang.Override public com.google.protobuf.UInt32ValueOrBuilder getMaxConcurrentRequestsOrBuilder() { return maxConcurrentRequests_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : maxConcurrentRequests_; } public static final int DROP_CATEGORIES_FIELD_NUMBER = 5; @SuppressWarnings("serial") private java.util.List dropCategories_; /** * repeated .grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig.DropCategory drop_categories = 5; */ @java.lang.Override public java.util.List getDropCategoriesList() { return dropCategories_; } /** * repeated .grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig.DropCategory drop_categories = 5; */ @java.lang.Override public java.util.List getDropCategoriesOrBuilderList() { return dropCategories_; } /** * repeated .grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig.DropCategory drop_categories = 5; */ @java.lang.Override public int getDropCategoriesCount() { return dropCategories_.size(); } /** * repeated .grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig.DropCategory drop_categories = 5; */ @java.lang.Override public io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory getDropCategories(int index) { return dropCategories_.get(index); } /** * repeated .grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig.DropCategory drop_categories = 5; */ @java.lang.Override public io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategoryOrBuilder getDropCategoriesOrBuilder( int index) { return dropCategories_.get(index); } public static final int CHILD_POLICY_FIELD_NUMBER = 6; @SuppressWarnings("serial") private java.util.List childPolicy_; /** *
   * Child policy.
   * 
* * repeated .grpc.service_config.LoadBalancingConfig child_policy = 6; */ @java.lang.Override public java.util.List getChildPolicyList() { return childPolicy_; } /** *
   * Child policy.
   * 
* * repeated .grpc.service_config.LoadBalancingConfig child_policy = 6; */ @java.lang.Override public java.util.List getChildPolicyOrBuilderList() { return childPolicy_; } /** *
   * Child policy.
   * 
* * repeated .grpc.service_config.LoadBalancingConfig child_policy = 6; */ @java.lang.Override public int getChildPolicyCount() { return childPolicy_.size(); } /** *
   * Child policy.
   * 
* * repeated .grpc.service_config.LoadBalancingConfig child_policy = 6; */ @java.lang.Override public io.grpc.serviceconfig.LoadBalancingConfig getChildPolicy(int index) { return childPolicy_.get(index); } /** *
   * Child policy.
   * 
* * repeated .grpc.service_config.LoadBalancingConfig child_policy = 6; */ @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(cluster_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cluster_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(edsServiceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, edsServiceName_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getLrsLoadReportingServerName()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getMaxConcurrentRequests()); } for (int i = 0; i < dropCategories_.size(); i++) { output.writeMessage(5, dropCategories_.get(i)); } for (int i = 0; i < childPolicy_.size(); i++) { output.writeMessage(6, childPolicy_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(7, getLrsLoadReportingServer()); } 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(cluster_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cluster_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(edsServiceName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, edsServiceName_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getLrsLoadReportingServerName()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getMaxConcurrentRequests()); } for (int i = 0; i < dropCategories_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, dropCategories_.get(i)); } for (int i = 0; i < childPolicy_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, childPolicy_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getLrsLoadReportingServer()); } 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.XdsClusterImplLoadBalancingPolicyConfig)) { return super.equals(obj); } io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig other = (io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig) obj; if (!getCluster() .equals(other.getCluster())) return false; if (!getEdsServiceName() .equals(other.getEdsServiceName())) return false; if (hasLrsLoadReportingServerName() != other.hasLrsLoadReportingServerName()) return false; if (hasLrsLoadReportingServerName()) { if (!getLrsLoadReportingServerName() .equals(other.getLrsLoadReportingServerName())) return false; } if (hasLrsLoadReportingServer() != other.hasLrsLoadReportingServer()) return false; if (hasLrsLoadReportingServer()) { if (!getLrsLoadReportingServer() .equals(other.getLrsLoadReportingServer())) return false; } if (hasMaxConcurrentRequests() != other.hasMaxConcurrentRequests()) return false; if (hasMaxConcurrentRequests()) { if (!getMaxConcurrentRequests() .equals(other.getMaxConcurrentRequests())) return false; } if (!getDropCategoriesList() .equals(other.getDropCategoriesList())) 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_FIELD_NUMBER; hash = (53 * hash) + getCluster().hashCode(); hash = (37 * hash) + EDS_SERVICE_NAME_FIELD_NUMBER; hash = (53 * hash) + getEdsServiceName().hashCode(); if (hasLrsLoadReportingServerName()) { hash = (37 * hash) + LRS_LOAD_REPORTING_SERVER_NAME_FIELD_NUMBER; hash = (53 * hash) + getLrsLoadReportingServerName().hashCode(); } if (hasLrsLoadReportingServer()) { hash = (37 * hash) + LRS_LOAD_REPORTING_SERVER_FIELD_NUMBER; hash = (53 * hash) + getLrsLoadReportingServer().hashCode(); } if (hasMaxConcurrentRequests()) { hash = (37 * hash) + MAX_CONCURRENT_REQUESTS_FIELD_NUMBER; hash = (53 * hash) + getMaxConcurrentRequests().hashCode(); } if (getDropCategoriesCount() > 0) { hash = (37 * hash) + DROP_CATEGORIES_FIELD_NUMBER; hash = (53 * hash) + getDropCategoriesList().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.XdsClusterImplLoadBalancingPolicyConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig 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.XdsClusterImplLoadBalancingPolicyConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig 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.XdsClusterImplLoadBalancingPolicyConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig 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.XdsClusterImplLoadBalancingPolicyConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig 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.XdsClusterImplLoadBalancingPolicyConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig 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.XdsClusterImplLoadBalancingPolicyConfig 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 xds_cluster_impl LB policy.
   * 
* * Protobuf type {@code grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig) io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grpc.serviceconfig.ServiceConfigProto.internal_static_grpc_service_config_XdsClusterImplLoadBalancingPolicyConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grpc.serviceconfig.ServiceConfigProto.internal_static_grpc_service_config_XdsClusterImplLoadBalancingPolicyConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.class, io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.Builder.class); } // Construct using io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getLrsLoadReportingServerNameFieldBuilder(); getLrsLoadReportingServerFieldBuilder(); getMaxConcurrentRequestsFieldBuilder(); getDropCategoriesFieldBuilder(); getChildPolicyFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; cluster_ = ""; edsServiceName_ = ""; lrsLoadReportingServerName_ = null; if (lrsLoadReportingServerNameBuilder_ != null) { lrsLoadReportingServerNameBuilder_.dispose(); lrsLoadReportingServerNameBuilder_ = null; } lrsLoadReportingServer_ = null; if (lrsLoadReportingServerBuilder_ != null) { lrsLoadReportingServerBuilder_.dispose(); lrsLoadReportingServerBuilder_ = null; } maxConcurrentRequests_ = null; if (maxConcurrentRequestsBuilder_ != null) { maxConcurrentRequestsBuilder_.dispose(); maxConcurrentRequestsBuilder_ = null; } if (dropCategoriesBuilder_ == null) { dropCategories_ = java.util.Collections.emptyList(); } else { dropCategories_ = null; dropCategoriesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); if (childPolicyBuilder_ == null) { childPolicy_ = java.util.Collections.emptyList(); } else { childPolicy_ = null; childPolicyBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.grpc.serviceconfig.ServiceConfigProto.internal_static_grpc_service_config_XdsClusterImplLoadBalancingPolicyConfig_descriptor; } @java.lang.Override public io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig getDefaultInstanceForType() { return io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.getDefaultInstance(); } @java.lang.Override public io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig build() { io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig buildPartial() { io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig result = new io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig result) { if (dropCategoriesBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0)) { dropCategories_ = java.util.Collections.unmodifiableList(dropCategories_); bitField0_ = (bitField0_ & ~0x00000020); } result.dropCategories_ = dropCategories_; } else { result.dropCategories_ = dropCategoriesBuilder_.build(); } if (childPolicyBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0)) { childPolicy_ = java.util.Collections.unmodifiableList(childPolicy_); bitField0_ = (bitField0_ & ~0x00000040); } result.childPolicy_ = childPolicy_; } else { result.childPolicy_ = childPolicyBuilder_.build(); } } private void buildPartial0(io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.cluster_ = cluster_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.edsServiceName_ = edsServiceName_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.lrsLoadReportingServerName_ = lrsLoadReportingServerNameBuilder_ == null ? lrsLoadReportingServerName_ : lrsLoadReportingServerNameBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.lrsLoadReportingServer_ = lrsLoadReportingServerBuilder_ == null ? lrsLoadReportingServer_ : lrsLoadReportingServerBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { result.maxConcurrentRequests_ = maxConcurrentRequestsBuilder_ == null ? maxConcurrentRequests_ : maxConcurrentRequestsBuilder_.build(); to_bitField0_ |= 0x00000004; } 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.XdsClusterImplLoadBalancingPolicyConfig) { return mergeFrom((io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig other) { if (other == io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.getDefaultInstance()) return this; if (!other.getCluster().isEmpty()) { cluster_ = other.cluster_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getEdsServiceName().isEmpty()) { edsServiceName_ = other.edsServiceName_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasLrsLoadReportingServerName()) { mergeLrsLoadReportingServerName(other.getLrsLoadReportingServerName()); } if (other.hasLrsLoadReportingServer()) { mergeLrsLoadReportingServer(other.getLrsLoadReportingServer()); } if (other.hasMaxConcurrentRequests()) { mergeMaxConcurrentRequests(other.getMaxConcurrentRequests()); } if (dropCategoriesBuilder_ == null) { if (!other.dropCategories_.isEmpty()) { if (dropCategories_.isEmpty()) { dropCategories_ = other.dropCategories_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureDropCategoriesIsMutable(); dropCategories_.addAll(other.dropCategories_); } onChanged(); } } else { if (!other.dropCategories_.isEmpty()) { if (dropCategoriesBuilder_.isEmpty()) { dropCategoriesBuilder_.dispose(); dropCategoriesBuilder_ = null; dropCategories_ = other.dropCategories_; bitField0_ = (bitField0_ & ~0x00000020); dropCategoriesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDropCategoriesFieldBuilder() : null; } else { dropCategoriesBuilder_.addAllMessages(other.dropCategories_); } } } if (childPolicyBuilder_ == null) { if (!other.childPolicy_.isEmpty()) { if (childPolicy_.isEmpty()) { childPolicy_ = other.childPolicy_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureChildPolicyIsMutable(); childPolicy_.addAll(other.childPolicy_); } onChanged(); } } else { if (!other.childPolicy_.isEmpty()) { if (childPolicyBuilder_.isEmpty()) { childPolicyBuilder_.dispose(); childPolicyBuilder_ = null; childPolicy_ = other.childPolicy_; bitField0_ = (bitField0_ & ~0x00000040); 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: { cluster_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { edsServiceName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getLrsLoadReportingServerNameFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getMaxConcurrentRequestsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 34 case 42: { io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory m = input.readMessage( io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory.parser(), extensionRegistry); if (dropCategoriesBuilder_ == null) { ensureDropCategoriesIsMutable(); dropCategories_.add(m); } else { dropCategoriesBuilder_.addMessage(m); } break; } // case 42 case 50: { 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 50 case 58: { input.readMessage( getLrsLoadReportingServerFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 58 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 cluster_ = ""; /** *
     * Cluster name.  Required.
     * 
* * string cluster = 1; * @return The cluster. */ public java.lang.String getCluster() { java.lang.Object ref = cluster_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cluster_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Cluster name.  Required.
     * 
* * string cluster = 1; * @return The bytes for cluster. */ public com.google.protobuf.ByteString getClusterBytes() { java.lang.Object ref = cluster_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cluster_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Cluster name.  Required.
     * 
* * string cluster = 1; * @param value The cluster to set. * @return This builder for chaining. */ public Builder setCluster( java.lang.String value) { if (value == null) { throw new NullPointerException(); } cluster_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Cluster name.  Required.
     * 
* * string cluster = 1; * @return This builder for chaining. */ public Builder clearCluster() { cluster_ = getDefaultInstance().getCluster(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * Cluster name.  Required.
     * 
* * string cluster = 1; * @param value The bytes for cluster to set. * @return This builder for chaining. */ public Builder setClusterBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cluster_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object edsServiceName_ = ""; /** *
     * EDS service name.
     * Not set if cluster is not an EDS cluster or if it does not
     * specify an EDS service name.
     * 
* * 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.
     * Not set if cluster is not an EDS cluster or if it does not
     * specify an EDS service name.
     * 
* * 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.
     * Not set if cluster is not an EDS cluster or if it does not
     * specify an EDS service name.
     * 
* * 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.
     * Not set if cluster is not an EDS cluster or if it does not
     * specify an EDS service name.
     * 
* * 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.
     * Not set if cluster is not an EDS cluster or if it does not
     * specify an EDS service name.
     * 
* * 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 com.google.protobuf.StringValue lrsLoadReportingServerName_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> lrsLoadReportingServerNameBuilder_; /** *
     * Server to send load reports to.
     * If unset, no load reporting is done.
     * If set to empty string, load reporting will be sent to the same
     * server as we are getting xds data from.
     * DEPRECATED: Use new lrs_load_reporting_server field instead.
     * 
* * .google.protobuf.StringValue lrs_load_reporting_server_name = 3 [deprecated = true]; * @deprecated grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig.lrs_load_reporting_server_name is deprecated. * See service_config.proto;l=344 * @return Whether the lrsLoadReportingServerName field is set. */ @java.lang.Deprecated public boolean hasLrsLoadReportingServerName() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Server to send load reports to.
     * If unset, no load reporting is done.
     * If set to empty string, load reporting will be sent to the same
     * server as we are getting xds data from.
     * DEPRECATED: Use new lrs_load_reporting_server field instead.
     * 
* * .google.protobuf.StringValue lrs_load_reporting_server_name = 3 [deprecated = true]; * @deprecated grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig.lrs_load_reporting_server_name is deprecated. * See service_config.proto;l=344 * @return The lrsLoadReportingServerName. */ @java.lang.Deprecated public com.google.protobuf.StringValue getLrsLoadReportingServerName() { if (lrsLoadReportingServerNameBuilder_ == null) { return lrsLoadReportingServerName_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : lrsLoadReportingServerName_; } else { return lrsLoadReportingServerNameBuilder_.getMessage(); } } /** *
     * Server to send load reports to.
     * If unset, no load reporting is done.
     * If set to empty string, load reporting will be sent to the same
     * server as we are getting xds data from.
     * DEPRECATED: Use new lrs_load_reporting_server field instead.
     * 
* * .google.protobuf.StringValue lrs_load_reporting_server_name = 3 [deprecated = true]; */ @java.lang.Deprecated public Builder setLrsLoadReportingServerName(com.google.protobuf.StringValue value) { if (lrsLoadReportingServerNameBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lrsLoadReportingServerName_ = value; } else { lrsLoadReportingServerNameBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Server to send load reports to.
     * If unset, no load reporting is done.
     * If set to empty string, load reporting will be sent to the same
     * server as we are getting xds data from.
     * DEPRECATED: Use new lrs_load_reporting_server field instead.
     * 
* * .google.protobuf.StringValue lrs_load_reporting_server_name = 3 [deprecated = true]; */ @java.lang.Deprecated public Builder setLrsLoadReportingServerName( com.google.protobuf.StringValue.Builder builderForValue) { if (lrsLoadReportingServerNameBuilder_ == null) { lrsLoadReportingServerName_ = builderForValue.build(); } else { lrsLoadReportingServerNameBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Server to send load reports to.
     * If unset, no load reporting is done.
     * If set to empty string, load reporting will be sent to the same
     * server as we are getting xds data from.
     * DEPRECATED: Use new lrs_load_reporting_server field instead.
     * 
* * .google.protobuf.StringValue lrs_load_reporting_server_name = 3 [deprecated = true]; */ @java.lang.Deprecated public Builder mergeLrsLoadReportingServerName(com.google.protobuf.StringValue value) { if (lrsLoadReportingServerNameBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && lrsLoadReportingServerName_ != null && lrsLoadReportingServerName_ != com.google.protobuf.StringValue.getDefaultInstance()) { getLrsLoadReportingServerNameBuilder().mergeFrom(value); } else { lrsLoadReportingServerName_ = value; } } else { lrsLoadReportingServerNameBuilder_.mergeFrom(value); } if (lrsLoadReportingServerName_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
     * Server to send load reports to.
     * If unset, no load reporting is done.
     * If set to empty string, load reporting will be sent to the same
     * server as we are getting xds data from.
     * DEPRECATED: Use new lrs_load_reporting_server field instead.
     * 
* * .google.protobuf.StringValue lrs_load_reporting_server_name = 3 [deprecated = true]; */ @java.lang.Deprecated public Builder clearLrsLoadReportingServerName() { bitField0_ = (bitField0_ & ~0x00000004); lrsLoadReportingServerName_ = null; if (lrsLoadReportingServerNameBuilder_ != null) { lrsLoadReportingServerNameBuilder_.dispose(); lrsLoadReportingServerNameBuilder_ = null; } onChanged(); return this; } /** *
     * Server to send load reports to.
     * If unset, no load reporting is done.
     * If set to empty string, load reporting will be sent to the same
     * server as we are getting xds data from.
     * DEPRECATED: Use new lrs_load_reporting_server field instead.
     * 
* * .google.protobuf.StringValue lrs_load_reporting_server_name = 3 [deprecated = true]; */ @java.lang.Deprecated public com.google.protobuf.StringValue.Builder getLrsLoadReportingServerNameBuilder() { bitField0_ |= 0x00000004; onChanged(); return getLrsLoadReportingServerNameFieldBuilder().getBuilder(); } /** *
     * Server to send load reports to.
     * If unset, no load reporting is done.
     * If set to empty string, load reporting will be sent to the same
     * server as we are getting xds data from.
     * DEPRECATED: Use new lrs_load_reporting_server field instead.
     * 
* * .google.protobuf.StringValue lrs_load_reporting_server_name = 3 [deprecated = true]; */ @java.lang.Deprecated public com.google.protobuf.StringValueOrBuilder getLrsLoadReportingServerNameOrBuilder() { if (lrsLoadReportingServerNameBuilder_ != null) { return lrsLoadReportingServerNameBuilder_.getMessageOrBuilder(); } else { return lrsLoadReportingServerName_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : lrsLoadReportingServerName_; } } /** *
     * Server to send load reports to.
     * If unset, no load reporting is done.
     * If set to empty string, load reporting will be sent to the same
     * server as we are getting xds data from.
     * DEPRECATED: Use new lrs_load_reporting_server field instead.
     * 
* * .google.protobuf.StringValue lrs_load_reporting_server_name = 3 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> getLrsLoadReportingServerNameFieldBuilder() { if (lrsLoadReportingServerNameBuilder_ == null) { lrsLoadReportingServerNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( getLrsLoadReportingServerName(), getParentForChildren(), isClean()); lrsLoadReportingServerName_ = null; } return lrsLoadReportingServerNameBuilder_; } private io.grpc.serviceconfig.XdsServer lrsLoadReportingServer_; private com.google.protobuf.SingleFieldBuilderV3< io.grpc.serviceconfig.XdsServer, io.grpc.serviceconfig.XdsServer.Builder, io.grpc.serviceconfig.XdsServerOrBuilder> lrsLoadReportingServerBuilder_; /** *
     * LRS server to send load reports to.
     * If not present, load reporting will be disabled.
     * Supercedes lrs_load_reporting_server_name field.
     * 
* * .grpc.service_config.XdsServer lrs_load_reporting_server = 7; * @return Whether the lrsLoadReportingServer field is set. */ public boolean hasLrsLoadReportingServer() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * LRS server to send load reports to.
     * If not present, load reporting will be disabled.
     * Supercedes lrs_load_reporting_server_name field.
     * 
* * .grpc.service_config.XdsServer lrs_load_reporting_server = 7; * @return The lrsLoadReportingServer. */ public io.grpc.serviceconfig.XdsServer getLrsLoadReportingServer() { if (lrsLoadReportingServerBuilder_ == null) { return lrsLoadReportingServer_ == null ? io.grpc.serviceconfig.XdsServer.getDefaultInstance() : lrsLoadReportingServer_; } else { return lrsLoadReportingServerBuilder_.getMessage(); } } /** *
     * LRS server to send load reports to.
     * If not present, load reporting will be disabled.
     * Supercedes lrs_load_reporting_server_name field.
     * 
* * .grpc.service_config.XdsServer lrs_load_reporting_server = 7; */ public Builder setLrsLoadReportingServer(io.grpc.serviceconfig.XdsServer value) { if (lrsLoadReportingServerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lrsLoadReportingServer_ = value; } else { lrsLoadReportingServerBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * LRS server to send load reports to.
     * If not present, load reporting will be disabled.
     * Supercedes lrs_load_reporting_server_name field.
     * 
* * .grpc.service_config.XdsServer lrs_load_reporting_server = 7; */ public Builder setLrsLoadReportingServer( io.grpc.serviceconfig.XdsServer.Builder builderForValue) { if (lrsLoadReportingServerBuilder_ == null) { lrsLoadReportingServer_ = builderForValue.build(); } else { lrsLoadReportingServerBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * LRS server to send load reports to.
     * If not present, load reporting will be disabled.
     * Supercedes lrs_load_reporting_server_name field.
     * 
* * .grpc.service_config.XdsServer lrs_load_reporting_server = 7; */ public Builder mergeLrsLoadReportingServer(io.grpc.serviceconfig.XdsServer value) { if (lrsLoadReportingServerBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && lrsLoadReportingServer_ != null && lrsLoadReportingServer_ != io.grpc.serviceconfig.XdsServer.getDefaultInstance()) { getLrsLoadReportingServerBuilder().mergeFrom(value); } else { lrsLoadReportingServer_ = value; } } else { lrsLoadReportingServerBuilder_.mergeFrom(value); } if (lrsLoadReportingServer_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
     * LRS server to send load reports to.
     * If not present, load reporting will be disabled.
     * Supercedes lrs_load_reporting_server_name field.
     * 
* * .grpc.service_config.XdsServer lrs_load_reporting_server = 7; */ public Builder clearLrsLoadReportingServer() { bitField0_ = (bitField0_ & ~0x00000008); lrsLoadReportingServer_ = null; if (lrsLoadReportingServerBuilder_ != null) { lrsLoadReportingServerBuilder_.dispose(); lrsLoadReportingServerBuilder_ = null; } onChanged(); return this; } /** *
     * LRS server to send load reports to.
     * If not present, load reporting will be disabled.
     * Supercedes lrs_load_reporting_server_name field.
     * 
* * .grpc.service_config.XdsServer lrs_load_reporting_server = 7; */ public io.grpc.serviceconfig.XdsServer.Builder getLrsLoadReportingServerBuilder() { bitField0_ |= 0x00000008; onChanged(); return getLrsLoadReportingServerFieldBuilder().getBuilder(); } /** *
     * LRS server to send load reports to.
     * If not present, load reporting will be disabled.
     * Supercedes lrs_load_reporting_server_name field.
     * 
* * .grpc.service_config.XdsServer lrs_load_reporting_server = 7; */ public io.grpc.serviceconfig.XdsServerOrBuilder getLrsLoadReportingServerOrBuilder() { if (lrsLoadReportingServerBuilder_ != null) { return lrsLoadReportingServerBuilder_.getMessageOrBuilder(); } else { return lrsLoadReportingServer_ == null ? io.grpc.serviceconfig.XdsServer.getDefaultInstance() : lrsLoadReportingServer_; } } /** *
     * LRS server to send load reports to.
     * If not present, load reporting will be disabled.
     * Supercedes lrs_load_reporting_server_name field.
     * 
* * .grpc.service_config.XdsServer lrs_load_reporting_server = 7; */ private com.google.protobuf.SingleFieldBuilderV3< io.grpc.serviceconfig.XdsServer, io.grpc.serviceconfig.XdsServer.Builder, io.grpc.serviceconfig.XdsServerOrBuilder> getLrsLoadReportingServerFieldBuilder() { if (lrsLoadReportingServerBuilder_ == null) { lrsLoadReportingServerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.grpc.serviceconfig.XdsServer, io.grpc.serviceconfig.XdsServer.Builder, io.grpc.serviceconfig.XdsServerOrBuilder>( getLrsLoadReportingServer(), getParentForChildren(), isClean()); lrsLoadReportingServer_ = null; } return lrsLoadReportingServerBuilder_; } private com.google.protobuf.UInt32Value maxConcurrentRequests_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> maxConcurrentRequestsBuilder_; /** *
     * Maximum number of outstanding requests can be made to the upstream cluster.
     * Default is 1024.
     * 
* * .google.protobuf.UInt32Value max_concurrent_requests = 4; * @return Whether the maxConcurrentRequests field is set. */ public boolean hasMaxConcurrentRequests() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * Maximum number of outstanding requests can be made to the upstream cluster.
     * Default is 1024.
     * 
* * .google.protobuf.UInt32Value max_concurrent_requests = 4; * @return The maxConcurrentRequests. */ public com.google.protobuf.UInt32Value getMaxConcurrentRequests() { if (maxConcurrentRequestsBuilder_ == null) { return maxConcurrentRequests_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : maxConcurrentRequests_; } else { return maxConcurrentRequestsBuilder_.getMessage(); } } /** *
     * Maximum number of outstanding requests can be made to the upstream cluster.
     * Default is 1024.
     * 
* * .google.protobuf.UInt32Value max_concurrent_requests = 4; */ public Builder setMaxConcurrentRequests(com.google.protobuf.UInt32Value value) { if (maxConcurrentRequestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } maxConcurrentRequests_ = value; } else { maxConcurrentRequestsBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * Maximum number of outstanding requests can be made to the upstream cluster.
     * Default is 1024.
     * 
* * .google.protobuf.UInt32Value max_concurrent_requests = 4; */ public Builder setMaxConcurrentRequests( com.google.protobuf.UInt32Value.Builder builderForValue) { if (maxConcurrentRequestsBuilder_ == null) { maxConcurrentRequests_ = builderForValue.build(); } else { maxConcurrentRequestsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * Maximum number of outstanding requests can be made to the upstream cluster.
     * Default is 1024.
     * 
* * .google.protobuf.UInt32Value max_concurrent_requests = 4; */ public Builder mergeMaxConcurrentRequests(com.google.protobuf.UInt32Value value) { if (maxConcurrentRequestsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && maxConcurrentRequests_ != null && maxConcurrentRequests_ != com.google.protobuf.UInt32Value.getDefaultInstance()) { getMaxConcurrentRequestsBuilder().mergeFrom(value); } else { maxConcurrentRequests_ = value; } } else { maxConcurrentRequestsBuilder_.mergeFrom(value); } if (maxConcurrentRequests_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** *
     * Maximum number of outstanding requests can be made to the upstream cluster.
     * Default is 1024.
     * 
* * .google.protobuf.UInt32Value max_concurrent_requests = 4; */ public Builder clearMaxConcurrentRequests() { bitField0_ = (bitField0_ & ~0x00000010); maxConcurrentRequests_ = null; if (maxConcurrentRequestsBuilder_ != null) { maxConcurrentRequestsBuilder_.dispose(); maxConcurrentRequestsBuilder_ = null; } onChanged(); return this; } /** *
     * Maximum number of outstanding requests can be made to the upstream cluster.
     * Default is 1024.
     * 
* * .google.protobuf.UInt32Value max_concurrent_requests = 4; */ public com.google.protobuf.UInt32Value.Builder getMaxConcurrentRequestsBuilder() { bitField0_ |= 0x00000010; onChanged(); return getMaxConcurrentRequestsFieldBuilder().getBuilder(); } /** *
     * Maximum number of outstanding requests can be made to the upstream cluster.
     * Default is 1024.
     * 
* * .google.protobuf.UInt32Value max_concurrent_requests = 4; */ public com.google.protobuf.UInt32ValueOrBuilder getMaxConcurrentRequestsOrBuilder() { if (maxConcurrentRequestsBuilder_ != null) { return maxConcurrentRequestsBuilder_.getMessageOrBuilder(); } else { return maxConcurrentRequests_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : maxConcurrentRequests_; } } /** *
     * Maximum number of outstanding requests can be made to the upstream cluster.
     * Default is 1024.
     * 
* * .google.protobuf.UInt32Value max_concurrent_requests = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> getMaxConcurrentRequestsFieldBuilder() { if (maxConcurrentRequestsBuilder_ == null) { maxConcurrentRequestsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>( getMaxConcurrentRequests(), getParentForChildren(), isClean()); maxConcurrentRequests_ = null; } return maxConcurrentRequestsBuilder_; } private java.util.List dropCategories_ = java.util.Collections.emptyList(); private void ensureDropCategoriesIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { dropCategories_ = new java.util.ArrayList(dropCategories_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory, io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory.Builder, io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategoryOrBuilder> dropCategoriesBuilder_; /** * repeated .grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig.DropCategory drop_categories = 5; */ public java.util.List getDropCategoriesList() { if (dropCategoriesBuilder_ == null) { return java.util.Collections.unmodifiableList(dropCategories_); } else { return dropCategoriesBuilder_.getMessageList(); } } /** * repeated .grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig.DropCategory drop_categories = 5; */ public int getDropCategoriesCount() { if (dropCategoriesBuilder_ == null) { return dropCategories_.size(); } else { return dropCategoriesBuilder_.getCount(); } } /** * repeated .grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig.DropCategory drop_categories = 5; */ public io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory getDropCategories(int index) { if (dropCategoriesBuilder_ == null) { return dropCategories_.get(index); } else { return dropCategoriesBuilder_.getMessage(index); } } /** * repeated .grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig.DropCategory drop_categories = 5; */ public Builder setDropCategories( int index, io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory value) { if (dropCategoriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDropCategoriesIsMutable(); dropCategories_.set(index, value); onChanged(); } else { dropCategoriesBuilder_.setMessage(index, value); } return this; } /** * repeated .grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig.DropCategory drop_categories = 5; */ public Builder setDropCategories( int index, io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory.Builder builderForValue) { if (dropCategoriesBuilder_ == null) { ensureDropCategoriesIsMutable(); dropCategories_.set(index, builderForValue.build()); onChanged(); } else { dropCategoriesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig.DropCategory drop_categories = 5; */ public Builder addDropCategories(io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory value) { if (dropCategoriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDropCategoriesIsMutable(); dropCategories_.add(value); onChanged(); } else { dropCategoriesBuilder_.addMessage(value); } return this; } /** * repeated .grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig.DropCategory drop_categories = 5; */ public Builder addDropCategories( int index, io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory value) { if (dropCategoriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDropCategoriesIsMutable(); dropCategories_.add(index, value); onChanged(); } else { dropCategoriesBuilder_.addMessage(index, value); } return this; } /** * repeated .grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig.DropCategory drop_categories = 5; */ public Builder addDropCategories( io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory.Builder builderForValue) { if (dropCategoriesBuilder_ == null) { ensureDropCategoriesIsMutable(); dropCategories_.add(builderForValue.build()); onChanged(); } else { dropCategoriesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig.DropCategory drop_categories = 5; */ public Builder addDropCategories( int index, io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory.Builder builderForValue) { if (dropCategoriesBuilder_ == null) { ensureDropCategoriesIsMutable(); dropCategories_.add(index, builderForValue.build()); onChanged(); } else { dropCategoriesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig.DropCategory drop_categories = 5; */ public Builder addAllDropCategories( java.lang.Iterable values) { if (dropCategoriesBuilder_ == null) { ensureDropCategoriesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, dropCategories_); onChanged(); } else { dropCategoriesBuilder_.addAllMessages(values); } return this; } /** * repeated .grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig.DropCategory drop_categories = 5; */ public Builder clearDropCategories() { if (dropCategoriesBuilder_ == null) { dropCategories_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { dropCategoriesBuilder_.clear(); } return this; } /** * repeated .grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig.DropCategory drop_categories = 5; */ public Builder removeDropCategories(int index) { if (dropCategoriesBuilder_ == null) { ensureDropCategoriesIsMutable(); dropCategories_.remove(index); onChanged(); } else { dropCategoriesBuilder_.remove(index); } return this; } /** * repeated .grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig.DropCategory drop_categories = 5; */ public io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory.Builder getDropCategoriesBuilder( int index) { return getDropCategoriesFieldBuilder().getBuilder(index); } /** * repeated .grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig.DropCategory drop_categories = 5; */ public io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategoryOrBuilder getDropCategoriesOrBuilder( int index) { if (dropCategoriesBuilder_ == null) { return dropCategories_.get(index); } else { return dropCategoriesBuilder_.getMessageOrBuilder(index); } } /** * repeated .grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig.DropCategory drop_categories = 5; */ public java.util.List getDropCategoriesOrBuilderList() { if (dropCategoriesBuilder_ != null) { return dropCategoriesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(dropCategories_); } } /** * repeated .grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig.DropCategory drop_categories = 5; */ public io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory.Builder addDropCategoriesBuilder() { return getDropCategoriesFieldBuilder().addBuilder( io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory.getDefaultInstance()); } /** * repeated .grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig.DropCategory drop_categories = 5; */ public io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory.Builder addDropCategoriesBuilder( int index) { return getDropCategoriesFieldBuilder().addBuilder( index, io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory.getDefaultInstance()); } /** * repeated .grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig.DropCategory drop_categories = 5; */ public java.util.List getDropCategoriesBuilderList() { return getDropCategoriesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory, io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory.Builder, io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategoryOrBuilder> getDropCategoriesFieldBuilder() { if (dropCategoriesBuilder_ == null) { dropCategoriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory, io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategory.Builder, io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.DropCategoryOrBuilder>( dropCategories_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); dropCategories_ = null; } return dropCategoriesBuilder_; } private java.util.List childPolicy_ = java.util.Collections.emptyList(); private void ensureChildPolicyIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { childPolicy_ = new java.util.ArrayList(childPolicy_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.grpc.serviceconfig.LoadBalancingConfig, io.grpc.serviceconfig.LoadBalancingConfig.Builder, io.grpc.serviceconfig.LoadBalancingConfigOrBuilder> childPolicyBuilder_; /** *
     * Child policy.
     * 
* * repeated .grpc.service_config.LoadBalancingConfig child_policy = 6; */ public java.util.List getChildPolicyList() { if (childPolicyBuilder_ == null) { return java.util.Collections.unmodifiableList(childPolicy_); } else { return childPolicyBuilder_.getMessageList(); } } /** *
     * Child policy.
     * 
* * repeated .grpc.service_config.LoadBalancingConfig child_policy = 6; */ public int getChildPolicyCount() { if (childPolicyBuilder_ == null) { return childPolicy_.size(); } else { return childPolicyBuilder_.getCount(); } } /** *
     * Child policy.
     * 
* * repeated .grpc.service_config.LoadBalancingConfig child_policy = 6; */ public io.grpc.serviceconfig.LoadBalancingConfig getChildPolicy(int index) { if (childPolicyBuilder_ == null) { return childPolicy_.get(index); } else { return childPolicyBuilder_.getMessage(index); } } /** *
     * Child policy.
     * 
* * repeated .grpc.service_config.LoadBalancingConfig child_policy = 6; */ 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; } /** *
     * Child policy.
     * 
* * repeated .grpc.service_config.LoadBalancingConfig child_policy = 6; */ 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; } /** *
     * Child policy.
     * 
* * repeated .grpc.service_config.LoadBalancingConfig child_policy = 6; */ 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; } /** *
     * Child policy.
     * 
* * repeated .grpc.service_config.LoadBalancingConfig child_policy = 6; */ 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; } /** *
     * Child policy.
     * 
* * repeated .grpc.service_config.LoadBalancingConfig child_policy = 6; */ 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; } /** *
     * Child policy.
     * 
* * repeated .grpc.service_config.LoadBalancingConfig child_policy = 6; */ 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; } /** *
     * Child policy.
     * 
* * repeated .grpc.service_config.LoadBalancingConfig child_policy = 6; */ public Builder addAllChildPolicy( java.lang.Iterable values) { if (childPolicyBuilder_ == null) { ensureChildPolicyIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, childPolicy_); onChanged(); } else { childPolicyBuilder_.addAllMessages(values); } return this; } /** *
     * Child policy.
     * 
* * repeated .grpc.service_config.LoadBalancingConfig child_policy = 6; */ public Builder clearChildPolicy() { if (childPolicyBuilder_ == null) { childPolicy_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { childPolicyBuilder_.clear(); } return this; } /** *
     * Child policy.
     * 
* * repeated .grpc.service_config.LoadBalancingConfig child_policy = 6; */ public Builder removeChildPolicy(int index) { if (childPolicyBuilder_ == null) { ensureChildPolicyIsMutable(); childPolicy_.remove(index); onChanged(); } else { childPolicyBuilder_.remove(index); } return this; } /** *
     * Child policy.
     * 
* * repeated .grpc.service_config.LoadBalancingConfig child_policy = 6; */ public io.grpc.serviceconfig.LoadBalancingConfig.Builder getChildPolicyBuilder( int index) { return getChildPolicyFieldBuilder().getBuilder(index); } /** *
     * Child policy.
     * 
* * repeated .grpc.service_config.LoadBalancingConfig child_policy = 6; */ public io.grpc.serviceconfig.LoadBalancingConfigOrBuilder getChildPolicyOrBuilder( int index) { if (childPolicyBuilder_ == null) { return childPolicy_.get(index); } else { return childPolicyBuilder_.getMessageOrBuilder(index); } } /** *
     * Child policy.
     * 
* * repeated .grpc.service_config.LoadBalancingConfig child_policy = 6; */ public java.util.List getChildPolicyOrBuilderList() { if (childPolicyBuilder_ != null) { return childPolicyBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(childPolicy_); } } /** *
     * Child policy.
     * 
* * repeated .grpc.service_config.LoadBalancingConfig child_policy = 6; */ public io.grpc.serviceconfig.LoadBalancingConfig.Builder addChildPolicyBuilder() { return getChildPolicyFieldBuilder().addBuilder( io.grpc.serviceconfig.LoadBalancingConfig.getDefaultInstance()); } /** *
     * Child policy.
     * 
* * repeated .grpc.service_config.LoadBalancingConfig child_policy = 6; */ public io.grpc.serviceconfig.LoadBalancingConfig.Builder addChildPolicyBuilder( int index) { return getChildPolicyFieldBuilder().addBuilder( index, io.grpc.serviceconfig.LoadBalancingConfig.getDefaultInstance()); } /** *
     * Child policy.
     * 
* * repeated .grpc.service_config.LoadBalancingConfig child_policy = 6; */ 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_ & 0x00000040) != 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.XdsClusterImplLoadBalancingPolicyConfig) } // @@protoc_insertion_point(class_scope:grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig) private static final io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig(); } public static io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public XdsClusterImplLoadBalancingPolicyConfig 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.XdsClusterImplLoadBalancingPolicyConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy