Package io.grpc.serviceconfig
Interface GrpcLbConfigOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
GrpcLbConfig,GrpcLbConfig.Builder
public interface GrpcLbConfigOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetChildPolicy(int index) Optional.intOptional.Optional.getChildPolicyOrBuilder(int index) Optional.List<? extends LoadBalancingConfigOrBuilder>Optional.Optional.com.google.protobuf.ByteStringOptional.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getChildPolicyList
List<LoadBalancingConfig> getChildPolicyList()Optional. What LB policy to use for routing between the backend addresses. If unset, defaults to round_robin. Currently, the only supported values are round_robin and pick_first. Note that this will be used both in balancer mode and in fallback mode. Multiple LB policies can be specified; clients will iterate through the list in order and stop at the first policy that they support.
repeated .grpc.service_config.LoadBalancingConfig child_policy = 1; -
getChildPolicy
Optional. What LB policy to use for routing between the backend addresses. If unset, defaults to round_robin. Currently, the only supported values are round_robin and pick_first. Note that this will be used both in balancer mode and in fallback mode. Multiple LB policies can be specified; clients will iterate through the list in order and stop at the first policy that they support.
repeated .grpc.service_config.LoadBalancingConfig child_policy = 1; -
getChildPolicyCount
int getChildPolicyCount()Optional. What LB policy to use for routing between the backend addresses. If unset, defaults to round_robin. Currently, the only supported values are round_robin and pick_first. Note that this will be used both in balancer mode and in fallback mode. Multiple LB policies can be specified; clients will iterate through the list in order and stop at the first policy that they support.
repeated .grpc.service_config.LoadBalancingConfig child_policy = 1; -
getChildPolicyOrBuilderList
List<? extends LoadBalancingConfigOrBuilder> getChildPolicyOrBuilderList()Optional. What LB policy to use for routing between the backend addresses. If unset, defaults to round_robin. Currently, the only supported values are round_robin and pick_first. Note that this will be used both in balancer mode and in fallback mode. Multiple LB policies can be specified; clients will iterate through the list in order and stop at the first policy that they support.
repeated .grpc.service_config.LoadBalancingConfig child_policy = 1; -
getChildPolicyOrBuilder
Optional. What LB policy to use for routing between the backend addresses. If unset, defaults to round_robin. Currently, the only supported values are round_robin and pick_first. Note that this will be used both in balancer mode and in fallback mode. Multiple LB policies can be specified; clients will iterate through the list in order and stop at the first policy that they support.
repeated .grpc.service_config.LoadBalancingConfig child_policy = 1; -
getServiceName
String getServiceName()Optional. If specified, overrides the name of the service to be sent to the balancer.
string service_name = 2;- Returns:
- The serviceName.
-
getServiceNameBytes
com.google.protobuf.ByteString getServiceNameBytes()Optional. If specified, overrides the name of the service to be sent to the balancer.
string service_name = 2;- Returns:
- The bytes for serviceName.
-