Class TcpProxy.WeightedCluster.ClusterWeight.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<TcpProxy.WeightedCluster.ClusterWeight.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<TcpProxy.WeightedCluster.ClusterWeight.Builder>
      • getDefaultInstanceForType

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

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

        public TcpProxy.WeightedCluster.ClusterWeight 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<TcpProxy.WeightedCluster.ClusterWeight.Builder>
      • setNameBytes

        public TcpProxy.WeightedCluster.ClusterWeight.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Name of the upstream cluster.
         
        string name = 1 [(.validate.rules) = { ... }
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getWeight

        public 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) = { ... }
        Specified by:
        getWeight in interface TcpProxy.WeightedCluster.ClusterWeightOrBuilder
        Returns:
        The weight.
      • setWeight

        public TcpProxy.WeightedCluster.ClusterWeight.Builder setWeight​(int value)
         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) = { ... }
        Parameters:
        value - The weight to set.
        Returns:
        This builder for chaining.
      • clearWeight

        public TcpProxy.WeightedCluster.ClusterWeight.Builder clearWeight()
         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:
        This builder for chaining.
      • hasMetadataMatch

        public 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;
        Specified by:
        hasMetadataMatch in interface TcpProxy.WeightedCluster.ClusterWeightOrBuilder
        Returns:
        Whether the metadataMatch field is set.
      • getMetadataMatch

        public 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;
        Specified by:
        getMetadataMatch in interface TcpProxy.WeightedCluster.ClusterWeightOrBuilder
        Returns:
        The metadataMatch.
      • setMetadataMatch

        public TcpProxy.WeightedCluster.ClusterWeight.Builder setMetadataMatch​(Metadata value)
         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;
      • setMetadataMatch

        public TcpProxy.WeightedCluster.ClusterWeight.Builder setMetadataMatch​(Metadata.Builder builderForValue)
         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;
      • mergeMetadataMatch

        public TcpProxy.WeightedCluster.ClusterWeight.Builder mergeMetadataMatch​(Metadata value)
         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;
      • clearMetadataMatch

        public TcpProxy.WeightedCluster.ClusterWeight.Builder clearMetadataMatch()
         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;
      • getMetadataMatchBuilder

        public Metadata.Builder getMetadataMatchBuilder()
         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;
      • getMetadataMatchOrBuilder

        public 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;
        Specified by:
        getMetadataMatchOrBuilder in interface TcpProxy.WeightedCluster.ClusterWeightOrBuilder