Interface TcpProxy.WeightedCluster.ClusterWeightOrBuilder

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Metadata getMetadataMatch()
      Optional endpoint metadata match criteria used by the subset load balancer.
      MetadataOrBuilder getMetadataMatchOrBuilder()
      Optional endpoint metadata match criteria used by the subset load balancer.
      String getName()
      Name of the upstream cluster.
      com.google.protobuf.ByteString getNameBytes()
      Name of the upstream cluster.
      int getWeight()
      When a request matches the route, the choice of an upstream cluster is determined by its weight.
      boolean hasMetadataMatch()
      Optional endpoint metadata match criteria used by the subset load balancer.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getName

        String getName()
         Name of the upstream cluster.
         
        string name = 1 [(.validate.rules) = { ... }
        Returns:
        The name.
      • getNameBytes

        com.google.protobuf.ByteString getNameBytes()
         Name of the upstream cluster.
         
        string name = 1 [(.validate.rules) = { ... }
        Returns:
        The bytes for name.
      • getWeight

        int getWeight()
         When a request matches the route, the choice of an upstream cluster is
         determined by its weight. The sum of weights across all entries in the
         clusters array determines the total weight.
         
        uint32 weight = 2 [(.validate.rules) = { ... }
        Returns:
        The weight.
      • hasMetadataMatch

        boolean hasMetadataMatch()
         Optional endpoint metadata match criteria used by the subset load balancer. Only endpoints
         in the upstream cluster with metadata matching what is set in this field will be considered
         for load balancing. Note that this will be merged with what's provided in
         :ref:`TcpProxy.metadata_match
         <envoy_v3_api_field_extensions.filters.network.tcp_proxy.v3.TcpProxy.metadata_match>`, with values
         here taking precedence. The filter name should be specified as ``envoy.lb``.
         
        .envoy.config.core.v3.Metadata metadata_match = 3;
        Returns:
        Whether the metadataMatch field is set.
      • getMetadataMatch

        Metadata getMetadataMatch()
         Optional endpoint metadata match criteria used by the subset load balancer. Only endpoints
         in the upstream cluster with metadata matching what is set in this field will be considered
         for load balancing. Note that this will be merged with what's provided in
         :ref:`TcpProxy.metadata_match
         <envoy_v3_api_field_extensions.filters.network.tcp_proxy.v3.TcpProxy.metadata_match>`, with values
         here taking precedence. The filter name should be specified as ``envoy.lb``.
         
        .envoy.config.core.v3.Metadata metadata_match = 3;
        Returns:
        The metadataMatch.
      • getMetadataMatchOrBuilder

        MetadataOrBuilder getMetadataMatchOrBuilder()
         Optional endpoint metadata match criteria used by the subset load balancer. Only endpoints
         in the upstream cluster with metadata matching what is set in this field will be considered
         for load balancing. Note that this will be merged with what's provided in
         :ref:`TcpProxy.metadata_match
         <envoy_v3_api_field_extensions.filters.network.tcp_proxy.v3.TcpProxy.metadata_match>`, with values
         here taking precedence. The filter name should be specified as ``envoy.lb``.
         
        .envoy.config.core.v3.Metadata metadata_match = 3;