Class EdsLoadBalancingPolicyConfig.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<EdsLoadBalancingPolicyConfig.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<EdsLoadBalancingPolicyConfig.Builder>
      • getDefaultInstanceForType

        public EdsLoadBalancingPolicyConfig getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public EdsLoadBalancingPolicyConfig build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public EdsLoadBalancingPolicyConfig buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<EdsLoadBalancingPolicyConfig.Builder>
      • mergeFrom

        public EdsLoadBalancingPolicyConfig.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                       throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<EdsLoadBalancingPolicyConfig.Builder>
        Throws:
        IOException
      • setClusterBytes

        public EdsLoadBalancingPolicyConfig.Builder setClusterBytes​(com.google.protobuf.ByteString value)
         Cluster name.  Required.
         
        string cluster = 1;
        Parameters:
        value - The bytes for cluster to set.
        Returns:
        This builder for chaining.
      • getEdsServiceNameBytes

        public com.google.protobuf.ByteString getEdsServiceNameBytes()
         EDS service name, as returned in CDS.
         May be unset if not specified in CDS.
         
        string eds_service_name = 2;
        Specified by:
        getEdsServiceNameBytes in interface EdsLoadBalancingPolicyConfigOrBuilder
        Returns:
        The bytes for edsServiceName.
      • setEdsServiceName

        public EdsLoadBalancingPolicyConfig.Builder setEdsServiceName​(String value)
         EDS service name, as returned in CDS.
         May be unset if not specified in CDS.
         
        string eds_service_name = 2;
        Parameters:
        value - The edsServiceName to set.
        Returns:
        This builder for chaining.
      • clearEdsServiceName

        public EdsLoadBalancingPolicyConfig.Builder clearEdsServiceName()
         EDS service name, as returned in CDS.
         May be unset if not specified in CDS.
         
        string eds_service_name = 2;
        Returns:
        This builder for chaining.
      • setEdsServiceNameBytes

        public EdsLoadBalancingPolicyConfig.Builder setEdsServiceNameBytes​(com.google.protobuf.ByteString value)
         EDS service name, as returned in CDS.
         May be unset if not specified in CDS.
         
        string eds_service_name = 2;
        Parameters:
        value - The bytes for edsServiceName to set.
        Returns:
        This builder for chaining.
      • hasLrsLoadReportingServerName

        public boolean hasLrsLoadReportingServerName()
         Server to send load reports to.
         If unset, no load reporting is done.
         If set to empty string, load reporting will be sent to the same
         server as we are getting xds data from.
         
        .google.protobuf.StringValue lrs_load_reporting_server_name = 3;
        Specified by:
        hasLrsLoadReportingServerName in interface EdsLoadBalancingPolicyConfigOrBuilder
        Returns:
        Whether the lrsLoadReportingServerName field is set.
      • getLrsLoadReportingServerName

        public com.google.protobuf.StringValue getLrsLoadReportingServerName()
         Server to send load reports to.
         If unset, no load reporting is done.
         If set to empty string, load reporting will be sent to the same
         server as we are getting xds data from.
         
        .google.protobuf.StringValue lrs_load_reporting_server_name = 3;
        Specified by:
        getLrsLoadReportingServerName in interface EdsLoadBalancingPolicyConfigOrBuilder
        Returns:
        The lrsLoadReportingServerName.
      • setLrsLoadReportingServerName

        public EdsLoadBalancingPolicyConfig.Builder setLrsLoadReportingServerName​(com.google.protobuf.StringValue value)
         Server to send load reports to.
         If unset, no load reporting is done.
         If set to empty string, load reporting will be sent to the same
         server as we are getting xds data from.
         
        .google.protobuf.StringValue lrs_load_reporting_server_name = 3;
      • setLrsLoadReportingServerName

        public EdsLoadBalancingPolicyConfig.Builder setLrsLoadReportingServerName​(com.google.protobuf.StringValue.Builder builderForValue)
         Server to send load reports to.
         If unset, no load reporting is done.
         If set to empty string, load reporting will be sent to the same
         server as we are getting xds data from.
         
        .google.protobuf.StringValue lrs_load_reporting_server_name = 3;
      • mergeLrsLoadReportingServerName

        public EdsLoadBalancingPolicyConfig.Builder mergeLrsLoadReportingServerName​(com.google.protobuf.StringValue value)
         Server to send load reports to.
         If unset, no load reporting is done.
         If set to empty string, load reporting will be sent to the same
         server as we are getting xds data from.
         
        .google.protobuf.StringValue lrs_load_reporting_server_name = 3;
      • clearLrsLoadReportingServerName

        public EdsLoadBalancingPolicyConfig.Builder clearLrsLoadReportingServerName()
         Server to send load reports to.
         If unset, no load reporting is done.
         If set to empty string, load reporting will be sent to the same
         server as we are getting xds data from.
         
        .google.protobuf.StringValue lrs_load_reporting_server_name = 3;
      • getLrsLoadReportingServerNameBuilder

        public com.google.protobuf.StringValue.Builder getLrsLoadReportingServerNameBuilder()
         Server to send load reports to.
         If unset, no load reporting is done.
         If set to empty string, load reporting will be sent to the same
         server as we are getting xds data from.
         
        .google.protobuf.StringValue lrs_load_reporting_server_name = 3;
      • getLrsLoadReportingServerNameOrBuilder

        public com.google.protobuf.StringValueOrBuilder getLrsLoadReportingServerNameOrBuilder()
         Server to send load reports to.
         If unset, no load reporting is done.
         If set to empty string, load reporting will be sent to the same
         server as we are getting xds data from.
         
        .google.protobuf.StringValue lrs_load_reporting_server_name = 3;
        Specified by:
        getLrsLoadReportingServerNameOrBuilder in interface EdsLoadBalancingPolicyConfigOrBuilder
      • getLocalityPickingPolicyList

        public List<LoadBalancingConfig> getLocalityPickingPolicyList()
         Locality-picking policy.
         This policy's config is expected to be in the format used
         by the weighted_target policy.  Note that the config should include
         an empty value for the "targets" field; that empty value will be
         replaced by one that is dynamically generated based on the EDS data.
         Optional; defaults to "weighted_target".
         
        repeated .grpc.service_config.LoadBalancingConfig locality_picking_policy = 4;
        Specified by:
        getLocalityPickingPolicyList in interface EdsLoadBalancingPolicyConfigOrBuilder
      • getLocalityPickingPolicyCount

        public int getLocalityPickingPolicyCount()
         Locality-picking policy.
         This policy's config is expected to be in the format used
         by the weighted_target policy.  Note that the config should include
         an empty value for the "targets" field; that empty value will be
         replaced by one that is dynamically generated based on the EDS data.
         Optional; defaults to "weighted_target".
         
        repeated .grpc.service_config.LoadBalancingConfig locality_picking_policy = 4;
        Specified by:
        getLocalityPickingPolicyCount in interface EdsLoadBalancingPolicyConfigOrBuilder
      • getLocalityPickingPolicy

        public LoadBalancingConfig getLocalityPickingPolicy​(int index)
         Locality-picking policy.
         This policy's config is expected to be in the format used
         by the weighted_target policy.  Note that the config should include
         an empty value for the "targets" field; that empty value will be
         replaced by one that is dynamically generated based on the EDS data.
         Optional; defaults to "weighted_target".
         
        repeated .grpc.service_config.LoadBalancingConfig locality_picking_policy = 4;
        Specified by:
        getLocalityPickingPolicy in interface EdsLoadBalancingPolicyConfigOrBuilder
      • setLocalityPickingPolicy

        public EdsLoadBalancingPolicyConfig.Builder setLocalityPickingPolicy​(int index,
                                                                             LoadBalancingConfig value)
         Locality-picking policy.
         This policy's config is expected to be in the format used
         by the weighted_target policy.  Note that the config should include
         an empty value for the "targets" field; that empty value will be
         replaced by one that is dynamically generated based on the EDS data.
         Optional; defaults to "weighted_target".
         
        repeated .grpc.service_config.LoadBalancingConfig locality_picking_policy = 4;
      • setLocalityPickingPolicy

        public EdsLoadBalancingPolicyConfig.Builder setLocalityPickingPolicy​(int index,
                                                                             LoadBalancingConfig.Builder builderForValue)
         Locality-picking policy.
         This policy's config is expected to be in the format used
         by the weighted_target policy.  Note that the config should include
         an empty value for the "targets" field; that empty value will be
         replaced by one that is dynamically generated based on the EDS data.
         Optional; defaults to "weighted_target".
         
        repeated .grpc.service_config.LoadBalancingConfig locality_picking_policy = 4;
      • addLocalityPickingPolicy

        public EdsLoadBalancingPolicyConfig.Builder addLocalityPickingPolicy​(LoadBalancingConfig value)
         Locality-picking policy.
         This policy's config is expected to be in the format used
         by the weighted_target policy.  Note that the config should include
         an empty value for the "targets" field; that empty value will be
         replaced by one that is dynamically generated based on the EDS data.
         Optional; defaults to "weighted_target".
         
        repeated .grpc.service_config.LoadBalancingConfig locality_picking_policy = 4;
      • addLocalityPickingPolicy

        public EdsLoadBalancingPolicyConfig.Builder addLocalityPickingPolicy​(int index,
                                                                             LoadBalancingConfig value)
         Locality-picking policy.
         This policy's config is expected to be in the format used
         by the weighted_target policy.  Note that the config should include
         an empty value for the "targets" field; that empty value will be
         replaced by one that is dynamically generated based on the EDS data.
         Optional; defaults to "weighted_target".
         
        repeated .grpc.service_config.LoadBalancingConfig locality_picking_policy = 4;
      • addLocalityPickingPolicy

        public EdsLoadBalancingPolicyConfig.Builder addLocalityPickingPolicy​(LoadBalancingConfig.Builder builderForValue)
         Locality-picking policy.
         This policy's config is expected to be in the format used
         by the weighted_target policy.  Note that the config should include
         an empty value for the "targets" field; that empty value will be
         replaced by one that is dynamically generated based on the EDS data.
         Optional; defaults to "weighted_target".
         
        repeated .grpc.service_config.LoadBalancingConfig locality_picking_policy = 4;
      • addLocalityPickingPolicy

        public EdsLoadBalancingPolicyConfig.Builder addLocalityPickingPolicy​(int index,
                                                                             LoadBalancingConfig.Builder builderForValue)
         Locality-picking policy.
         This policy's config is expected to be in the format used
         by the weighted_target policy.  Note that the config should include
         an empty value for the "targets" field; that empty value will be
         replaced by one that is dynamically generated based on the EDS data.
         Optional; defaults to "weighted_target".
         
        repeated .grpc.service_config.LoadBalancingConfig locality_picking_policy = 4;
      • addAllLocalityPickingPolicy

        public EdsLoadBalancingPolicyConfig.Builder addAllLocalityPickingPolicy​(Iterable<? extends LoadBalancingConfig> values)
         Locality-picking policy.
         This policy's config is expected to be in the format used
         by the weighted_target policy.  Note that the config should include
         an empty value for the "targets" field; that empty value will be
         replaced by one that is dynamically generated based on the EDS data.
         Optional; defaults to "weighted_target".
         
        repeated .grpc.service_config.LoadBalancingConfig locality_picking_policy = 4;
      • clearLocalityPickingPolicy

        public EdsLoadBalancingPolicyConfig.Builder clearLocalityPickingPolicy()
         Locality-picking policy.
         This policy's config is expected to be in the format used
         by the weighted_target policy.  Note that the config should include
         an empty value for the "targets" field; that empty value will be
         replaced by one that is dynamically generated based on the EDS data.
         Optional; defaults to "weighted_target".
         
        repeated .grpc.service_config.LoadBalancingConfig locality_picking_policy = 4;
      • removeLocalityPickingPolicy

        public EdsLoadBalancingPolicyConfig.Builder removeLocalityPickingPolicy​(int index)
         Locality-picking policy.
         This policy's config is expected to be in the format used
         by the weighted_target policy.  Note that the config should include
         an empty value for the "targets" field; that empty value will be
         replaced by one that is dynamically generated based on the EDS data.
         Optional; defaults to "weighted_target".
         
        repeated .grpc.service_config.LoadBalancingConfig locality_picking_policy = 4;
      • getLocalityPickingPolicyBuilder

        public LoadBalancingConfig.Builder getLocalityPickingPolicyBuilder​(int index)
         Locality-picking policy.
         This policy's config is expected to be in the format used
         by the weighted_target policy.  Note that the config should include
         an empty value for the "targets" field; that empty value will be
         replaced by one that is dynamically generated based on the EDS data.
         Optional; defaults to "weighted_target".
         
        repeated .grpc.service_config.LoadBalancingConfig locality_picking_policy = 4;
      • getLocalityPickingPolicyOrBuilder

        public LoadBalancingConfigOrBuilder getLocalityPickingPolicyOrBuilder​(int index)
         Locality-picking policy.
         This policy's config is expected to be in the format used
         by the weighted_target policy.  Note that the config should include
         an empty value for the "targets" field; that empty value will be
         replaced by one that is dynamically generated based on the EDS data.
         Optional; defaults to "weighted_target".
         
        repeated .grpc.service_config.LoadBalancingConfig locality_picking_policy = 4;
        Specified by:
        getLocalityPickingPolicyOrBuilder in interface EdsLoadBalancingPolicyConfigOrBuilder
      • getLocalityPickingPolicyOrBuilderList

        public List<? extends LoadBalancingConfigOrBuilder> getLocalityPickingPolicyOrBuilderList()
         Locality-picking policy.
         This policy's config is expected to be in the format used
         by the weighted_target policy.  Note that the config should include
         an empty value for the "targets" field; that empty value will be
         replaced by one that is dynamically generated based on the EDS data.
         Optional; defaults to "weighted_target".
         
        repeated .grpc.service_config.LoadBalancingConfig locality_picking_policy = 4;
        Specified by:
        getLocalityPickingPolicyOrBuilderList in interface EdsLoadBalancingPolicyConfigOrBuilder
      • addLocalityPickingPolicyBuilder

        public LoadBalancingConfig.Builder addLocalityPickingPolicyBuilder()
         Locality-picking policy.
         This policy's config is expected to be in the format used
         by the weighted_target policy.  Note that the config should include
         an empty value for the "targets" field; that empty value will be
         replaced by one that is dynamically generated based on the EDS data.
         Optional; defaults to "weighted_target".
         
        repeated .grpc.service_config.LoadBalancingConfig locality_picking_policy = 4;
      • addLocalityPickingPolicyBuilder

        public LoadBalancingConfig.Builder addLocalityPickingPolicyBuilder​(int index)
         Locality-picking policy.
         This policy's config is expected to be in the format used
         by the weighted_target policy.  Note that the config should include
         an empty value for the "targets" field; that empty value will be
         replaced by one that is dynamically generated based on the EDS data.
         Optional; defaults to "weighted_target".
         
        repeated .grpc.service_config.LoadBalancingConfig locality_picking_policy = 4;
      • getLocalityPickingPolicyBuilderList

        public List<LoadBalancingConfig.Builder> getLocalityPickingPolicyBuilderList()
         Locality-picking policy.
         This policy's config is expected to be in the format used
         by the weighted_target policy.  Note that the config should include
         an empty value for the "targets" field; that empty value will be
         replaced by one that is dynamically generated based on the EDS data.
         Optional; defaults to "weighted_target".
         
        repeated .grpc.service_config.LoadBalancingConfig locality_picking_policy = 4;
      • getEndpointPickingPolicyCount

        public int getEndpointPickingPolicyCount()
         Endpoint-picking policy.
         This will be configured as the policy for each child in the
         locality-policy's config.
         Optional; defaults to "round_robin".
         
        repeated .grpc.service_config.LoadBalancingConfig endpoint_picking_policy = 5;
        Specified by:
        getEndpointPickingPolicyCount in interface EdsLoadBalancingPolicyConfigOrBuilder
      • getEndpointPickingPolicy

        public LoadBalancingConfig getEndpointPickingPolicy​(int index)
         Endpoint-picking policy.
         This will be configured as the policy for each child in the
         locality-policy's config.
         Optional; defaults to "round_robin".
         
        repeated .grpc.service_config.LoadBalancingConfig endpoint_picking_policy = 5;
        Specified by:
        getEndpointPickingPolicy in interface EdsLoadBalancingPolicyConfigOrBuilder
      • setEndpointPickingPolicy

        public EdsLoadBalancingPolicyConfig.Builder setEndpointPickingPolicy​(int index,
                                                                             LoadBalancingConfig value)
         Endpoint-picking policy.
         This will be configured as the policy for each child in the
         locality-policy's config.
         Optional; defaults to "round_robin".
         
        repeated .grpc.service_config.LoadBalancingConfig endpoint_picking_policy = 5;
      • setEndpointPickingPolicy

        public EdsLoadBalancingPolicyConfig.Builder setEndpointPickingPolicy​(int index,
                                                                             LoadBalancingConfig.Builder builderForValue)
         Endpoint-picking policy.
         This will be configured as the policy for each child in the
         locality-policy's config.
         Optional; defaults to "round_robin".
         
        repeated .grpc.service_config.LoadBalancingConfig endpoint_picking_policy = 5;
      • addEndpointPickingPolicy

        public EdsLoadBalancingPolicyConfig.Builder addEndpointPickingPolicy​(LoadBalancingConfig value)
         Endpoint-picking policy.
         This will be configured as the policy for each child in the
         locality-policy's config.
         Optional; defaults to "round_robin".
         
        repeated .grpc.service_config.LoadBalancingConfig endpoint_picking_policy = 5;
      • addEndpointPickingPolicy

        public EdsLoadBalancingPolicyConfig.Builder addEndpointPickingPolicy​(int index,
                                                                             LoadBalancingConfig value)
         Endpoint-picking policy.
         This will be configured as the policy for each child in the
         locality-policy's config.
         Optional; defaults to "round_robin".
         
        repeated .grpc.service_config.LoadBalancingConfig endpoint_picking_policy = 5;
      • addEndpointPickingPolicy

        public EdsLoadBalancingPolicyConfig.Builder addEndpointPickingPolicy​(LoadBalancingConfig.Builder builderForValue)
         Endpoint-picking policy.
         This will be configured as the policy for each child in the
         locality-policy's config.
         Optional; defaults to "round_robin".
         
        repeated .grpc.service_config.LoadBalancingConfig endpoint_picking_policy = 5;
      • addEndpointPickingPolicy

        public EdsLoadBalancingPolicyConfig.Builder addEndpointPickingPolicy​(int index,
                                                                             LoadBalancingConfig.Builder builderForValue)
         Endpoint-picking policy.
         This will be configured as the policy for each child in the
         locality-policy's config.
         Optional; defaults to "round_robin".
         
        repeated .grpc.service_config.LoadBalancingConfig endpoint_picking_policy = 5;
      • addAllEndpointPickingPolicy

        public EdsLoadBalancingPolicyConfig.Builder addAllEndpointPickingPolicy​(Iterable<? extends LoadBalancingConfig> values)
         Endpoint-picking policy.
         This will be configured as the policy for each child in the
         locality-policy's config.
         Optional; defaults to "round_robin".
         
        repeated .grpc.service_config.LoadBalancingConfig endpoint_picking_policy = 5;
      • clearEndpointPickingPolicy

        public EdsLoadBalancingPolicyConfig.Builder clearEndpointPickingPolicy()
         Endpoint-picking policy.
         This will be configured as the policy for each child in the
         locality-policy's config.
         Optional; defaults to "round_robin".
         
        repeated .grpc.service_config.LoadBalancingConfig endpoint_picking_policy = 5;
      • removeEndpointPickingPolicy

        public EdsLoadBalancingPolicyConfig.Builder removeEndpointPickingPolicy​(int index)
         Endpoint-picking policy.
         This will be configured as the policy for each child in the
         locality-policy's config.
         Optional; defaults to "round_robin".
         
        repeated .grpc.service_config.LoadBalancingConfig endpoint_picking_policy = 5;
      • getEndpointPickingPolicyBuilder

        public LoadBalancingConfig.Builder getEndpointPickingPolicyBuilder​(int index)
         Endpoint-picking policy.
         This will be configured as the policy for each child in the
         locality-policy's config.
         Optional; defaults to "round_robin".
         
        repeated .grpc.service_config.LoadBalancingConfig endpoint_picking_policy = 5;
      • addEndpointPickingPolicyBuilder

        public LoadBalancingConfig.Builder addEndpointPickingPolicyBuilder()
         Endpoint-picking policy.
         This will be configured as the policy for each child in the
         locality-policy's config.
         Optional; defaults to "round_robin".
         
        repeated .grpc.service_config.LoadBalancingConfig endpoint_picking_policy = 5;
      • addEndpointPickingPolicyBuilder

        public LoadBalancingConfig.Builder addEndpointPickingPolicyBuilder​(int index)
         Endpoint-picking policy.
         This will be configured as the policy for each child in the
         locality-policy's config.
         Optional; defaults to "round_robin".
         
        repeated .grpc.service_config.LoadBalancingConfig endpoint_picking_policy = 5;
      • getEndpointPickingPolicyBuilderList

        public List<LoadBalancingConfig.Builder> getEndpointPickingPolicyBuilderList()
         Endpoint-picking policy.
         This will be configured as the policy for each child in the
         locality-policy's config.
         Optional; defaults to "round_robin".
         
        repeated .grpc.service_config.LoadBalancingConfig endpoint_picking_policy = 5;