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

io.grpc.serviceconfig.LoadBalancingConfig 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;

/**
 * 
 * Selects LB policy and provides corresponding configuration.
 *
 * In general, all instances of this field should be repeated. Clients will
 * iterate through the list in order and stop at the first policy that they
 * support.  This allows the service config to specify custom policies that may
 * not be known to all clients.
 *
 * - If the config for the first supported policy is invalid, the whole service
 *   config is invalid.
 * - If the list doesn't contain any supported policy, the whole service config
 *   is invalid.
 * 
* * Protobuf type {@code grpc.service_config.LoadBalancingConfig} */ public final class LoadBalancingConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.service_config.LoadBalancingConfig) LoadBalancingConfigOrBuilder { private static final long serialVersionUID = 0L; // Use LoadBalancingConfig.newBuilder() to construct. private LoadBalancingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LoadBalancingConfig() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LoadBalancingConfig(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grpc.serviceconfig.ServiceConfigProto.internal_static_grpc_service_config_LoadBalancingConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grpc.serviceconfig.ServiceConfigProto.internal_static_grpc_service_config_LoadBalancingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grpc.serviceconfig.LoadBalancingConfig.class, io.grpc.serviceconfig.LoadBalancingConfig.Builder.class); } private int policyCase_ = 0; @SuppressWarnings("serial") private java.lang.Object policy_; public enum PolicyCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PICK_FIRST(4), ROUND_ROBIN(1), GRPCLB(3), PRIORITY_EXPERIMENTAL(9), WEIGHTED_TARGET_EXPERIMENTAL(10), XDS_CLUSTER_MANAGER_EXPERIMENTAL(14), CDS_EXPERIMENTAL(6), XDS_CLUSTER_RESOLVER_EXPERIMENTAL(11), XDS_CLUSTER_IMPL_EXPERIMENTAL(12), RING_HASH_EXPERIMENTAL(13), @java.lang.Deprecated LRS_EXPERIMENTAL(8), @java.lang.Deprecated EDS_EXPERIMENTAL(7), @java.lang.Deprecated XDS(2), @java.lang.Deprecated XDS_EXPERIMENTAL(5), POLICY_NOT_SET(0); private final int value; private PolicyCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static PolicyCase valueOf(int value) { return forNumber(value); } public static PolicyCase forNumber(int value) { switch (value) { case 4: return PICK_FIRST; case 1: return ROUND_ROBIN; case 3: return GRPCLB; case 9: return PRIORITY_EXPERIMENTAL; case 10: return WEIGHTED_TARGET_EXPERIMENTAL; case 14: return XDS_CLUSTER_MANAGER_EXPERIMENTAL; case 6: return CDS_EXPERIMENTAL; case 11: return XDS_CLUSTER_RESOLVER_EXPERIMENTAL; case 12: return XDS_CLUSTER_IMPL_EXPERIMENTAL; case 13: return RING_HASH_EXPERIMENTAL; case 8: return LRS_EXPERIMENTAL; case 7: return EDS_EXPERIMENTAL; case 2: return XDS; case 5: return XDS_EXPERIMENTAL; case 0: return POLICY_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public PolicyCase getPolicyCase() { return PolicyCase.forNumber( policyCase_); } public static final int PICK_FIRST_FIELD_NUMBER = 4; /** * .grpc.service_config.PickFirstConfig pick_first = 4 [json_name = "pick_first"]; * @return Whether the pickFirst field is set. */ @java.lang.Override public boolean hasPickFirst() { return policyCase_ == 4; } /** * .grpc.service_config.PickFirstConfig pick_first = 4 [json_name = "pick_first"]; * @return The pickFirst. */ @java.lang.Override public io.grpc.serviceconfig.PickFirstConfig getPickFirst() { if (policyCase_ == 4) { return (io.grpc.serviceconfig.PickFirstConfig) policy_; } return io.grpc.serviceconfig.PickFirstConfig.getDefaultInstance(); } /** * .grpc.service_config.PickFirstConfig pick_first = 4 [json_name = "pick_first"]; */ @java.lang.Override public io.grpc.serviceconfig.PickFirstConfigOrBuilder getPickFirstOrBuilder() { if (policyCase_ == 4) { return (io.grpc.serviceconfig.PickFirstConfig) policy_; } return io.grpc.serviceconfig.PickFirstConfig.getDefaultInstance(); } public static final int ROUND_ROBIN_FIELD_NUMBER = 1; /** * .grpc.service_config.RoundRobinConfig round_robin = 1 [json_name = "round_robin"]; * @return Whether the roundRobin field is set. */ @java.lang.Override public boolean hasRoundRobin() { return policyCase_ == 1; } /** * .grpc.service_config.RoundRobinConfig round_robin = 1 [json_name = "round_robin"]; * @return The roundRobin. */ @java.lang.Override public io.grpc.serviceconfig.RoundRobinConfig getRoundRobin() { if (policyCase_ == 1) { return (io.grpc.serviceconfig.RoundRobinConfig) policy_; } return io.grpc.serviceconfig.RoundRobinConfig.getDefaultInstance(); } /** * .grpc.service_config.RoundRobinConfig round_robin = 1 [json_name = "round_robin"]; */ @java.lang.Override public io.grpc.serviceconfig.RoundRobinConfigOrBuilder getRoundRobinOrBuilder() { if (policyCase_ == 1) { return (io.grpc.serviceconfig.RoundRobinConfig) policy_; } return io.grpc.serviceconfig.RoundRobinConfig.getDefaultInstance(); } public static final int GRPCLB_FIELD_NUMBER = 3; /** *
   * gRPC lookaside load balancing.
   * This will eventually be deprecated by the new xDS-based local
   * balancing policy.
   * 
* * .grpc.service_config.GrpcLbConfig grpclb = 3; * @return Whether the grpclb field is set. */ @java.lang.Override public boolean hasGrpclb() { return policyCase_ == 3; } /** *
   * gRPC lookaside load balancing.
   * This will eventually be deprecated by the new xDS-based local
   * balancing policy.
   * 
* * .grpc.service_config.GrpcLbConfig grpclb = 3; * @return The grpclb. */ @java.lang.Override public io.grpc.serviceconfig.GrpcLbConfig getGrpclb() { if (policyCase_ == 3) { return (io.grpc.serviceconfig.GrpcLbConfig) policy_; } return io.grpc.serviceconfig.GrpcLbConfig.getDefaultInstance(); } /** *
   * gRPC lookaside load balancing.
   * This will eventually be deprecated by the new xDS-based local
   * balancing policy.
   * 
* * .grpc.service_config.GrpcLbConfig grpclb = 3; */ @java.lang.Override public io.grpc.serviceconfig.GrpcLbConfigOrBuilder getGrpclbOrBuilder() { if (policyCase_ == 3) { return (io.grpc.serviceconfig.GrpcLbConfig) policy_; } return io.grpc.serviceconfig.GrpcLbConfig.getDefaultInstance(); } public static final int PRIORITY_EXPERIMENTAL_FIELD_NUMBER = 9; /** * .grpc.service_config.PriorityLoadBalancingPolicyConfig priority_experimental = 9 [json_name = "priority_experimental"]; * @return Whether the priorityExperimental field is set. */ @java.lang.Override public boolean hasPriorityExperimental() { return policyCase_ == 9; } /** * .grpc.service_config.PriorityLoadBalancingPolicyConfig priority_experimental = 9 [json_name = "priority_experimental"]; * @return The priorityExperimental. */ @java.lang.Override public io.grpc.serviceconfig.PriorityLoadBalancingPolicyConfig getPriorityExperimental() { if (policyCase_ == 9) { return (io.grpc.serviceconfig.PriorityLoadBalancingPolicyConfig) policy_; } return io.grpc.serviceconfig.PriorityLoadBalancingPolicyConfig.getDefaultInstance(); } /** * .grpc.service_config.PriorityLoadBalancingPolicyConfig priority_experimental = 9 [json_name = "priority_experimental"]; */ @java.lang.Override public io.grpc.serviceconfig.PriorityLoadBalancingPolicyConfigOrBuilder getPriorityExperimentalOrBuilder() { if (policyCase_ == 9) { return (io.grpc.serviceconfig.PriorityLoadBalancingPolicyConfig) policy_; } return io.grpc.serviceconfig.PriorityLoadBalancingPolicyConfig.getDefaultInstance(); } public static final int WEIGHTED_TARGET_EXPERIMENTAL_FIELD_NUMBER = 10; /** * .grpc.service_config.WeightedTargetLoadBalancingPolicyConfig weighted_target_experimental = 10 [json_name = "weighted_target_experimental"]; * @return Whether the weightedTargetExperimental field is set. */ @java.lang.Override public boolean hasWeightedTargetExperimental() { return policyCase_ == 10; } /** * .grpc.service_config.WeightedTargetLoadBalancingPolicyConfig weighted_target_experimental = 10 [json_name = "weighted_target_experimental"]; * @return The weightedTargetExperimental. */ @java.lang.Override public io.grpc.serviceconfig.WeightedTargetLoadBalancingPolicyConfig getWeightedTargetExperimental() { if (policyCase_ == 10) { return (io.grpc.serviceconfig.WeightedTargetLoadBalancingPolicyConfig) policy_; } return io.grpc.serviceconfig.WeightedTargetLoadBalancingPolicyConfig.getDefaultInstance(); } /** * .grpc.service_config.WeightedTargetLoadBalancingPolicyConfig weighted_target_experimental = 10 [json_name = "weighted_target_experimental"]; */ @java.lang.Override public io.grpc.serviceconfig.WeightedTargetLoadBalancingPolicyConfigOrBuilder getWeightedTargetExperimentalOrBuilder() { if (policyCase_ == 10) { return (io.grpc.serviceconfig.WeightedTargetLoadBalancingPolicyConfig) policy_; } return io.grpc.serviceconfig.WeightedTargetLoadBalancingPolicyConfig.getDefaultInstance(); } public static final int XDS_CLUSTER_MANAGER_EXPERIMENTAL_FIELD_NUMBER = 14; /** *
   * xDS-based load balancing.
   * 
* * .grpc.service_config.XdsClusterManagerLoadBalancingPolicyConfig xds_cluster_manager_experimental = 14 [json_name = "xds_cluster_manager_experimental"]; * @return Whether the xdsClusterManagerExperimental field is set. */ @java.lang.Override public boolean hasXdsClusterManagerExperimental() { return policyCase_ == 14; } /** *
   * xDS-based load balancing.
   * 
* * .grpc.service_config.XdsClusterManagerLoadBalancingPolicyConfig xds_cluster_manager_experimental = 14 [json_name = "xds_cluster_manager_experimental"]; * @return The xdsClusterManagerExperimental. */ @java.lang.Override public io.grpc.serviceconfig.XdsClusterManagerLoadBalancingPolicyConfig getXdsClusterManagerExperimental() { if (policyCase_ == 14) { return (io.grpc.serviceconfig.XdsClusterManagerLoadBalancingPolicyConfig) policy_; } return io.grpc.serviceconfig.XdsClusterManagerLoadBalancingPolicyConfig.getDefaultInstance(); } /** *
   * xDS-based load balancing.
   * 
* * .grpc.service_config.XdsClusterManagerLoadBalancingPolicyConfig xds_cluster_manager_experimental = 14 [json_name = "xds_cluster_manager_experimental"]; */ @java.lang.Override public io.grpc.serviceconfig.XdsClusterManagerLoadBalancingPolicyConfigOrBuilder getXdsClusterManagerExperimentalOrBuilder() { if (policyCase_ == 14) { return (io.grpc.serviceconfig.XdsClusterManagerLoadBalancingPolicyConfig) policy_; } return io.grpc.serviceconfig.XdsClusterManagerLoadBalancingPolicyConfig.getDefaultInstance(); } public static final int CDS_EXPERIMENTAL_FIELD_NUMBER = 6; /** * .grpc.service_config.CdsConfig cds_experimental = 6 [json_name = "cds_experimental"]; * @return Whether the cdsExperimental field is set. */ @java.lang.Override public boolean hasCdsExperimental() { return policyCase_ == 6; } /** * .grpc.service_config.CdsConfig cds_experimental = 6 [json_name = "cds_experimental"]; * @return The cdsExperimental. */ @java.lang.Override public io.grpc.serviceconfig.CdsConfig getCdsExperimental() { if (policyCase_ == 6) { return (io.grpc.serviceconfig.CdsConfig) policy_; } return io.grpc.serviceconfig.CdsConfig.getDefaultInstance(); } /** * .grpc.service_config.CdsConfig cds_experimental = 6 [json_name = "cds_experimental"]; */ @java.lang.Override public io.grpc.serviceconfig.CdsConfigOrBuilder getCdsExperimentalOrBuilder() { if (policyCase_ == 6) { return (io.grpc.serviceconfig.CdsConfig) policy_; } return io.grpc.serviceconfig.CdsConfig.getDefaultInstance(); } public static final int XDS_CLUSTER_RESOLVER_EXPERIMENTAL_FIELD_NUMBER = 11; /** * .grpc.service_config.XdsClusterResolverLoadBalancingPolicyConfig xds_cluster_resolver_experimental = 11 [json_name = "xds_cluster_resolver_experimental"]; * @return Whether the xdsClusterResolverExperimental field is set. */ @java.lang.Override public boolean hasXdsClusterResolverExperimental() { return policyCase_ == 11; } /** * .grpc.service_config.XdsClusterResolverLoadBalancingPolicyConfig xds_cluster_resolver_experimental = 11 [json_name = "xds_cluster_resolver_experimental"]; * @return The xdsClusterResolverExperimental. */ @java.lang.Override public io.grpc.serviceconfig.XdsClusterResolverLoadBalancingPolicyConfig getXdsClusterResolverExperimental() { if (policyCase_ == 11) { return (io.grpc.serviceconfig.XdsClusterResolverLoadBalancingPolicyConfig) policy_; } return io.grpc.serviceconfig.XdsClusterResolverLoadBalancingPolicyConfig.getDefaultInstance(); } /** * .grpc.service_config.XdsClusterResolverLoadBalancingPolicyConfig xds_cluster_resolver_experimental = 11 [json_name = "xds_cluster_resolver_experimental"]; */ @java.lang.Override public io.grpc.serviceconfig.XdsClusterResolverLoadBalancingPolicyConfigOrBuilder getXdsClusterResolverExperimentalOrBuilder() { if (policyCase_ == 11) { return (io.grpc.serviceconfig.XdsClusterResolverLoadBalancingPolicyConfig) policy_; } return io.grpc.serviceconfig.XdsClusterResolverLoadBalancingPolicyConfig.getDefaultInstance(); } public static final int XDS_CLUSTER_IMPL_EXPERIMENTAL_FIELD_NUMBER = 12; /** * .grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig xds_cluster_impl_experimental = 12 [json_name = "xds_cluster_impl_experimental"]; * @return Whether the xdsClusterImplExperimental field is set. */ @java.lang.Override public boolean hasXdsClusterImplExperimental() { return policyCase_ == 12; } /** * .grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig xds_cluster_impl_experimental = 12 [json_name = "xds_cluster_impl_experimental"]; * @return The xdsClusterImplExperimental. */ @java.lang.Override public io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig getXdsClusterImplExperimental() { if (policyCase_ == 12) { return (io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig) policy_; } return io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.getDefaultInstance(); } /** * .grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig xds_cluster_impl_experimental = 12 [json_name = "xds_cluster_impl_experimental"]; */ @java.lang.Override public io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfigOrBuilder getXdsClusterImplExperimentalOrBuilder() { if (policyCase_ == 12) { return (io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig) policy_; } return io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.getDefaultInstance(); } public static final int RING_HASH_EXPERIMENTAL_FIELD_NUMBER = 13; /** * .grpc.service_config.RingHashLoadBalancingConfig ring_hash_experimental = 13 [json_name = "ring_hash_experimental"]; * @return Whether the ringHashExperimental field is set. */ @java.lang.Override public boolean hasRingHashExperimental() { return policyCase_ == 13; } /** * .grpc.service_config.RingHashLoadBalancingConfig ring_hash_experimental = 13 [json_name = "ring_hash_experimental"]; * @return The ringHashExperimental. */ @java.lang.Override public io.grpc.serviceconfig.RingHashLoadBalancingConfig getRingHashExperimental() { if (policyCase_ == 13) { return (io.grpc.serviceconfig.RingHashLoadBalancingConfig) policy_; } return io.grpc.serviceconfig.RingHashLoadBalancingConfig.getDefaultInstance(); } /** * .grpc.service_config.RingHashLoadBalancingConfig ring_hash_experimental = 13 [json_name = "ring_hash_experimental"]; */ @java.lang.Override public io.grpc.serviceconfig.RingHashLoadBalancingConfigOrBuilder getRingHashExperimentalOrBuilder() { if (policyCase_ == 13) { return (io.grpc.serviceconfig.RingHashLoadBalancingConfig) policy_; } return io.grpc.serviceconfig.RingHashLoadBalancingConfig.getDefaultInstance(); } public static final int LRS_EXPERIMENTAL_FIELD_NUMBER = 8; /** *
   * Deprecated xDS-related policies.
   * 
* * .grpc.service_config.LrsLoadBalancingPolicyConfig lrs_experimental = 8 [json_name = "lrs_experimental", deprecated = true]; * @deprecated grpc.service_config.LoadBalancingConfig.lrs_experimental is deprecated. * See service_config.proto;l=511 * @return Whether the lrsExperimental field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasLrsExperimental() { return policyCase_ == 8; } /** *
   * Deprecated xDS-related policies.
   * 
* * .grpc.service_config.LrsLoadBalancingPolicyConfig lrs_experimental = 8 [json_name = "lrs_experimental", deprecated = true]; * @deprecated grpc.service_config.LoadBalancingConfig.lrs_experimental is deprecated. * See service_config.proto;l=511 * @return The lrsExperimental. */ @java.lang.Override @java.lang.Deprecated public io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig getLrsExperimental() { if (policyCase_ == 8) { return (io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig) policy_; } return io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.getDefaultInstance(); } /** *
   * Deprecated xDS-related policies.
   * 
* * .grpc.service_config.LrsLoadBalancingPolicyConfig lrs_experimental = 8 [json_name = "lrs_experimental", deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public io.grpc.serviceconfig.LrsLoadBalancingPolicyConfigOrBuilder getLrsExperimentalOrBuilder() { if (policyCase_ == 8) { return (io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig) policy_; } return io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.getDefaultInstance(); } public static final int EDS_EXPERIMENTAL_FIELD_NUMBER = 7; /** * .grpc.service_config.EdsLoadBalancingPolicyConfig eds_experimental = 7 [json_name = "eds_experimental", deprecated = true]; * @deprecated grpc.service_config.LoadBalancingConfig.eds_experimental is deprecated. * See service_config.proto;l=513 * @return Whether the edsExperimental field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasEdsExperimental() { return policyCase_ == 7; } /** * .grpc.service_config.EdsLoadBalancingPolicyConfig eds_experimental = 7 [json_name = "eds_experimental", deprecated = true]; * @deprecated grpc.service_config.LoadBalancingConfig.eds_experimental is deprecated. * See service_config.proto;l=513 * @return The edsExperimental. */ @java.lang.Override @java.lang.Deprecated public io.grpc.serviceconfig.EdsLoadBalancingPolicyConfig getEdsExperimental() { if (policyCase_ == 7) { return (io.grpc.serviceconfig.EdsLoadBalancingPolicyConfig) policy_; } return io.grpc.serviceconfig.EdsLoadBalancingPolicyConfig.getDefaultInstance(); } /** * .grpc.service_config.EdsLoadBalancingPolicyConfig eds_experimental = 7 [json_name = "eds_experimental", deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public io.grpc.serviceconfig.EdsLoadBalancingPolicyConfigOrBuilder getEdsExperimentalOrBuilder() { if (policyCase_ == 7) { return (io.grpc.serviceconfig.EdsLoadBalancingPolicyConfig) policy_; } return io.grpc.serviceconfig.EdsLoadBalancingPolicyConfig.getDefaultInstance(); } public static final int XDS_FIELD_NUMBER = 2; /** * .grpc.service_config.XdsConfig xds = 2 [deprecated = true]; * @deprecated grpc.service_config.LoadBalancingConfig.xds is deprecated. * See service_config.proto;l=515 * @return Whether the xds field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasXds() { return policyCase_ == 2; } /** * .grpc.service_config.XdsConfig xds = 2 [deprecated = true]; * @deprecated grpc.service_config.LoadBalancingConfig.xds is deprecated. * See service_config.proto;l=515 * @return The xds. */ @java.lang.Override @java.lang.Deprecated public io.grpc.serviceconfig.XdsConfig getXds() { if (policyCase_ == 2) { return (io.grpc.serviceconfig.XdsConfig) policy_; } return io.grpc.serviceconfig.XdsConfig.getDefaultInstance(); } /** * .grpc.service_config.XdsConfig xds = 2 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public io.grpc.serviceconfig.XdsConfigOrBuilder getXdsOrBuilder() { if (policyCase_ == 2) { return (io.grpc.serviceconfig.XdsConfig) policy_; } return io.grpc.serviceconfig.XdsConfig.getDefaultInstance(); } public static final int XDS_EXPERIMENTAL_FIELD_NUMBER = 5; /** * .grpc.service_config.XdsConfig xds_experimental = 5 [json_name = "xds_experimental", deprecated = true]; * @deprecated grpc.service_config.LoadBalancingConfig.xds_experimental is deprecated. * See service_config.proto;l=516 * @return Whether the xdsExperimental field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasXdsExperimental() { return policyCase_ == 5; } /** * .grpc.service_config.XdsConfig xds_experimental = 5 [json_name = "xds_experimental", deprecated = true]; * @deprecated grpc.service_config.LoadBalancingConfig.xds_experimental is deprecated. * See service_config.proto;l=516 * @return The xdsExperimental. */ @java.lang.Override @java.lang.Deprecated public io.grpc.serviceconfig.XdsConfig getXdsExperimental() { if (policyCase_ == 5) { return (io.grpc.serviceconfig.XdsConfig) policy_; } return io.grpc.serviceconfig.XdsConfig.getDefaultInstance(); } /** * .grpc.service_config.XdsConfig xds_experimental = 5 [json_name = "xds_experimental", deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public io.grpc.serviceconfig.XdsConfigOrBuilder getXdsExperimentalOrBuilder() { if (policyCase_ == 5) { return (io.grpc.serviceconfig.XdsConfig) policy_; } return io.grpc.serviceconfig.XdsConfig.getDefaultInstance(); } 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 (policyCase_ == 1) { output.writeMessage(1, (io.grpc.serviceconfig.RoundRobinConfig) policy_); } if (policyCase_ == 2) { output.writeMessage(2, (io.grpc.serviceconfig.XdsConfig) policy_); } if (policyCase_ == 3) { output.writeMessage(3, (io.grpc.serviceconfig.GrpcLbConfig) policy_); } if (policyCase_ == 4) { output.writeMessage(4, (io.grpc.serviceconfig.PickFirstConfig) policy_); } if (policyCase_ == 5) { output.writeMessage(5, (io.grpc.serviceconfig.XdsConfig) policy_); } if (policyCase_ == 6) { output.writeMessage(6, (io.grpc.serviceconfig.CdsConfig) policy_); } if (policyCase_ == 7) { output.writeMessage(7, (io.grpc.serviceconfig.EdsLoadBalancingPolicyConfig) policy_); } if (policyCase_ == 8) { output.writeMessage(8, (io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig) policy_); } if (policyCase_ == 9) { output.writeMessage(9, (io.grpc.serviceconfig.PriorityLoadBalancingPolicyConfig) policy_); } if (policyCase_ == 10) { output.writeMessage(10, (io.grpc.serviceconfig.WeightedTargetLoadBalancingPolicyConfig) policy_); } if (policyCase_ == 11) { output.writeMessage(11, (io.grpc.serviceconfig.XdsClusterResolverLoadBalancingPolicyConfig) policy_); } if (policyCase_ == 12) { output.writeMessage(12, (io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig) policy_); } if (policyCase_ == 13) { output.writeMessage(13, (io.grpc.serviceconfig.RingHashLoadBalancingConfig) policy_); } if (policyCase_ == 14) { output.writeMessage(14, (io.grpc.serviceconfig.XdsClusterManagerLoadBalancingPolicyConfig) policy_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (policyCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (io.grpc.serviceconfig.RoundRobinConfig) policy_); } if (policyCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (io.grpc.serviceconfig.XdsConfig) policy_); } if (policyCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (io.grpc.serviceconfig.GrpcLbConfig) policy_); } if (policyCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (io.grpc.serviceconfig.PickFirstConfig) policy_); } if (policyCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (io.grpc.serviceconfig.XdsConfig) policy_); } if (policyCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (io.grpc.serviceconfig.CdsConfig) policy_); } if (policyCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (io.grpc.serviceconfig.EdsLoadBalancingPolicyConfig) policy_); } if (policyCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig) policy_); } if (policyCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (io.grpc.serviceconfig.PriorityLoadBalancingPolicyConfig) policy_); } if (policyCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (io.grpc.serviceconfig.WeightedTargetLoadBalancingPolicyConfig) policy_); } if (policyCase_ == 11) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, (io.grpc.serviceconfig.XdsClusterResolverLoadBalancingPolicyConfig) policy_); } if (policyCase_ == 12) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, (io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig) policy_); } if (policyCase_ == 13) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, (io.grpc.serviceconfig.RingHashLoadBalancingConfig) policy_); } if (policyCase_ == 14) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, (io.grpc.serviceconfig.XdsClusterManagerLoadBalancingPolicyConfig) policy_); } 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.LoadBalancingConfig)) { return super.equals(obj); } io.grpc.serviceconfig.LoadBalancingConfig other = (io.grpc.serviceconfig.LoadBalancingConfig) obj; if (!getPolicyCase().equals(other.getPolicyCase())) return false; switch (policyCase_) { case 4: if (!getPickFirst() .equals(other.getPickFirst())) return false; break; case 1: if (!getRoundRobin() .equals(other.getRoundRobin())) return false; break; case 3: if (!getGrpclb() .equals(other.getGrpclb())) return false; break; case 9: if (!getPriorityExperimental() .equals(other.getPriorityExperimental())) return false; break; case 10: if (!getWeightedTargetExperimental() .equals(other.getWeightedTargetExperimental())) return false; break; case 14: if (!getXdsClusterManagerExperimental() .equals(other.getXdsClusterManagerExperimental())) return false; break; case 6: if (!getCdsExperimental() .equals(other.getCdsExperimental())) return false; break; case 11: if (!getXdsClusterResolverExperimental() .equals(other.getXdsClusterResolverExperimental())) return false; break; case 12: if (!getXdsClusterImplExperimental() .equals(other.getXdsClusterImplExperimental())) return false; break; case 13: if (!getRingHashExperimental() .equals(other.getRingHashExperimental())) return false; break; case 8: if (!getLrsExperimental() .equals(other.getLrsExperimental())) return false; break; case 7: if (!getEdsExperimental() .equals(other.getEdsExperimental())) return false; break; case 2: if (!getXds() .equals(other.getXds())) return false; break; case 5: if (!getXdsExperimental() .equals(other.getXdsExperimental())) return false; break; case 0: default: } 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(); switch (policyCase_) { case 4: hash = (37 * hash) + PICK_FIRST_FIELD_NUMBER; hash = (53 * hash) + getPickFirst().hashCode(); break; case 1: hash = (37 * hash) + ROUND_ROBIN_FIELD_NUMBER; hash = (53 * hash) + getRoundRobin().hashCode(); break; case 3: hash = (37 * hash) + GRPCLB_FIELD_NUMBER; hash = (53 * hash) + getGrpclb().hashCode(); break; case 9: hash = (37 * hash) + PRIORITY_EXPERIMENTAL_FIELD_NUMBER; hash = (53 * hash) + getPriorityExperimental().hashCode(); break; case 10: hash = (37 * hash) + WEIGHTED_TARGET_EXPERIMENTAL_FIELD_NUMBER; hash = (53 * hash) + getWeightedTargetExperimental().hashCode(); break; case 14: hash = (37 * hash) + XDS_CLUSTER_MANAGER_EXPERIMENTAL_FIELD_NUMBER; hash = (53 * hash) + getXdsClusterManagerExperimental().hashCode(); break; case 6: hash = (37 * hash) + CDS_EXPERIMENTAL_FIELD_NUMBER; hash = (53 * hash) + getCdsExperimental().hashCode(); break; case 11: hash = (37 * hash) + XDS_CLUSTER_RESOLVER_EXPERIMENTAL_FIELD_NUMBER; hash = (53 * hash) + getXdsClusterResolverExperimental().hashCode(); break; case 12: hash = (37 * hash) + XDS_CLUSTER_IMPL_EXPERIMENTAL_FIELD_NUMBER; hash = (53 * hash) + getXdsClusterImplExperimental().hashCode(); break; case 13: hash = (37 * hash) + RING_HASH_EXPERIMENTAL_FIELD_NUMBER; hash = (53 * hash) + getRingHashExperimental().hashCode(); break; case 8: hash = (37 * hash) + LRS_EXPERIMENTAL_FIELD_NUMBER; hash = (53 * hash) + getLrsExperimental().hashCode(); break; case 7: hash = (37 * hash) + EDS_EXPERIMENTAL_FIELD_NUMBER; hash = (53 * hash) + getEdsExperimental().hashCode(); break; case 2: hash = (37 * hash) + XDS_FIELD_NUMBER; hash = (53 * hash) + getXds().hashCode(); break; case 5: hash = (37 * hash) + XDS_EXPERIMENTAL_FIELD_NUMBER; hash = (53 * hash) + getXdsExperimental().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.grpc.serviceconfig.LoadBalancingConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.serviceconfig.LoadBalancingConfig 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.LoadBalancingConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.serviceconfig.LoadBalancingConfig 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.LoadBalancingConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.serviceconfig.LoadBalancingConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grpc.serviceconfig.LoadBalancingConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.grpc.serviceconfig.LoadBalancingConfig 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.LoadBalancingConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.serviceconfig.LoadBalancingConfig 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.LoadBalancingConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.grpc.serviceconfig.LoadBalancingConfig 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.LoadBalancingConfig 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; } /** *
   * Selects LB policy and provides corresponding configuration.
   *
   * In general, all instances of this field should be repeated. Clients will
   * iterate through the list in order and stop at the first policy that they
   * support.  This allows the service config to specify custom policies that may
   * not be known to all clients.
   *
   * - If the config for the first supported policy is invalid, the whole service
   *   config is invalid.
   * - If the list doesn't contain any supported policy, the whole service config
   *   is invalid.
   * 
* * Protobuf type {@code grpc.service_config.LoadBalancingConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.service_config.LoadBalancingConfig) io.grpc.serviceconfig.LoadBalancingConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grpc.serviceconfig.ServiceConfigProto.internal_static_grpc_service_config_LoadBalancingConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grpc.serviceconfig.ServiceConfigProto.internal_static_grpc_service_config_LoadBalancingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grpc.serviceconfig.LoadBalancingConfig.class, io.grpc.serviceconfig.LoadBalancingConfig.Builder.class); } // Construct using io.grpc.serviceconfig.LoadBalancingConfig.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (pickFirstBuilder_ != null) { pickFirstBuilder_.clear(); } if (roundRobinBuilder_ != null) { roundRobinBuilder_.clear(); } if (grpclbBuilder_ != null) { grpclbBuilder_.clear(); } if (priorityExperimentalBuilder_ != null) { priorityExperimentalBuilder_.clear(); } if (weightedTargetExperimentalBuilder_ != null) { weightedTargetExperimentalBuilder_.clear(); } if (xdsClusterManagerExperimentalBuilder_ != null) { xdsClusterManagerExperimentalBuilder_.clear(); } if (cdsExperimentalBuilder_ != null) { cdsExperimentalBuilder_.clear(); } if (xdsClusterResolverExperimentalBuilder_ != null) { xdsClusterResolverExperimentalBuilder_.clear(); } if (xdsClusterImplExperimentalBuilder_ != null) { xdsClusterImplExperimentalBuilder_.clear(); } if (ringHashExperimentalBuilder_ != null) { ringHashExperimentalBuilder_.clear(); } if (lrsExperimentalBuilder_ != null) { lrsExperimentalBuilder_.clear(); } if (edsExperimentalBuilder_ != null) { edsExperimentalBuilder_.clear(); } if (xdsBuilder_ != null) { xdsBuilder_.clear(); } if (xdsExperimentalBuilder_ != null) { xdsExperimentalBuilder_.clear(); } policyCase_ = 0; policy_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.grpc.serviceconfig.ServiceConfigProto.internal_static_grpc_service_config_LoadBalancingConfig_descriptor; } @java.lang.Override public io.grpc.serviceconfig.LoadBalancingConfig getDefaultInstanceForType() { return io.grpc.serviceconfig.LoadBalancingConfig.getDefaultInstance(); } @java.lang.Override public io.grpc.serviceconfig.LoadBalancingConfig build() { io.grpc.serviceconfig.LoadBalancingConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.grpc.serviceconfig.LoadBalancingConfig buildPartial() { io.grpc.serviceconfig.LoadBalancingConfig result = new io.grpc.serviceconfig.LoadBalancingConfig(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(io.grpc.serviceconfig.LoadBalancingConfig result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(io.grpc.serviceconfig.LoadBalancingConfig result) { result.policyCase_ = policyCase_; result.policy_ = this.policy_; if (policyCase_ == 4 && pickFirstBuilder_ != null) { result.policy_ = pickFirstBuilder_.build(); } if (policyCase_ == 1 && roundRobinBuilder_ != null) { result.policy_ = roundRobinBuilder_.build(); } if (policyCase_ == 3 && grpclbBuilder_ != null) { result.policy_ = grpclbBuilder_.build(); } if (policyCase_ == 9 && priorityExperimentalBuilder_ != null) { result.policy_ = priorityExperimentalBuilder_.build(); } if (policyCase_ == 10 && weightedTargetExperimentalBuilder_ != null) { result.policy_ = weightedTargetExperimentalBuilder_.build(); } if (policyCase_ == 14 && xdsClusterManagerExperimentalBuilder_ != null) { result.policy_ = xdsClusterManagerExperimentalBuilder_.build(); } if (policyCase_ == 6 && cdsExperimentalBuilder_ != null) { result.policy_ = cdsExperimentalBuilder_.build(); } if (policyCase_ == 11 && xdsClusterResolverExperimentalBuilder_ != null) { result.policy_ = xdsClusterResolverExperimentalBuilder_.build(); } if (policyCase_ == 12 && xdsClusterImplExperimentalBuilder_ != null) { result.policy_ = xdsClusterImplExperimentalBuilder_.build(); } if (policyCase_ == 13 && ringHashExperimentalBuilder_ != null) { result.policy_ = ringHashExperimentalBuilder_.build(); } if (policyCase_ == 8 && lrsExperimentalBuilder_ != null) { result.policy_ = lrsExperimentalBuilder_.build(); } if (policyCase_ == 7 && edsExperimentalBuilder_ != null) { result.policy_ = edsExperimentalBuilder_.build(); } if (policyCase_ == 2 && xdsBuilder_ != null) { result.policy_ = xdsBuilder_.build(); } if (policyCase_ == 5 && xdsExperimentalBuilder_ != null) { result.policy_ = xdsExperimentalBuilder_.build(); } } @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.LoadBalancingConfig) { return mergeFrom((io.grpc.serviceconfig.LoadBalancingConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.grpc.serviceconfig.LoadBalancingConfig other) { if (other == io.grpc.serviceconfig.LoadBalancingConfig.getDefaultInstance()) return this; switch (other.getPolicyCase()) { case PICK_FIRST: { mergePickFirst(other.getPickFirst()); break; } case ROUND_ROBIN: { mergeRoundRobin(other.getRoundRobin()); break; } case GRPCLB: { mergeGrpclb(other.getGrpclb()); break; } case PRIORITY_EXPERIMENTAL: { mergePriorityExperimental(other.getPriorityExperimental()); break; } case WEIGHTED_TARGET_EXPERIMENTAL: { mergeWeightedTargetExperimental(other.getWeightedTargetExperimental()); break; } case XDS_CLUSTER_MANAGER_EXPERIMENTAL: { mergeXdsClusterManagerExperimental(other.getXdsClusterManagerExperimental()); break; } case CDS_EXPERIMENTAL: { mergeCdsExperimental(other.getCdsExperimental()); break; } case XDS_CLUSTER_RESOLVER_EXPERIMENTAL: { mergeXdsClusterResolverExperimental(other.getXdsClusterResolverExperimental()); break; } case XDS_CLUSTER_IMPL_EXPERIMENTAL: { mergeXdsClusterImplExperimental(other.getXdsClusterImplExperimental()); break; } case RING_HASH_EXPERIMENTAL: { mergeRingHashExperimental(other.getRingHashExperimental()); break; } case LRS_EXPERIMENTAL: { mergeLrsExperimental(other.getLrsExperimental()); break; } case EDS_EXPERIMENTAL: { mergeEdsExperimental(other.getEdsExperimental()); break; } case XDS: { mergeXds(other.getXds()); break; } case XDS_EXPERIMENTAL: { mergeXdsExperimental(other.getXdsExperimental()); break; } case POLICY_NOT_SET: { break; } } 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: { input.readMessage( getRoundRobinFieldBuilder().getBuilder(), extensionRegistry); policyCase_ = 1; break; } // case 10 case 18: { input.readMessage( getXdsFieldBuilder().getBuilder(), extensionRegistry); policyCase_ = 2; break; } // case 18 case 26: { input.readMessage( getGrpclbFieldBuilder().getBuilder(), extensionRegistry); policyCase_ = 3; break; } // case 26 case 34: { input.readMessage( getPickFirstFieldBuilder().getBuilder(), extensionRegistry); policyCase_ = 4; break; } // case 34 case 42: { input.readMessage( getXdsExperimentalFieldBuilder().getBuilder(), extensionRegistry); policyCase_ = 5; break; } // case 42 case 50: { input.readMessage( getCdsExperimentalFieldBuilder().getBuilder(), extensionRegistry); policyCase_ = 6; break; } // case 50 case 58: { input.readMessage( getEdsExperimentalFieldBuilder().getBuilder(), extensionRegistry); policyCase_ = 7; break; } // case 58 case 66: { input.readMessage( getLrsExperimentalFieldBuilder().getBuilder(), extensionRegistry); policyCase_ = 8; break; } // case 66 case 74: { input.readMessage( getPriorityExperimentalFieldBuilder().getBuilder(), extensionRegistry); policyCase_ = 9; break; } // case 74 case 82: { input.readMessage( getWeightedTargetExperimentalFieldBuilder().getBuilder(), extensionRegistry); policyCase_ = 10; break; } // case 82 case 90: { input.readMessage( getXdsClusterResolverExperimentalFieldBuilder().getBuilder(), extensionRegistry); policyCase_ = 11; break; } // case 90 case 98: { input.readMessage( getXdsClusterImplExperimentalFieldBuilder().getBuilder(), extensionRegistry); policyCase_ = 12; break; } // case 98 case 106: { input.readMessage( getRingHashExperimentalFieldBuilder().getBuilder(), extensionRegistry); policyCase_ = 13; break; } // case 106 case 114: { input.readMessage( getXdsClusterManagerExperimentalFieldBuilder().getBuilder(), extensionRegistry); policyCase_ = 14; break; } // case 114 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 policyCase_ = 0; private java.lang.Object policy_; public PolicyCase getPolicyCase() { return PolicyCase.forNumber( policyCase_); } public Builder clearPolicy() { policyCase_ = 0; policy_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< io.grpc.serviceconfig.PickFirstConfig, io.grpc.serviceconfig.PickFirstConfig.Builder, io.grpc.serviceconfig.PickFirstConfigOrBuilder> pickFirstBuilder_; /** * .grpc.service_config.PickFirstConfig pick_first = 4 [json_name = "pick_first"]; * @return Whether the pickFirst field is set. */ @java.lang.Override public boolean hasPickFirst() { return policyCase_ == 4; } /** * .grpc.service_config.PickFirstConfig pick_first = 4 [json_name = "pick_first"]; * @return The pickFirst. */ @java.lang.Override public io.grpc.serviceconfig.PickFirstConfig getPickFirst() { if (pickFirstBuilder_ == null) { if (policyCase_ == 4) { return (io.grpc.serviceconfig.PickFirstConfig) policy_; } return io.grpc.serviceconfig.PickFirstConfig.getDefaultInstance(); } else { if (policyCase_ == 4) { return pickFirstBuilder_.getMessage(); } return io.grpc.serviceconfig.PickFirstConfig.getDefaultInstance(); } } /** * .grpc.service_config.PickFirstConfig pick_first = 4 [json_name = "pick_first"]; */ public Builder setPickFirst(io.grpc.serviceconfig.PickFirstConfig value) { if (pickFirstBuilder_ == null) { if (value == null) { throw new NullPointerException(); } policy_ = value; onChanged(); } else { pickFirstBuilder_.setMessage(value); } policyCase_ = 4; return this; } /** * .grpc.service_config.PickFirstConfig pick_first = 4 [json_name = "pick_first"]; */ public Builder setPickFirst( io.grpc.serviceconfig.PickFirstConfig.Builder builderForValue) { if (pickFirstBuilder_ == null) { policy_ = builderForValue.build(); onChanged(); } else { pickFirstBuilder_.setMessage(builderForValue.build()); } policyCase_ = 4; return this; } /** * .grpc.service_config.PickFirstConfig pick_first = 4 [json_name = "pick_first"]; */ public Builder mergePickFirst(io.grpc.serviceconfig.PickFirstConfig value) { if (pickFirstBuilder_ == null) { if (policyCase_ == 4 && policy_ != io.grpc.serviceconfig.PickFirstConfig.getDefaultInstance()) { policy_ = io.grpc.serviceconfig.PickFirstConfig.newBuilder((io.grpc.serviceconfig.PickFirstConfig) policy_) .mergeFrom(value).buildPartial(); } else { policy_ = value; } onChanged(); } else { if (policyCase_ == 4) { pickFirstBuilder_.mergeFrom(value); } else { pickFirstBuilder_.setMessage(value); } } policyCase_ = 4; return this; } /** * .grpc.service_config.PickFirstConfig pick_first = 4 [json_name = "pick_first"]; */ public Builder clearPickFirst() { if (pickFirstBuilder_ == null) { if (policyCase_ == 4) { policyCase_ = 0; policy_ = null; onChanged(); } } else { if (policyCase_ == 4) { policyCase_ = 0; policy_ = null; } pickFirstBuilder_.clear(); } return this; } /** * .grpc.service_config.PickFirstConfig pick_first = 4 [json_name = "pick_first"]; */ public io.grpc.serviceconfig.PickFirstConfig.Builder getPickFirstBuilder() { return getPickFirstFieldBuilder().getBuilder(); } /** * .grpc.service_config.PickFirstConfig pick_first = 4 [json_name = "pick_first"]; */ @java.lang.Override public io.grpc.serviceconfig.PickFirstConfigOrBuilder getPickFirstOrBuilder() { if ((policyCase_ == 4) && (pickFirstBuilder_ != null)) { return pickFirstBuilder_.getMessageOrBuilder(); } else { if (policyCase_ == 4) { return (io.grpc.serviceconfig.PickFirstConfig) policy_; } return io.grpc.serviceconfig.PickFirstConfig.getDefaultInstance(); } } /** * .grpc.service_config.PickFirstConfig pick_first = 4 [json_name = "pick_first"]; */ private com.google.protobuf.SingleFieldBuilderV3< io.grpc.serviceconfig.PickFirstConfig, io.grpc.serviceconfig.PickFirstConfig.Builder, io.grpc.serviceconfig.PickFirstConfigOrBuilder> getPickFirstFieldBuilder() { if (pickFirstBuilder_ == null) { if (!(policyCase_ == 4)) { policy_ = io.grpc.serviceconfig.PickFirstConfig.getDefaultInstance(); } pickFirstBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.grpc.serviceconfig.PickFirstConfig, io.grpc.serviceconfig.PickFirstConfig.Builder, io.grpc.serviceconfig.PickFirstConfigOrBuilder>( (io.grpc.serviceconfig.PickFirstConfig) policy_, getParentForChildren(), isClean()); policy_ = null; } policyCase_ = 4; onChanged(); return pickFirstBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.grpc.serviceconfig.RoundRobinConfig, io.grpc.serviceconfig.RoundRobinConfig.Builder, io.grpc.serviceconfig.RoundRobinConfigOrBuilder> roundRobinBuilder_; /** * .grpc.service_config.RoundRobinConfig round_robin = 1 [json_name = "round_robin"]; * @return Whether the roundRobin field is set. */ @java.lang.Override public boolean hasRoundRobin() { return policyCase_ == 1; } /** * .grpc.service_config.RoundRobinConfig round_robin = 1 [json_name = "round_robin"]; * @return The roundRobin. */ @java.lang.Override public io.grpc.serviceconfig.RoundRobinConfig getRoundRobin() { if (roundRobinBuilder_ == null) { if (policyCase_ == 1) { return (io.grpc.serviceconfig.RoundRobinConfig) policy_; } return io.grpc.serviceconfig.RoundRobinConfig.getDefaultInstance(); } else { if (policyCase_ == 1) { return roundRobinBuilder_.getMessage(); } return io.grpc.serviceconfig.RoundRobinConfig.getDefaultInstance(); } } /** * .grpc.service_config.RoundRobinConfig round_robin = 1 [json_name = "round_robin"]; */ public Builder setRoundRobin(io.grpc.serviceconfig.RoundRobinConfig value) { if (roundRobinBuilder_ == null) { if (value == null) { throw new NullPointerException(); } policy_ = value; onChanged(); } else { roundRobinBuilder_.setMessage(value); } policyCase_ = 1; return this; } /** * .grpc.service_config.RoundRobinConfig round_robin = 1 [json_name = "round_robin"]; */ public Builder setRoundRobin( io.grpc.serviceconfig.RoundRobinConfig.Builder builderForValue) { if (roundRobinBuilder_ == null) { policy_ = builderForValue.build(); onChanged(); } else { roundRobinBuilder_.setMessage(builderForValue.build()); } policyCase_ = 1; return this; } /** * .grpc.service_config.RoundRobinConfig round_robin = 1 [json_name = "round_robin"]; */ public Builder mergeRoundRobin(io.grpc.serviceconfig.RoundRobinConfig value) { if (roundRobinBuilder_ == null) { if (policyCase_ == 1 && policy_ != io.grpc.serviceconfig.RoundRobinConfig.getDefaultInstance()) { policy_ = io.grpc.serviceconfig.RoundRobinConfig.newBuilder((io.grpc.serviceconfig.RoundRobinConfig) policy_) .mergeFrom(value).buildPartial(); } else { policy_ = value; } onChanged(); } else { if (policyCase_ == 1) { roundRobinBuilder_.mergeFrom(value); } else { roundRobinBuilder_.setMessage(value); } } policyCase_ = 1; return this; } /** * .grpc.service_config.RoundRobinConfig round_robin = 1 [json_name = "round_robin"]; */ public Builder clearRoundRobin() { if (roundRobinBuilder_ == null) { if (policyCase_ == 1) { policyCase_ = 0; policy_ = null; onChanged(); } } else { if (policyCase_ == 1) { policyCase_ = 0; policy_ = null; } roundRobinBuilder_.clear(); } return this; } /** * .grpc.service_config.RoundRobinConfig round_robin = 1 [json_name = "round_robin"]; */ public io.grpc.serviceconfig.RoundRobinConfig.Builder getRoundRobinBuilder() { return getRoundRobinFieldBuilder().getBuilder(); } /** * .grpc.service_config.RoundRobinConfig round_robin = 1 [json_name = "round_robin"]; */ @java.lang.Override public io.grpc.serviceconfig.RoundRobinConfigOrBuilder getRoundRobinOrBuilder() { if ((policyCase_ == 1) && (roundRobinBuilder_ != null)) { return roundRobinBuilder_.getMessageOrBuilder(); } else { if (policyCase_ == 1) { return (io.grpc.serviceconfig.RoundRobinConfig) policy_; } return io.grpc.serviceconfig.RoundRobinConfig.getDefaultInstance(); } } /** * .grpc.service_config.RoundRobinConfig round_robin = 1 [json_name = "round_robin"]; */ private com.google.protobuf.SingleFieldBuilderV3< io.grpc.serviceconfig.RoundRobinConfig, io.grpc.serviceconfig.RoundRobinConfig.Builder, io.grpc.serviceconfig.RoundRobinConfigOrBuilder> getRoundRobinFieldBuilder() { if (roundRobinBuilder_ == null) { if (!(policyCase_ == 1)) { policy_ = io.grpc.serviceconfig.RoundRobinConfig.getDefaultInstance(); } roundRobinBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.grpc.serviceconfig.RoundRobinConfig, io.grpc.serviceconfig.RoundRobinConfig.Builder, io.grpc.serviceconfig.RoundRobinConfigOrBuilder>( (io.grpc.serviceconfig.RoundRobinConfig) policy_, getParentForChildren(), isClean()); policy_ = null; } policyCase_ = 1; onChanged(); return roundRobinBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.grpc.serviceconfig.GrpcLbConfig, io.grpc.serviceconfig.GrpcLbConfig.Builder, io.grpc.serviceconfig.GrpcLbConfigOrBuilder> grpclbBuilder_; /** *
     * gRPC lookaside load balancing.
     * This will eventually be deprecated by the new xDS-based local
     * balancing policy.
     * 
* * .grpc.service_config.GrpcLbConfig grpclb = 3; * @return Whether the grpclb field is set. */ @java.lang.Override public boolean hasGrpclb() { return policyCase_ == 3; } /** *
     * gRPC lookaside load balancing.
     * This will eventually be deprecated by the new xDS-based local
     * balancing policy.
     * 
* * .grpc.service_config.GrpcLbConfig grpclb = 3; * @return The grpclb. */ @java.lang.Override public io.grpc.serviceconfig.GrpcLbConfig getGrpclb() { if (grpclbBuilder_ == null) { if (policyCase_ == 3) { return (io.grpc.serviceconfig.GrpcLbConfig) policy_; } return io.grpc.serviceconfig.GrpcLbConfig.getDefaultInstance(); } else { if (policyCase_ == 3) { return grpclbBuilder_.getMessage(); } return io.grpc.serviceconfig.GrpcLbConfig.getDefaultInstance(); } } /** *
     * gRPC lookaside load balancing.
     * This will eventually be deprecated by the new xDS-based local
     * balancing policy.
     * 
* * .grpc.service_config.GrpcLbConfig grpclb = 3; */ public Builder setGrpclb(io.grpc.serviceconfig.GrpcLbConfig value) { if (grpclbBuilder_ == null) { if (value == null) { throw new NullPointerException(); } policy_ = value; onChanged(); } else { grpclbBuilder_.setMessage(value); } policyCase_ = 3; return this; } /** *
     * gRPC lookaside load balancing.
     * This will eventually be deprecated by the new xDS-based local
     * balancing policy.
     * 
* * .grpc.service_config.GrpcLbConfig grpclb = 3; */ public Builder setGrpclb( io.grpc.serviceconfig.GrpcLbConfig.Builder builderForValue) { if (grpclbBuilder_ == null) { policy_ = builderForValue.build(); onChanged(); } else { grpclbBuilder_.setMessage(builderForValue.build()); } policyCase_ = 3; return this; } /** *
     * gRPC lookaside load balancing.
     * This will eventually be deprecated by the new xDS-based local
     * balancing policy.
     * 
* * .grpc.service_config.GrpcLbConfig grpclb = 3; */ public Builder mergeGrpclb(io.grpc.serviceconfig.GrpcLbConfig value) { if (grpclbBuilder_ == null) { if (policyCase_ == 3 && policy_ != io.grpc.serviceconfig.GrpcLbConfig.getDefaultInstance()) { policy_ = io.grpc.serviceconfig.GrpcLbConfig.newBuilder((io.grpc.serviceconfig.GrpcLbConfig) policy_) .mergeFrom(value).buildPartial(); } else { policy_ = value; } onChanged(); } else { if (policyCase_ == 3) { grpclbBuilder_.mergeFrom(value); } else { grpclbBuilder_.setMessage(value); } } policyCase_ = 3; return this; } /** *
     * gRPC lookaside load balancing.
     * This will eventually be deprecated by the new xDS-based local
     * balancing policy.
     * 
* * .grpc.service_config.GrpcLbConfig grpclb = 3; */ public Builder clearGrpclb() { if (grpclbBuilder_ == null) { if (policyCase_ == 3) { policyCase_ = 0; policy_ = null; onChanged(); } } else { if (policyCase_ == 3) { policyCase_ = 0; policy_ = null; } grpclbBuilder_.clear(); } return this; } /** *
     * gRPC lookaside load balancing.
     * This will eventually be deprecated by the new xDS-based local
     * balancing policy.
     * 
* * .grpc.service_config.GrpcLbConfig grpclb = 3; */ public io.grpc.serviceconfig.GrpcLbConfig.Builder getGrpclbBuilder() { return getGrpclbFieldBuilder().getBuilder(); } /** *
     * gRPC lookaside load balancing.
     * This will eventually be deprecated by the new xDS-based local
     * balancing policy.
     * 
* * .grpc.service_config.GrpcLbConfig grpclb = 3; */ @java.lang.Override public io.grpc.serviceconfig.GrpcLbConfigOrBuilder getGrpclbOrBuilder() { if ((policyCase_ == 3) && (grpclbBuilder_ != null)) { return grpclbBuilder_.getMessageOrBuilder(); } else { if (policyCase_ == 3) { return (io.grpc.serviceconfig.GrpcLbConfig) policy_; } return io.grpc.serviceconfig.GrpcLbConfig.getDefaultInstance(); } } /** *
     * gRPC lookaside load balancing.
     * This will eventually be deprecated by the new xDS-based local
     * balancing policy.
     * 
* * .grpc.service_config.GrpcLbConfig grpclb = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.grpc.serviceconfig.GrpcLbConfig, io.grpc.serviceconfig.GrpcLbConfig.Builder, io.grpc.serviceconfig.GrpcLbConfigOrBuilder> getGrpclbFieldBuilder() { if (grpclbBuilder_ == null) { if (!(policyCase_ == 3)) { policy_ = io.grpc.serviceconfig.GrpcLbConfig.getDefaultInstance(); } grpclbBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.grpc.serviceconfig.GrpcLbConfig, io.grpc.serviceconfig.GrpcLbConfig.Builder, io.grpc.serviceconfig.GrpcLbConfigOrBuilder>( (io.grpc.serviceconfig.GrpcLbConfig) policy_, getParentForChildren(), isClean()); policy_ = null; } policyCase_ = 3; onChanged(); return grpclbBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.grpc.serviceconfig.PriorityLoadBalancingPolicyConfig, io.grpc.serviceconfig.PriorityLoadBalancingPolicyConfig.Builder, io.grpc.serviceconfig.PriorityLoadBalancingPolicyConfigOrBuilder> priorityExperimentalBuilder_; /** * .grpc.service_config.PriorityLoadBalancingPolicyConfig priority_experimental = 9 [json_name = "priority_experimental"]; * @return Whether the priorityExperimental field is set. */ @java.lang.Override public boolean hasPriorityExperimental() { return policyCase_ == 9; } /** * .grpc.service_config.PriorityLoadBalancingPolicyConfig priority_experimental = 9 [json_name = "priority_experimental"]; * @return The priorityExperimental. */ @java.lang.Override public io.grpc.serviceconfig.PriorityLoadBalancingPolicyConfig getPriorityExperimental() { if (priorityExperimentalBuilder_ == null) { if (policyCase_ == 9) { return (io.grpc.serviceconfig.PriorityLoadBalancingPolicyConfig) policy_; } return io.grpc.serviceconfig.PriorityLoadBalancingPolicyConfig.getDefaultInstance(); } else { if (policyCase_ == 9) { return priorityExperimentalBuilder_.getMessage(); } return io.grpc.serviceconfig.PriorityLoadBalancingPolicyConfig.getDefaultInstance(); } } /** * .grpc.service_config.PriorityLoadBalancingPolicyConfig priority_experimental = 9 [json_name = "priority_experimental"]; */ public Builder setPriorityExperimental(io.grpc.serviceconfig.PriorityLoadBalancingPolicyConfig value) { if (priorityExperimentalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } policy_ = value; onChanged(); } else { priorityExperimentalBuilder_.setMessage(value); } policyCase_ = 9; return this; } /** * .grpc.service_config.PriorityLoadBalancingPolicyConfig priority_experimental = 9 [json_name = "priority_experimental"]; */ public Builder setPriorityExperimental( io.grpc.serviceconfig.PriorityLoadBalancingPolicyConfig.Builder builderForValue) { if (priorityExperimentalBuilder_ == null) { policy_ = builderForValue.build(); onChanged(); } else { priorityExperimentalBuilder_.setMessage(builderForValue.build()); } policyCase_ = 9; return this; } /** * .grpc.service_config.PriorityLoadBalancingPolicyConfig priority_experimental = 9 [json_name = "priority_experimental"]; */ public Builder mergePriorityExperimental(io.grpc.serviceconfig.PriorityLoadBalancingPolicyConfig value) { if (priorityExperimentalBuilder_ == null) { if (policyCase_ == 9 && policy_ != io.grpc.serviceconfig.PriorityLoadBalancingPolicyConfig.getDefaultInstance()) { policy_ = io.grpc.serviceconfig.PriorityLoadBalancingPolicyConfig.newBuilder((io.grpc.serviceconfig.PriorityLoadBalancingPolicyConfig) policy_) .mergeFrom(value).buildPartial(); } else { policy_ = value; } onChanged(); } else { if (policyCase_ == 9) { priorityExperimentalBuilder_.mergeFrom(value); } else { priorityExperimentalBuilder_.setMessage(value); } } policyCase_ = 9; return this; } /** * .grpc.service_config.PriorityLoadBalancingPolicyConfig priority_experimental = 9 [json_name = "priority_experimental"]; */ public Builder clearPriorityExperimental() { if (priorityExperimentalBuilder_ == null) { if (policyCase_ == 9) { policyCase_ = 0; policy_ = null; onChanged(); } } else { if (policyCase_ == 9) { policyCase_ = 0; policy_ = null; } priorityExperimentalBuilder_.clear(); } return this; } /** * .grpc.service_config.PriorityLoadBalancingPolicyConfig priority_experimental = 9 [json_name = "priority_experimental"]; */ public io.grpc.serviceconfig.PriorityLoadBalancingPolicyConfig.Builder getPriorityExperimentalBuilder() { return getPriorityExperimentalFieldBuilder().getBuilder(); } /** * .grpc.service_config.PriorityLoadBalancingPolicyConfig priority_experimental = 9 [json_name = "priority_experimental"]; */ @java.lang.Override public io.grpc.serviceconfig.PriorityLoadBalancingPolicyConfigOrBuilder getPriorityExperimentalOrBuilder() { if ((policyCase_ == 9) && (priorityExperimentalBuilder_ != null)) { return priorityExperimentalBuilder_.getMessageOrBuilder(); } else { if (policyCase_ == 9) { return (io.grpc.serviceconfig.PriorityLoadBalancingPolicyConfig) policy_; } return io.grpc.serviceconfig.PriorityLoadBalancingPolicyConfig.getDefaultInstance(); } } /** * .grpc.service_config.PriorityLoadBalancingPolicyConfig priority_experimental = 9 [json_name = "priority_experimental"]; */ private com.google.protobuf.SingleFieldBuilderV3< io.grpc.serviceconfig.PriorityLoadBalancingPolicyConfig, io.grpc.serviceconfig.PriorityLoadBalancingPolicyConfig.Builder, io.grpc.serviceconfig.PriorityLoadBalancingPolicyConfigOrBuilder> getPriorityExperimentalFieldBuilder() { if (priorityExperimentalBuilder_ == null) { if (!(policyCase_ == 9)) { policy_ = io.grpc.serviceconfig.PriorityLoadBalancingPolicyConfig.getDefaultInstance(); } priorityExperimentalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.grpc.serviceconfig.PriorityLoadBalancingPolicyConfig, io.grpc.serviceconfig.PriorityLoadBalancingPolicyConfig.Builder, io.grpc.serviceconfig.PriorityLoadBalancingPolicyConfigOrBuilder>( (io.grpc.serviceconfig.PriorityLoadBalancingPolicyConfig) policy_, getParentForChildren(), isClean()); policy_ = null; } policyCase_ = 9; onChanged(); return priorityExperimentalBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.grpc.serviceconfig.WeightedTargetLoadBalancingPolicyConfig, io.grpc.serviceconfig.WeightedTargetLoadBalancingPolicyConfig.Builder, io.grpc.serviceconfig.WeightedTargetLoadBalancingPolicyConfigOrBuilder> weightedTargetExperimentalBuilder_; /** * .grpc.service_config.WeightedTargetLoadBalancingPolicyConfig weighted_target_experimental = 10 [json_name = "weighted_target_experimental"]; * @return Whether the weightedTargetExperimental field is set. */ @java.lang.Override public boolean hasWeightedTargetExperimental() { return policyCase_ == 10; } /** * .grpc.service_config.WeightedTargetLoadBalancingPolicyConfig weighted_target_experimental = 10 [json_name = "weighted_target_experimental"]; * @return The weightedTargetExperimental. */ @java.lang.Override public io.grpc.serviceconfig.WeightedTargetLoadBalancingPolicyConfig getWeightedTargetExperimental() { if (weightedTargetExperimentalBuilder_ == null) { if (policyCase_ == 10) { return (io.grpc.serviceconfig.WeightedTargetLoadBalancingPolicyConfig) policy_; } return io.grpc.serviceconfig.WeightedTargetLoadBalancingPolicyConfig.getDefaultInstance(); } else { if (policyCase_ == 10) { return weightedTargetExperimentalBuilder_.getMessage(); } return io.grpc.serviceconfig.WeightedTargetLoadBalancingPolicyConfig.getDefaultInstance(); } } /** * .grpc.service_config.WeightedTargetLoadBalancingPolicyConfig weighted_target_experimental = 10 [json_name = "weighted_target_experimental"]; */ public Builder setWeightedTargetExperimental(io.grpc.serviceconfig.WeightedTargetLoadBalancingPolicyConfig value) { if (weightedTargetExperimentalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } policy_ = value; onChanged(); } else { weightedTargetExperimentalBuilder_.setMessage(value); } policyCase_ = 10; return this; } /** * .grpc.service_config.WeightedTargetLoadBalancingPolicyConfig weighted_target_experimental = 10 [json_name = "weighted_target_experimental"]; */ public Builder setWeightedTargetExperimental( io.grpc.serviceconfig.WeightedTargetLoadBalancingPolicyConfig.Builder builderForValue) { if (weightedTargetExperimentalBuilder_ == null) { policy_ = builderForValue.build(); onChanged(); } else { weightedTargetExperimentalBuilder_.setMessage(builderForValue.build()); } policyCase_ = 10; return this; } /** * .grpc.service_config.WeightedTargetLoadBalancingPolicyConfig weighted_target_experimental = 10 [json_name = "weighted_target_experimental"]; */ public Builder mergeWeightedTargetExperimental(io.grpc.serviceconfig.WeightedTargetLoadBalancingPolicyConfig value) { if (weightedTargetExperimentalBuilder_ == null) { if (policyCase_ == 10 && policy_ != io.grpc.serviceconfig.WeightedTargetLoadBalancingPolicyConfig.getDefaultInstance()) { policy_ = io.grpc.serviceconfig.WeightedTargetLoadBalancingPolicyConfig.newBuilder((io.grpc.serviceconfig.WeightedTargetLoadBalancingPolicyConfig) policy_) .mergeFrom(value).buildPartial(); } else { policy_ = value; } onChanged(); } else { if (policyCase_ == 10) { weightedTargetExperimentalBuilder_.mergeFrom(value); } else { weightedTargetExperimentalBuilder_.setMessage(value); } } policyCase_ = 10; return this; } /** * .grpc.service_config.WeightedTargetLoadBalancingPolicyConfig weighted_target_experimental = 10 [json_name = "weighted_target_experimental"]; */ public Builder clearWeightedTargetExperimental() { if (weightedTargetExperimentalBuilder_ == null) { if (policyCase_ == 10) { policyCase_ = 0; policy_ = null; onChanged(); } } else { if (policyCase_ == 10) { policyCase_ = 0; policy_ = null; } weightedTargetExperimentalBuilder_.clear(); } return this; } /** * .grpc.service_config.WeightedTargetLoadBalancingPolicyConfig weighted_target_experimental = 10 [json_name = "weighted_target_experimental"]; */ public io.grpc.serviceconfig.WeightedTargetLoadBalancingPolicyConfig.Builder getWeightedTargetExperimentalBuilder() { return getWeightedTargetExperimentalFieldBuilder().getBuilder(); } /** * .grpc.service_config.WeightedTargetLoadBalancingPolicyConfig weighted_target_experimental = 10 [json_name = "weighted_target_experimental"]; */ @java.lang.Override public io.grpc.serviceconfig.WeightedTargetLoadBalancingPolicyConfigOrBuilder getWeightedTargetExperimentalOrBuilder() { if ((policyCase_ == 10) && (weightedTargetExperimentalBuilder_ != null)) { return weightedTargetExperimentalBuilder_.getMessageOrBuilder(); } else { if (policyCase_ == 10) { return (io.grpc.serviceconfig.WeightedTargetLoadBalancingPolicyConfig) policy_; } return io.grpc.serviceconfig.WeightedTargetLoadBalancingPolicyConfig.getDefaultInstance(); } } /** * .grpc.service_config.WeightedTargetLoadBalancingPolicyConfig weighted_target_experimental = 10 [json_name = "weighted_target_experimental"]; */ private com.google.protobuf.SingleFieldBuilderV3< io.grpc.serviceconfig.WeightedTargetLoadBalancingPolicyConfig, io.grpc.serviceconfig.WeightedTargetLoadBalancingPolicyConfig.Builder, io.grpc.serviceconfig.WeightedTargetLoadBalancingPolicyConfigOrBuilder> getWeightedTargetExperimentalFieldBuilder() { if (weightedTargetExperimentalBuilder_ == null) { if (!(policyCase_ == 10)) { policy_ = io.grpc.serviceconfig.WeightedTargetLoadBalancingPolicyConfig.getDefaultInstance(); } weightedTargetExperimentalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.grpc.serviceconfig.WeightedTargetLoadBalancingPolicyConfig, io.grpc.serviceconfig.WeightedTargetLoadBalancingPolicyConfig.Builder, io.grpc.serviceconfig.WeightedTargetLoadBalancingPolicyConfigOrBuilder>( (io.grpc.serviceconfig.WeightedTargetLoadBalancingPolicyConfig) policy_, getParentForChildren(), isClean()); policy_ = null; } policyCase_ = 10; onChanged(); return weightedTargetExperimentalBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.grpc.serviceconfig.XdsClusterManagerLoadBalancingPolicyConfig, io.grpc.serviceconfig.XdsClusterManagerLoadBalancingPolicyConfig.Builder, io.grpc.serviceconfig.XdsClusterManagerLoadBalancingPolicyConfigOrBuilder> xdsClusterManagerExperimentalBuilder_; /** *
     * xDS-based load balancing.
     * 
* * .grpc.service_config.XdsClusterManagerLoadBalancingPolicyConfig xds_cluster_manager_experimental = 14 [json_name = "xds_cluster_manager_experimental"]; * @return Whether the xdsClusterManagerExperimental field is set. */ @java.lang.Override public boolean hasXdsClusterManagerExperimental() { return policyCase_ == 14; } /** *
     * xDS-based load balancing.
     * 
* * .grpc.service_config.XdsClusterManagerLoadBalancingPolicyConfig xds_cluster_manager_experimental = 14 [json_name = "xds_cluster_manager_experimental"]; * @return The xdsClusterManagerExperimental. */ @java.lang.Override public io.grpc.serviceconfig.XdsClusterManagerLoadBalancingPolicyConfig getXdsClusterManagerExperimental() { if (xdsClusterManagerExperimentalBuilder_ == null) { if (policyCase_ == 14) { return (io.grpc.serviceconfig.XdsClusterManagerLoadBalancingPolicyConfig) policy_; } return io.grpc.serviceconfig.XdsClusterManagerLoadBalancingPolicyConfig.getDefaultInstance(); } else { if (policyCase_ == 14) { return xdsClusterManagerExperimentalBuilder_.getMessage(); } return io.grpc.serviceconfig.XdsClusterManagerLoadBalancingPolicyConfig.getDefaultInstance(); } } /** *
     * xDS-based load balancing.
     * 
* * .grpc.service_config.XdsClusterManagerLoadBalancingPolicyConfig xds_cluster_manager_experimental = 14 [json_name = "xds_cluster_manager_experimental"]; */ public Builder setXdsClusterManagerExperimental(io.grpc.serviceconfig.XdsClusterManagerLoadBalancingPolicyConfig value) { if (xdsClusterManagerExperimentalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } policy_ = value; onChanged(); } else { xdsClusterManagerExperimentalBuilder_.setMessage(value); } policyCase_ = 14; return this; } /** *
     * xDS-based load balancing.
     * 
* * .grpc.service_config.XdsClusterManagerLoadBalancingPolicyConfig xds_cluster_manager_experimental = 14 [json_name = "xds_cluster_manager_experimental"]; */ public Builder setXdsClusterManagerExperimental( io.grpc.serviceconfig.XdsClusterManagerLoadBalancingPolicyConfig.Builder builderForValue) { if (xdsClusterManagerExperimentalBuilder_ == null) { policy_ = builderForValue.build(); onChanged(); } else { xdsClusterManagerExperimentalBuilder_.setMessage(builderForValue.build()); } policyCase_ = 14; return this; } /** *
     * xDS-based load balancing.
     * 
* * .grpc.service_config.XdsClusterManagerLoadBalancingPolicyConfig xds_cluster_manager_experimental = 14 [json_name = "xds_cluster_manager_experimental"]; */ public Builder mergeXdsClusterManagerExperimental(io.grpc.serviceconfig.XdsClusterManagerLoadBalancingPolicyConfig value) { if (xdsClusterManagerExperimentalBuilder_ == null) { if (policyCase_ == 14 && policy_ != io.grpc.serviceconfig.XdsClusterManagerLoadBalancingPolicyConfig.getDefaultInstance()) { policy_ = io.grpc.serviceconfig.XdsClusterManagerLoadBalancingPolicyConfig.newBuilder((io.grpc.serviceconfig.XdsClusterManagerLoadBalancingPolicyConfig) policy_) .mergeFrom(value).buildPartial(); } else { policy_ = value; } onChanged(); } else { if (policyCase_ == 14) { xdsClusterManagerExperimentalBuilder_.mergeFrom(value); } else { xdsClusterManagerExperimentalBuilder_.setMessage(value); } } policyCase_ = 14; return this; } /** *
     * xDS-based load balancing.
     * 
* * .grpc.service_config.XdsClusterManagerLoadBalancingPolicyConfig xds_cluster_manager_experimental = 14 [json_name = "xds_cluster_manager_experimental"]; */ public Builder clearXdsClusterManagerExperimental() { if (xdsClusterManagerExperimentalBuilder_ == null) { if (policyCase_ == 14) { policyCase_ = 0; policy_ = null; onChanged(); } } else { if (policyCase_ == 14) { policyCase_ = 0; policy_ = null; } xdsClusterManagerExperimentalBuilder_.clear(); } return this; } /** *
     * xDS-based load balancing.
     * 
* * .grpc.service_config.XdsClusterManagerLoadBalancingPolicyConfig xds_cluster_manager_experimental = 14 [json_name = "xds_cluster_manager_experimental"]; */ public io.grpc.serviceconfig.XdsClusterManagerLoadBalancingPolicyConfig.Builder getXdsClusterManagerExperimentalBuilder() { return getXdsClusterManagerExperimentalFieldBuilder().getBuilder(); } /** *
     * xDS-based load balancing.
     * 
* * .grpc.service_config.XdsClusterManagerLoadBalancingPolicyConfig xds_cluster_manager_experimental = 14 [json_name = "xds_cluster_manager_experimental"]; */ @java.lang.Override public io.grpc.serviceconfig.XdsClusterManagerLoadBalancingPolicyConfigOrBuilder getXdsClusterManagerExperimentalOrBuilder() { if ((policyCase_ == 14) && (xdsClusterManagerExperimentalBuilder_ != null)) { return xdsClusterManagerExperimentalBuilder_.getMessageOrBuilder(); } else { if (policyCase_ == 14) { return (io.grpc.serviceconfig.XdsClusterManagerLoadBalancingPolicyConfig) policy_; } return io.grpc.serviceconfig.XdsClusterManagerLoadBalancingPolicyConfig.getDefaultInstance(); } } /** *
     * xDS-based load balancing.
     * 
* * .grpc.service_config.XdsClusterManagerLoadBalancingPolicyConfig xds_cluster_manager_experimental = 14 [json_name = "xds_cluster_manager_experimental"]; */ private com.google.protobuf.SingleFieldBuilderV3< io.grpc.serviceconfig.XdsClusterManagerLoadBalancingPolicyConfig, io.grpc.serviceconfig.XdsClusterManagerLoadBalancingPolicyConfig.Builder, io.grpc.serviceconfig.XdsClusterManagerLoadBalancingPolicyConfigOrBuilder> getXdsClusterManagerExperimentalFieldBuilder() { if (xdsClusterManagerExperimentalBuilder_ == null) { if (!(policyCase_ == 14)) { policy_ = io.grpc.serviceconfig.XdsClusterManagerLoadBalancingPolicyConfig.getDefaultInstance(); } xdsClusterManagerExperimentalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.grpc.serviceconfig.XdsClusterManagerLoadBalancingPolicyConfig, io.grpc.serviceconfig.XdsClusterManagerLoadBalancingPolicyConfig.Builder, io.grpc.serviceconfig.XdsClusterManagerLoadBalancingPolicyConfigOrBuilder>( (io.grpc.serviceconfig.XdsClusterManagerLoadBalancingPolicyConfig) policy_, getParentForChildren(), isClean()); policy_ = null; } policyCase_ = 14; onChanged(); return xdsClusterManagerExperimentalBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.grpc.serviceconfig.CdsConfig, io.grpc.serviceconfig.CdsConfig.Builder, io.grpc.serviceconfig.CdsConfigOrBuilder> cdsExperimentalBuilder_; /** * .grpc.service_config.CdsConfig cds_experimental = 6 [json_name = "cds_experimental"]; * @return Whether the cdsExperimental field is set. */ @java.lang.Override public boolean hasCdsExperimental() { return policyCase_ == 6; } /** * .grpc.service_config.CdsConfig cds_experimental = 6 [json_name = "cds_experimental"]; * @return The cdsExperimental. */ @java.lang.Override public io.grpc.serviceconfig.CdsConfig getCdsExperimental() { if (cdsExperimentalBuilder_ == null) { if (policyCase_ == 6) { return (io.grpc.serviceconfig.CdsConfig) policy_; } return io.grpc.serviceconfig.CdsConfig.getDefaultInstance(); } else { if (policyCase_ == 6) { return cdsExperimentalBuilder_.getMessage(); } return io.grpc.serviceconfig.CdsConfig.getDefaultInstance(); } } /** * .grpc.service_config.CdsConfig cds_experimental = 6 [json_name = "cds_experimental"]; */ public Builder setCdsExperimental(io.grpc.serviceconfig.CdsConfig value) { if (cdsExperimentalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } policy_ = value; onChanged(); } else { cdsExperimentalBuilder_.setMessage(value); } policyCase_ = 6; return this; } /** * .grpc.service_config.CdsConfig cds_experimental = 6 [json_name = "cds_experimental"]; */ public Builder setCdsExperimental( io.grpc.serviceconfig.CdsConfig.Builder builderForValue) { if (cdsExperimentalBuilder_ == null) { policy_ = builderForValue.build(); onChanged(); } else { cdsExperimentalBuilder_.setMessage(builderForValue.build()); } policyCase_ = 6; return this; } /** * .grpc.service_config.CdsConfig cds_experimental = 6 [json_name = "cds_experimental"]; */ public Builder mergeCdsExperimental(io.grpc.serviceconfig.CdsConfig value) { if (cdsExperimentalBuilder_ == null) { if (policyCase_ == 6 && policy_ != io.grpc.serviceconfig.CdsConfig.getDefaultInstance()) { policy_ = io.grpc.serviceconfig.CdsConfig.newBuilder((io.grpc.serviceconfig.CdsConfig) policy_) .mergeFrom(value).buildPartial(); } else { policy_ = value; } onChanged(); } else { if (policyCase_ == 6) { cdsExperimentalBuilder_.mergeFrom(value); } else { cdsExperimentalBuilder_.setMessage(value); } } policyCase_ = 6; return this; } /** * .grpc.service_config.CdsConfig cds_experimental = 6 [json_name = "cds_experimental"]; */ public Builder clearCdsExperimental() { if (cdsExperimentalBuilder_ == null) { if (policyCase_ == 6) { policyCase_ = 0; policy_ = null; onChanged(); } } else { if (policyCase_ == 6) { policyCase_ = 0; policy_ = null; } cdsExperimentalBuilder_.clear(); } return this; } /** * .grpc.service_config.CdsConfig cds_experimental = 6 [json_name = "cds_experimental"]; */ public io.grpc.serviceconfig.CdsConfig.Builder getCdsExperimentalBuilder() { return getCdsExperimentalFieldBuilder().getBuilder(); } /** * .grpc.service_config.CdsConfig cds_experimental = 6 [json_name = "cds_experimental"]; */ @java.lang.Override public io.grpc.serviceconfig.CdsConfigOrBuilder getCdsExperimentalOrBuilder() { if ((policyCase_ == 6) && (cdsExperimentalBuilder_ != null)) { return cdsExperimentalBuilder_.getMessageOrBuilder(); } else { if (policyCase_ == 6) { return (io.grpc.serviceconfig.CdsConfig) policy_; } return io.grpc.serviceconfig.CdsConfig.getDefaultInstance(); } } /** * .grpc.service_config.CdsConfig cds_experimental = 6 [json_name = "cds_experimental"]; */ private com.google.protobuf.SingleFieldBuilderV3< io.grpc.serviceconfig.CdsConfig, io.grpc.serviceconfig.CdsConfig.Builder, io.grpc.serviceconfig.CdsConfigOrBuilder> getCdsExperimentalFieldBuilder() { if (cdsExperimentalBuilder_ == null) { if (!(policyCase_ == 6)) { policy_ = io.grpc.serviceconfig.CdsConfig.getDefaultInstance(); } cdsExperimentalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.grpc.serviceconfig.CdsConfig, io.grpc.serviceconfig.CdsConfig.Builder, io.grpc.serviceconfig.CdsConfigOrBuilder>( (io.grpc.serviceconfig.CdsConfig) policy_, getParentForChildren(), isClean()); policy_ = null; } policyCase_ = 6; onChanged(); return cdsExperimentalBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.grpc.serviceconfig.XdsClusterResolverLoadBalancingPolicyConfig, io.grpc.serviceconfig.XdsClusterResolverLoadBalancingPolicyConfig.Builder, io.grpc.serviceconfig.XdsClusterResolverLoadBalancingPolicyConfigOrBuilder> xdsClusterResolverExperimentalBuilder_; /** * .grpc.service_config.XdsClusterResolverLoadBalancingPolicyConfig xds_cluster_resolver_experimental = 11 [json_name = "xds_cluster_resolver_experimental"]; * @return Whether the xdsClusterResolverExperimental field is set. */ @java.lang.Override public boolean hasXdsClusterResolverExperimental() { return policyCase_ == 11; } /** * .grpc.service_config.XdsClusterResolverLoadBalancingPolicyConfig xds_cluster_resolver_experimental = 11 [json_name = "xds_cluster_resolver_experimental"]; * @return The xdsClusterResolverExperimental. */ @java.lang.Override public io.grpc.serviceconfig.XdsClusterResolverLoadBalancingPolicyConfig getXdsClusterResolverExperimental() { if (xdsClusterResolverExperimentalBuilder_ == null) { if (policyCase_ == 11) { return (io.grpc.serviceconfig.XdsClusterResolverLoadBalancingPolicyConfig) policy_; } return io.grpc.serviceconfig.XdsClusterResolverLoadBalancingPolicyConfig.getDefaultInstance(); } else { if (policyCase_ == 11) { return xdsClusterResolverExperimentalBuilder_.getMessage(); } return io.grpc.serviceconfig.XdsClusterResolverLoadBalancingPolicyConfig.getDefaultInstance(); } } /** * .grpc.service_config.XdsClusterResolverLoadBalancingPolicyConfig xds_cluster_resolver_experimental = 11 [json_name = "xds_cluster_resolver_experimental"]; */ public Builder setXdsClusterResolverExperimental(io.grpc.serviceconfig.XdsClusterResolverLoadBalancingPolicyConfig value) { if (xdsClusterResolverExperimentalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } policy_ = value; onChanged(); } else { xdsClusterResolverExperimentalBuilder_.setMessage(value); } policyCase_ = 11; return this; } /** * .grpc.service_config.XdsClusterResolverLoadBalancingPolicyConfig xds_cluster_resolver_experimental = 11 [json_name = "xds_cluster_resolver_experimental"]; */ public Builder setXdsClusterResolverExperimental( io.grpc.serviceconfig.XdsClusterResolverLoadBalancingPolicyConfig.Builder builderForValue) { if (xdsClusterResolverExperimentalBuilder_ == null) { policy_ = builderForValue.build(); onChanged(); } else { xdsClusterResolverExperimentalBuilder_.setMessage(builderForValue.build()); } policyCase_ = 11; return this; } /** * .grpc.service_config.XdsClusterResolverLoadBalancingPolicyConfig xds_cluster_resolver_experimental = 11 [json_name = "xds_cluster_resolver_experimental"]; */ public Builder mergeXdsClusterResolverExperimental(io.grpc.serviceconfig.XdsClusterResolverLoadBalancingPolicyConfig value) { if (xdsClusterResolverExperimentalBuilder_ == null) { if (policyCase_ == 11 && policy_ != io.grpc.serviceconfig.XdsClusterResolverLoadBalancingPolicyConfig.getDefaultInstance()) { policy_ = io.grpc.serviceconfig.XdsClusterResolverLoadBalancingPolicyConfig.newBuilder((io.grpc.serviceconfig.XdsClusterResolverLoadBalancingPolicyConfig) policy_) .mergeFrom(value).buildPartial(); } else { policy_ = value; } onChanged(); } else { if (policyCase_ == 11) { xdsClusterResolverExperimentalBuilder_.mergeFrom(value); } else { xdsClusterResolverExperimentalBuilder_.setMessage(value); } } policyCase_ = 11; return this; } /** * .grpc.service_config.XdsClusterResolverLoadBalancingPolicyConfig xds_cluster_resolver_experimental = 11 [json_name = "xds_cluster_resolver_experimental"]; */ public Builder clearXdsClusterResolverExperimental() { if (xdsClusterResolverExperimentalBuilder_ == null) { if (policyCase_ == 11) { policyCase_ = 0; policy_ = null; onChanged(); } } else { if (policyCase_ == 11) { policyCase_ = 0; policy_ = null; } xdsClusterResolverExperimentalBuilder_.clear(); } return this; } /** * .grpc.service_config.XdsClusterResolverLoadBalancingPolicyConfig xds_cluster_resolver_experimental = 11 [json_name = "xds_cluster_resolver_experimental"]; */ public io.grpc.serviceconfig.XdsClusterResolverLoadBalancingPolicyConfig.Builder getXdsClusterResolverExperimentalBuilder() { return getXdsClusterResolverExperimentalFieldBuilder().getBuilder(); } /** * .grpc.service_config.XdsClusterResolverLoadBalancingPolicyConfig xds_cluster_resolver_experimental = 11 [json_name = "xds_cluster_resolver_experimental"]; */ @java.lang.Override public io.grpc.serviceconfig.XdsClusterResolverLoadBalancingPolicyConfigOrBuilder getXdsClusterResolverExperimentalOrBuilder() { if ((policyCase_ == 11) && (xdsClusterResolverExperimentalBuilder_ != null)) { return xdsClusterResolverExperimentalBuilder_.getMessageOrBuilder(); } else { if (policyCase_ == 11) { return (io.grpc.serviceconfig.XdsClusterResolverLoadBalancingPolicyConfig) policy_; } return io.grpc.serviceconfig.XdsClusterResolverLoadBalancingPolicyConfig.getDefaultInstance(); } } /** * .grpc.service_config.XdsClusterResolverLoadBalancingPolicyConfig xds_cluster_resolver_experimental = 11 [json_name = "xds_cluster_resolver_experimental"]; */ private com.google.protobuf.SingleFieldBuilderV3< io.grpc.serviceconfig.XdsClusterResolverLoadBalancingPolicyConfig, io.grpc.serviceconfig.XdsClusterResolverLoadBalancingPolicyConfig.Builder, io.grpc.serviceconfig.XdsClusterResolverLoadBalancingPolicyConfigOrBuilder> getXdsClusterResolverExperimentalFieldBuilder() { if (xdsClusterResolverExperimentalBuilder_ == null) { if (!(policyCase_ == 11)) { policy_ = io.grpc.serviceconfig.XdsClusterResolverLoadBalancingPolicyConfig.getDefaultInstance(); } xdsClusterResolverExperimentalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.grpc.serviceconfig.XdsClusterResolverLoadBalancingPolicyConfig, io.grpc.serviceconfig.XdsClusterResolverLoadBalancingPolicyConfig.Builder, io.grpc.serviceconfig.XdsClusterResolverLoadBalancingPolicyConfigOrBuilder>( (io.grpc.serviceconfig.XdsClusterResolverLoadBalancingPolicyConfig) policy_, getParentForChildren(), isClean()); policy_ = null; } policyCase_ = 11; onChanged(); return xdsClusterResolverExperimentalBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig, io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.Builder, io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfigOrBuilder> xdsClusterImplExperimentalBuilder_; /** * .grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig xds_cluster_impl_experimental = 12 [json_name = "xds_cluster_impl_experimental"]; * @return Whether the xdsClusterImplExperimental field is set. */ @java.lang.Override public boolean hasXdsClusterImplExperimental() { return policyCase_ == 12; } /** * .grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig xds_cluster_impl_experimental = 12 [json_name = "xds_cluster_impl_experimental"]; * @return The xdsClusterImplExperimental. */ @java.lang.Override public io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig getXdsClusterImplExperimental() { if (xdsClusterImplExperimentalBuilder_ == null) { if (policyCase_ == 12) { return (io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig) policy_; } return io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.getDefaultInstance(); } else { if (policyCase_ == 12) { return xdsClusterImplExperimentalBuilder_.getMessage(); } return io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.getDefaultInstance(); } } /** * .grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig xds_cluster_impl_experimental = 12 [json_name = "xds_cluster_impl_experimental"]; */ public Builder setXdsClusterImplExperimental(io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig value) { if (xdsClusterImplExperimentalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } policy_ = value; onChanged(); } else { xdsClusterImplExperimentalBuilder_.setMessage(value); } policyCase_ = 12; return this; } /** * .grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig xds_cluster_impl_experimental = 12 [json_name = "xds_cluster_impl_experimental"]; */ public Builder setXdsClusterImplExperimental( io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.Builder builderForValue) { if (xdsClusterImplExperimentalBuilder_ == null) { policy_ = builderForValue.build(); onChanged(); } else { xdsClusterImplExperimentalBuilder_.setMessage(builderForValue.build()); } policyCase_ = 12; return this; } /** * .grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig xds_cluster_impl_experimental = 12 [json_name = "xds_cluster_impl_experimental"]; */ public Builder mergeXdsClusterImplExperimental(io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig value) { if (xdsClusterImplExperimentalBuilder_ == null) { if (policyCase_ == 12 && policy_ != io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.getDefaultInstance()) { policy_ = io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.newBuilder((io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig) policy_) .mergeFrom(value).buildPartial(); } else { policy_ = value; } onChanged(); } else { if (policyCase_ == 12) { xdsClusterImplExperimentalBuilder_.mergeFrom(value); } else { xdsClusterImplExperimentalBuilder_.setMessage(value); } } policyCase_ = 12; return this; } /** * .grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig xds_cluster_impl_experimental = 12 [json_name = "xds_cluster_impl_experimental"]; */ public Builder clearXdsClusterImplExperimental() { if (xdsClusterImplExperimentalBuilder_ == null) { if (policyCase_ == 12) { policyCase_ = 0; policy_ = null; onChanged(); } } else { if (policyCase_ == 12) { policyCase_ = 0; policy_ = null; } xdsClusterImplExperimentalBuilder_.clear(); } return this; } /** * .grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig xds_cluster_impl_experimental = 12 [json_name = "xds_cluster_impl_experimental"]; */ public io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.Builder getXdsClusterImplExperimentalBuilder() { return getXdsClusterImplExperimentalFieldBuilder().getBuilder(); } /** * .grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig xds_cluster_impl_experimental = 12 [json_name = "xds_cluster_impl_experimental"]; */ @java.lang.Override public io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfigOrBuilder getXdsClusterImplExperimentalOrBuilder() { if ((policyCase_ == 12) && (xdsClusterImplExperimentalBuilder_ != null)) { return xdsClusterImplExperimentalBuilder_.getMessageOrBuilder(); } else { if (policyCase_ == 12) { return (io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig) policy_; } return io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.getDefaultInstance(); } } /** * .grpc.service_config.XdsClusterImplLoadBalancingPolicyConfig xds_cluster_impl_experimental = 12 [json_name = "xds_cluster_impl_experimental"]; */ private com.google.protobuf.SingleFieldBuilderV3< io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig, io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.Builder, io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfigOrBuilder> getXdsClusterImplExperimentalFieldBuilder() { if (xdsClusterImplExperimentalBuilder_ == null) { if (!(policyCase_ == 12)) { policy_ = io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.getDefaultInstance(); } xdsClusterImplExperimentalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig, io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig.Builder, io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfigOrBuilder>( (io.grpc.serviceconfig.XdsClusterImplLoadBalancingPolicyConfig) policy_, getParentForChildren(), isClean()); policy_ = null; } policyCase_ = 12; onChanged(); return xdsClusterImplExperimentalBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.grpc.serviceconfig.RingHashLoadBalancingConfig, io.grpc.serviceconfig.RingHashLoadBalancingConfig.Builder, io.grpc.serviceconfig.RingHashLoadBalancingConfigOrBuilder> ringHashExperimentalBuilder_; /** * .grpc.service_config.RingHashLoadBalancingConfig ring_hash_experimental = 13 [json_name = "ring_hash_experimental"]; * @return Whether the ringHashExperimental field is set. */ @java.lang.Override public boolean hasRingHashExperimental() { return policyCase_ == 13; } /** * .grpc.service_config.RingHashLoadBalancingConfig ring_hash_experimental = 13 [json_name = "ring_hash_experimental"]; * @return The ringHashExperimental. */ @java.lang.Override public io.grpc.serviceconfig.RingHashLoadBalancingConfig getRingHashExperimental() { if (ringHashExperimentalBuilder_ == null) { if (policyCase_ == 13) { return (io.grpc.serviceconfig.RingHashLoadBalancingConfig) policy_; } return io.grpc.serviceconfig.RingHashLoadBalancingConfig.getDefaultInstance(); } else { if (policyCase_ == 13) { return ringHashExperimentalBuilder_.getMessage(); } return io.grpc.serviceconfig.RingHashLoadBalancingConfig.getDefaultInstance(); } } /** * .grpc.service_config.RingHashLoadBalancingConfig ring_hash_experimental = 13 [json_name = "ring_hash_experimental"]; */ public Builder setRingHashExperimental(io.grpc.serviceconfig.RingHashLoadBalancingConfig value) { if (ringHashExperimentalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } policy_ = value; onChanged(); } else { ringHashExperimentalBuilder_.setMessage(value); } policyCase_ = 13; return this; } /** * .grpc.service_config.RingHashLoadBalancingConfig ring_hash_experimental = 13 [json_name = "ring_hash_experimental"]; */ public Builder setRingHashExperimental( io.grpc.serviceconfig.RingHashLoadBalancingConfig.Builder builderForValue) { if (ringHashExperimentalBuilder_ == null) { policy_ = builderForValue.build(); onChanged(); } else { ringHashExperimentalBuilder_.setMessage(builderForValue.build()); } policyCase_ = 13; return this; } /** * .grpc.service_config.RingHashLoadBalancingConfig ring_hash_experimental = 13 [json_name = "ring_hash_experimental"]; */ public Builder mergeRingHashExperimental(io.grpc.serviceconfig.RingHashLoadBalancingConfig value) { if (ringHashExperimentalBuilder_ == null) { if (policyCase_ == 13 && policy_ != io.grpc.serviceconfig.RingHashLoadBalancingConfig.getDefaultInstance()) { policy_ = io.grpc.serviceconfig.RingHashLoadBalancingConfig.newBuilder((io.grpc.serviceconfig.RingHashLoadBalancingConfig) policy_) .mergeFrom(value).buildPartial(); } else { policy_ = value; } onChanged(); } else { if (policyCase_ == 13) { ringHashExperimentalBuilder_.mergeFrom(value); } else { ringHashExperimentalBuilder_.setMessage(value); } } policyCase_ = 13; return this; } /** * .grpc.service_config.RingHashLoadBalancingConfig ring_hash_experimental = 13 [json_name = "ring_hash_experimental"]; */ public Builder clearRingHashExperimental() { if (ringHashExperimentalBuilder_ == null) { if (policyCase_ == 13) { policyCase_ = 0; policy_ = null; onChanged(); } } else { if (policyCase_ == 13) { policyCase_ = 0; policy_ = null; } ringHashExperimentalBuilder_.clear(); } return this; } /** * .grpc.service_config.RingHashLoadBalancingConfig ring_hash_experimental = 13 [json_name = "ring_hash_experimental"]; */ public io.grpc.serviceconfig.RingHashLoadBalancingConfig.Builder getRingHashExperimentalBuilder() { return getRingHashExperimentalFieldBuilder().getBuilder(); } /** * .grpc.service_config.RingHashLoadBalancingConfig ring_hash_experimental = 13 [json_name = "ring_hash_experimental"]; */ @java.lang.Override public io.grpc.serviceconfig.RingHashLoadBalancingConfigOrBuilder getRingHashExperimentalOrBuilder() { if ((policyCase_ == 13) && (ringHashExperimentalBuilder_ != null)) { return ringHashExperimentalBuilder_.getMessageOrBuilder(); } else { if (policyCase_ == 13) { return (io.grpc.serviceconfig.RingHashLoadBalancingConfig) policy_; } return io.grpc.serviceconfig.RingHashLoadBalancingConfig.getDefaultInstance(); } } /** * .grpc.service_config.RingHashLoadBalancingConfig ring_hash_experimental = 13 [json_name = "ring_hash_experimental"]; */ private com.google.protobuf.SingleFieldBuilderV3< io.grpc.serviceconfig.RingHashLoadBalancingConfig, io.grpc.serviceconfig.RingHashLoadBalancingConfig.Builder, io.grpc.serviceconfig.RingHashLoadBalancingConfigOrBuilder> getRingHashExperimentalFieldBuilder() { if (ringHashExperimentalBuilder_ == null) { if (!(policyCase_ == 13)) { policy_ = io.grpc.serviceconfig.RingHashLoadBalancingConfig.getDefaultInstance(); } ringHashExperimentalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.grpc.serviceconfig.RingHashLoadBalancingConfig, io.grpc.serviceconfig.RingHashLoadBalancingConfig.Builder, io.grpc.serviceconfig.RingHashLoadBalancingConfigOrBuilder>( (io.grpc.serviceconfig.RingHashLoadBalancingConfig) policy_, getParentForChildren(), isClean()); policy_ = null; } policyCase_ = 13; onChanged(); return ringHashExperimentalBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig, io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Builder, io.grpc.serviceconfig.LrsLoadBalancingPolicyConfigOrBuilder> lrsExperimentalBuilder_; /** *
     * Deprecated xDS-related policies.
     * 
* * .grpc.service_config.LrsLoadBalancingPolicyConfig lrs_experimental = 8 [json_name = "lrs_experimental", deprecated = true]; * @deprecated grpc.service_config.LoadBalancingConfig.lrs_experimental is deprecated. * See service_config.proto;l=511 * @return Whether the lrsExperimental field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasLrsExperimental() { return policyCase_ == 8; } /** *
     * Deprecated xDS-related policies.
     * 
* * .grpc.service_config.LrsLoadBalancingPolicyConfig lrs_experimental = 8 [json_name = "lrs_experimental", deprecated = true]; * @deprecated grpc.service_config.LoadBalancingConfig.lrs_experimental is deprecated. * See service_config.proto;l=511 * @return The lrsExperimental. */ @java.lang.Override @java.lang.Deprecated public io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig getLrsExperimental() { if (lrsExperimentalBuilder_ == null) { if (policyCase_ == 8) { return (io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig) policy_; } return io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.getDefaultInstance(); } else { if (policyCase_ == 8) { return lrsExperimentalBuilder_.getMessage(); } return io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.getDefaultInstance(); } } /** *
     * Deprecated xDS-related policies.
     * 
* * .grpc.service_config.LrsLoadBalancingPolicyConfig lrs_experimental = 8 [json_name = "lrs_experimental", deprecated = true]; */ @java.lang.Deprecated public Builder setLrsExperimental(io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig value) { if (lrsExperimentalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } policy_ = value; onChanged(); } else { lrsExperimentalBuilder_.setMessage(value); } policyCase_ = 8; return this; } /** *
     * Deprecated xDS-related policies.
     * 
* * .grpc.service_config.LrsLoadBalancingPolicyConfig lrs_experimental = 8 [json_name = "lrs_experimental", deprecated = true]; */ @java.lang.Deprecated public Builder setLrsExperimental( io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Builder builderForValue) { if (lrsExperimentalBuilder_ == null) { policy_ = builderForValue.build(); onChanged(); } else { lrsExperimentalBuilder_.setMessage(builderForValue.build()); } policyCase_ = 8; return this; } /** *
     * Deprecated xDS-related policies.
     * 
* * .grpc.service_config.LrsLoadBalancingPolicyConfig lrs_experimental = 8 [json_name = "lrs_experimental", deprecated = true]; */ @java.lang.Deprecated public Builder mergeLrsExperimental(io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig value) { if (lrsExperimentalBuilder_ == null) { if (policyCase_ == 8 && policy_ != io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.getDefaultInstance()) { policy_ = io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.newBuilder((io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig) policy_) .mergeFrom(value).buildPartial(); } else { policy_ = value; } onChanged(); } else { if (policyCase_ == 8) { lrsExperimentalBuilder_.mergeFrom(value); } else { lrsExperimentalBuilder_.setMessage(value); } } policyCase_ = 8; return this; } /** *
     * Deprecated xDS-related policies.
     * 
* * .grpc.service_config.LrsLoadBalancingPolicyConfig lrs_experimental = 8 [json_name = "lrs_experimental", deprecated = true]; */ @java.lang.Deprecated public Builder clearLrsExperimental() { if (lrsExperimentalBuilder_ == null) { if (policyCase_ == 8) { policyCase_ = 0; policy_ = null; onChanged(); } } else { if (policyCase_ == 8) { policyCase_ = 0; policy_ = null; } lrsExperimentalBuilder_.clear(); } return this; } /** *
     * Deprecated xDS-related policies.
     * 
* * .grpc.service_config.LrsLoadBalancingPolicyConfig lrs_experimental = 8 [json_name = "lrs_experimental", deprecated = true]; */ @java.lang.Deprecated public io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Builder getLrsExperimentalBuilder() { return getLrsExperimentalFieldBuilder().getBuilder(); } /** *
     * Deprecated xDS-related policies.
     * 
* * .grpc.service_config.LrsLoadBalancingPolicyConfig lrs_experimental = 8 [json_name = "lrs_experimental", deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public io.grpc.serviceconfig.LrsLoadBalancingPolicyConfigOrBuilder getLrsExperimentalOrBuilder() { if ((policyCase_ == 8) && (lrsExperimentalBuilder_ != null)) { return lrsExperimentalBuilder_.getMessageOrBuilder(); } else { if (policyCase_ == 8) { return (io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig) policy_; } return io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.getDefaultInstance(); } } /** *
     * Deprecated xDS-related policies.
     * 
* * .grpc.service_config.LrsLoadBalancingPolicyConfig lrs_experimental = 8 [json_name = "lrs_experimental", deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig, io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Builder, io.grpc.serviceconfig.LrsLoadBalancingPolicyConfigOrBuilder> getLrsExperimentalFieldBuilder() { if (lrsExperimentalBuilder_ == null) { if (!(policyCase_ == 8)) { policy_ = io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.getDefaultInstance(); } lrsExperimentalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig, io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig.Builder, io.grpc.serviceconfig.LrsLoadBalancingPolicyConfigOrBuilder>( (io.grpc.serviceconfig.LrsLoadBalancingPolicyConfig) policy_, getParentForChildren(), isClean()); policy_ = null; } policyCase_ = 8; onChanged(); return lrsExperimentalBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.grpc.serviceconfig.EdsLoadBalancingPolicyConfig, io.grpc.serviceconfig.EdsLoadBalancingPolicyConfig.Builder, io.grpc.serviceconfig.EdsLoadBalancingPolicyConfigOrBuilder> edsExperimentalBuilder_; /** * .grpc.service_config.EdsLoadBalancingPolicyConfig eds_experimental = 7 [json_name = "eds_experimental", deprecated = true]; * @deprecated grpc.service_config.LoadBalancingConfig.eds_experimental is deprecated. * See service_config.proto;l=513 * @return Whether the edsExperimental field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasEdsExperimental() { return policyCase_ == 7; } /** * .grpc.service_config.EdsLoadBalancingPolicyConfig eds_experimental = 7 [json_name = "eds_experimental", deprecated = true]; * @deprecated grpc.service_config.LoadBalancingConfig.eds_experimental is deprecated. * See service_config.proto;l=513 * @return The edsExperimental. */ @java.lang.Override @java.lang.Deprecated public io.grpc.serviceconfig.EdsLoadBalancingPolicyConfig getEdsExperimental() { if (edsExperimentalBuilder_ == null) { if (policyCase_ == 7) { return (io.grpc.serviceconfig.EdsLoadBalancingPolicyConfig) policy_; } return io.grpc.serviceconfig.EdsLoadBalancingPolicyConfig.getDefaultInstance(); } else { if (policyCase_ == 7) { return edsExperimentalBuilder_.getMessage(); } return io.grpc.serviceconfig.EdsLoadBalancingPolicyConfig.getDefaultInstance(); } } /** * .grpc.service_config.EdsLoadBalancingPolicyConfig eds_experimental = 7 [json_name = "eds_experimental", deprecated = true]; */ @java.lang.Deprecated public Builder setEdsExperimental(io.grpc.serviceconfig.EdsLoadBalancingPolicyConfig value) { if (edsExperimentalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } policy_ = value; onChanged(); } else { edsExperimentalBuilder_.setMessage(value); } policyCase_ = 7; return this; } /** * .grpc.service_config.EdsLoadBalancingPolicyConfig eds_experimental = 7 [json_name = "eds_experimental", deprecated = true]; */ @java.lang.Deprecated public Builder setEdsExperimental( io.grpc.serviceconfig.EdsLoadBalancingPolicyConfig.Builder builderForValue) { if (edsExperimentalBuilder_ == null) { policy_ = builderForValue.build(); onChanged(); } else { edsExperimentalBuilder_.setMessage(builderForValue.build()); } policyCase_ = 7; return this; } /** * .grpc.service_config.EdsLoadBalancingPolicyConfig eds_experimental = 7 [json_name = "eds_experimental", deprecated = true]; */ @java.lang.Deprecated public Builder mergeEdsExperimental(io.grpc.serviceconfig.EdsLoadBalancingPolicyConfig value) { if (edsExperimentalBuilder_ == null) { if (policyCase_ == 7 && policy_ != io.grpc.serviceconfig.EdsLoadBalancingPolicyConfig.getDefaultInstance()) { policy_ = io.grpc.serviceconfig.EdsLoadBalancingPolicyConfig.newBuilder((io.grpc.serviceconfig.EdsLoadBalancingPolicyConfig) policy_) .mergeFrom(value).buildPartial(); } else { policy_ = value; } onChanged(); } else { if (policyCase_ == 7) { edsExperimentalBuilder_.mergeFrom(value); } else { edsExperimentalBuilder_.setMessage(value); } } policyCase_ = 7; return this; } /** * .grpc.service_config.EdsLoadBalancingPolicyConfig eds_experimental = 7 [json_name = "eds_experimental", deprecated = true]; */ @java.lang.Deprecated public Builder clearEdsExperimental() { if (edsExperimentalBuilder_ == null) { if (policyCase_ == 7) { policyCase_ = 0; policy_ = null; onChanged(); } } else { if (policyCase_ == 7) { policyCase_ = 0; policy_ = null; } edsExperimentalBuilder_.clear(); } return this; } /** * .grpc.service_config.EdsLoadBalancingPolicyConfig eds_experimental = 7 [json_name = "eds_experimental", deprecated = true]; */ @java.lang.Deprecated public io.grpc.serviceconfig.EdsLoadBalancingPolicyConfig.Builder getEdsExperimentalBuilder() { return getEdsExperimentalFieldBuilder().getBuilder(); } /** * .grpc.service_config.EdsLoadBalancingPolicyConfig eds_experimental = 7 [json_name = "eds_experimental", deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public io.grpc.serviceconfig.EdsLoadBalancingPolicyConfigOrBuilder getEdsExperimentalOrBuilder() { if ((policyCase_ == 7) && (edsExperimentalBuilder_ != null)) { return edsExperimentalBuilder_.getMessageOrBuilder(); } else { if (policyCase_ == 7) { return (io.grpc.serviceconfig.EdsLoadBalancingPolicyConfig) policy_; } return io.grpc.serviceconfig.EdsLoadBalancingPolicyConfig.getDefaultInstance(); } } /** * .grpc.service_config.EdsLoadBalancingPolicyConfig eds_experimental = 7 [json_name = "eds_experimental", deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< io.grpc.serviceconfig.EdsLoadBalancingPolicyConfig, io.grpc.serviceconfig.EdsLoadBalancingPolicyConfig.Builder, io.grpc.serviceconfig.EdsLoadBalancingPolicyConfigOrBuilder> getEdsExperimentalFieldBuilder() { if (edsExperimentalBuilder_ == null) { if (!(policyCase_ == 7)) { policy_ = io.grpc.serviceconfig.EdsLoadBalancingPolicyConfig.getDefaultInstance(); } edsExperimentalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.grpc.serviceconfig.EdsLoadBalancingPolicyConfig, io.grpc.serviceconfig.EdsLoadBalancingPolicyConfig.Builder, io.grpc.serviceconfig.EdsLoadBalancingPolicyConfigOrBuilder>( (io.grpc.serviceconfig.EdsLoadBalancingPolicyConfig) policy_, getParentForChildren(), isClean()); policy_ = null; } policyCase_ = 7; onChanged(); return edsExperimentalBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.grpc.serviceconfig.XdsConfig, io.grpc.serviceconfig.XdsConfig.Builder, io.grpc.serviceconfig.XdsConfigOrBuilder> xdsBuilder_; /** * .grpc.service_config.XdsConfig xds = 2 [deprecated = true]; * @deprecated grpc.service_config.LoadBalancingConfig.xds is deprecated. * See service_config.proto;l=515 * @return Whether the xds field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasXds() { return policyCase_ == 2; } /** * .grpc.service_config.XdsConfig xds = 2 [deprecated = true]; * @deprecated grpc.service_config.LoadBalancingConfig.xds is deprecated. * See service_config.proto;l=515 * @return The xds. */ @java.lang.Override @java.lang.Deprecated public io.grpc.serviceconfig.XdsConfig getXds() { if (xdsBuilder_ == null) { if (policyCase_ == 2) { return (io.grpc.serviceconfig.XdsConfig) policy_; } return io.grpc.serviceconfig.XdsConfig.getDefaultInstance(); } else { if (policyCase_ == 2) { return xdsBuilder_.getMessage(); } return io.grpc.serviceconfig.XdsConfig.getDefaultInstance(); } } /** * .grpc.service_config.XdsConfig xds = 2 [deprecated = true]; */ @java.lang.Deprecated public Builder setXds(io.grpc.serviceconfig.XdsConfig value) { if (xdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } policy_ = value; onChanged(); } else { xdsBuilder_.setMessage(value); } policyCase_ = 2; return this; } /** * .grpc.service_config.XdsConfig xds = 2 [deprecated = true]; */ @java.lang.Deprecated public Builder setXds( io.grpc.serviceconfig.XdsConfig.Builder builderForValue) { if (xdsBuilder_ == null) { policy_ = builderForValue.build(); onChanged(); } else { xdsBuilder_.setMessage(builderForValue.build()); } policyCase_ = 2; return this; } /** * .grpc.service_config.XdsConfig xds = 2 [deprecated = true]; */ @java.lang.Deprecated public Builder mergeXds(io.grpc.serviceconfig.XdsConfig value) { if (xdsBuilder_ == null) { if (policyCase_ == 2 && policy_ != io.grpc.serviceconfig.XdsConfig.getDefaultInstance()) { policy_ = io.grpc.serviceconfig.XdsConfig.newBuilder((io.grpc.serviceconfig.XdsConfig) policy_) .mergeFrom(value).buildPartial(); } else { policy_ = value; } onChanged(); } else { if (policyCase_ == 2) { xdsBuilder_.mergeFrom(value); } else { xdsBuilder_.setMessage(value); } } policyCase_ = 2; return this; } /** * .grpc.service_config.XdsConfig xds = 2 [deprecated = true]; */ @java.lang.Deprecated public Builder clearXds() { if (xdsBuilder_ == null) { if (policyCase_ == 2) { policyCase_ = 0; policy_ = null; onChanged(); } } else { if (policyCase_ == 2) { policyCase_ = 0; policy_ = null; } xdsBuilder_.clear(); } return this; } /** * .grpc.service_config.XdsConfig xds = 2 [deprecated = true]; */ @java.lang.Deprecated public io.grpc.serviceconfig.XdsConfig.Builder getXdsBuilder() { return getXdsFieldBuilder().getBuilder(); } /** * .grpc.service_config.XdsConfig xds = 2 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public io.grpc.serviceconfig.XdsConfigOrBuilder getXdsOrBuilder() { if ((policyCase_ == 2) && (xdsBuilder_ != null)) { return xdsBuilder_.getMessageOrBuilder(); } else { if (policyCase_ == 2) { return (io.grpc.serviceconfig.XdsConfig) policy_; } return io.grpc.serviceconfig.XdsConfig.getDefaultInstance(); } } /** * .grpc.service_config.XdsConfig xds = 2 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< io.grpc.serviceconfig.XdsConfig, io.grpc.serviceconfig.XdsConfig.Builder, io.grpc.serviceconfig.XdsConfigOrBuilder> getXdsFieldBuilder() { if (xdsBuilder_ == null) { if (!(policyCase_ == 2)) { policy_ = io.grpc.serviceconfig.XdsConfig.getDefaultInstance(); } xdsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.grpc.serviceconfig.XdsConfig, io.grpc.serviceconfig.XdsConfig.Builder, io.grpc.serviceconfig.XdsConfigOrBuilder>( (io.grpc.serviceconfig.XdsConfig) policy_, getParentForChildren(), isClean()); policy_ = null; } policyCase_ = 2; onChanged(); return xdsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.grpc.serviceconfig.XdsConfig, io.grpc.serviceconfig.XdsConfig.Builder, io.grpc.serviceconfig.XdsConfigOrBuilder> xdsExperimentalBuilder_; /** * .grpc.service_config.XdsConfig xds_experimental = 5 [json_name = "xds_experimental", deprecated = true]; * @deprecated grpc.service_config.LoadBalancingConfig.xds_experimental is deprecated. * See service_config.proto;l=516 * @return Whether the xdsExperimental field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasXdsExperimental() { return policyCase_ == 5; } /** * .grpc.service_config.XdsConfig xds_experimental = 5 [json_name = "xds_experimental", deprecated = true]; * @deprecated grpc.service_config.LoadBalancingConfig.xds_experimental is deprecated. * See service_config.proto;l=516 * @return The xdsExperimental. */ @java.lang.Override @java.lang.Deprecated public io.grpc.serviceconfig.XdsConfig getXdsExperimental() { if (xdsExperimentalBuilder_ == null) { if (policyCase_ == 5) { return (io.grpc.serviceconfig.XdsConfig) policy_; } return io.grpc.serviceconfig.XdsConfig.getDefaultInstance(); } else { if (policyCase_ == 5) { return xdsExperimentalBuilder_.getMessage(); } return io.grpc.serviceconfig.XdsConfig.getDefaultInstance(); } } /** * .grpc.service_config.XdsConfig xds_experimental = 5 [json_name = "xds_experimental", deprecated = true]; */ @java.lang.Deprecated public Builder setXdsExperimental(io.grpc.serviceconfig.XdsConfig value) { if (xdsExperimentalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } policy_ = value; onChanged(); } else { xdsExperimentalBuilder_.setMessage(value); } policyCase_ = 5; return this; } /** * .grpc.service_config.XdsConfig xds_experimental = 5 [json_name = "xds_experimental", deprecated = true]; */ @java.lang.Deprecated public Builder setXdsExperimental( io.grpc.serviceconfig.XdsConfig.Builder builderForValue) { if (xdsExperimentalBuilder_ == null) { policy_ = builderForValue.build(); onChanged(); } else { xdsExperimentalBuilder_.setMessage(builderForValue.build()); } policyCase_ = 5; return this; } /** * .grpc.service_config.XdsConfig xds_experimental = 5 [json_name = "xds_experimental", deprecated = true]; */ @java.lang.Deprecated public Builder mergeXdsExperimental(io.grpc.serviceconfig.XdsConfig value) { if (xdsExperimentalBuilder_ == null) { if (policyCase_ == 5 && policy_ != io.grpc.serviceconfig.XdsConfig.getDefaultInstance()) { policy_ = io.grpc.serviceconfig.XdsConfig.newBuilder((io.grpc.serviceconfig.XdsConfig) policy_) .mergeFrom(value).buildPartial(); } else { policy_ = value; } onChanged(); } else { if (policyCase_ == 5) { xdsExperimentalBuilder_.mergeFrom(value); } else { xdsExperimentalBuilder_.setMessage(value); } } policyCase_ = 5; return this; } /** * .grpc.service_config.XdsConfig xds_experimental = 5 [json_name = "xds_experimental", deprecated = true]; */ @java.lang.Deprecated public Builder clearXdsExperimental() { if (xdsExperimentalBuilder_ == null) { if (policyCase_ == 5) { policyCase_ = 0; policy_ = null; onChanged(); } } else { if (policyCase_ == 5) { policyCase_ = 0; policy_ = null; } xdsExperimentalBuilder_.clear(); } return this; } /** * .grpc.service_config.XdsConfig xds_experimental = 5 [json_name = "xds_experimental", deprecated = true]; */ @java.lang.Deprecated public io.grpc.serviceconfig.XdsConfig.Builder getXdsExperimentalBuilder() { return getXdsExperimentalFieldBuilder().getBuilder(); } /** * .grpc.service_config.XdsConfig xds_experimental = 5 [json_name = "xds_experimental", deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public io.grpc.serviceconfig.XdsConfigOrBuilder getXdsExperimentalOrBuilder() { if ((policyCase_ == 5) && (xdsExperimentalBuilder_ != null)) { return xdsExperimentalBuilder_.getMessageOrBuilder(); } else { if (policyCase_ == 5) { return (io.grpc.serviceconfig.XdsConfig) policy_; } return io.grpc.serviceconfig.XdsConfig.getDefaultInstance(); } } /** * .grpc.service_config.XdsConfig xds_experimental = 5 [json_name = "xds_experimental", deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< io.grpc.serviceconfig.XdsConfig, io.grpc.serviceconfig.XdsConfig.Builder, io.grpc.serviceconfig.XdsConfigOrBuilder> getXdsExperimentalFieldBuilder() { if (xdsExperimentalBuilder_ == null) { if (!(policyCase_ == 5)) { policy_ = io.grpc.serviceconfig.XdsConfig.getDefaultInstance(); } xdsExperimentalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.grpc.serviceconfig.XdsConfig, io.grpc.serviceconfig.XdsConfig.Builder, io.grpc.serviceconfig.XdsConfigOrBuilder>( (io.grpc.serviceconfig.XdsConfig) policy_, getParentForChildren(), isClean()); policy_ = null; } policyCase_ = 5; onChanged(); return xdsExperimentalBuilder_; } @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.LoadBalancingConfig) } // @@protoc_insertion_point(class_scope:grpc.service_config.LoadBalancingConfig) private static final io.grpc.serviceconfig.LoadBalancingConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.grpc.serviceconfig.LoadBalancingConfig(); } public static io.grpc.serviceconfig.LoadBalancingConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LoadBalancingConfig 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.LoadBalancingConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy