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

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

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

        public WeightedCluster.ClusterWeight.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<WeightedCluster.ClusterWeight.Builder>
        Throws:
        IOException
      • setNameBytes

        public WeightedCluster.ClusterWeight.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Name of the upstream cluster.
         
        string name = 1 [(.validate.rules) = { ... }
      • hasWeight

        public boolean hasWeight()
         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.
         
        .google.protobuf.UInt32Value weight = 2 [(.validate.rules) = { ... }
        Specified by:
        hasWeight in interface WeightedCluster.ClusterWeightOrBuilder
      • getWeight

        public com.google.protobuf.UInt32Value 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.
         
        .google.protobuf.UInt32Value weight = 2 [(.validate.rules) = { ... }
        Specified by:
        getWeight in interface WeightedCluster.ClusterWeightOrBuilder
      • setWeight

        public WeightedCluster.ClusterWeight.Builder setWeight​(com.google.protobuf.UInt32Value 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.
         
        .google.protobuf.UInt32Value weight = 2 [(.validate.rules) = { ... }
      • setWeight

        public WeightedCluster.ClusterWeight.Builder setWeight​(com.google.protobuf.UInt32Value.Builder builderForValue)
         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.
         
        .google.protobuf.UInt32Value weight = 2 [(.validate.rules) = { ... }
      • mergeWeight

        public WeightedCluster.ClusterWeight.Builder mergeWeight​(com.google.protobuf.UInt32Value 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.
         
        .google.protobuf.UInt32Value weight = 2 [(.validate.rules) = { ... }
      • clearWeight

        public 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.
         
        .google.protobuf.UInt32Value weight = 2 [(.validate.rules) = { ... }
      • getWeightBuilder

        public com.google.protobuf.UInt32Value.Builder getWeightBuilder()
         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.
         
        .google.protobuf.UInt32Value weight = 2 [(.validate.rules) = { ... }
      • getWeightOrBuilder

        public com.google.protobuf.UInt32ValueOrBuilder getWeightOrBuilder()
         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.
         
        .google.protobuf.UInt32Value weight = 2 [(.validate.rules) = { ... }
        Specified by:
        getWeightOrBuilder in interface WeightedCluster.ClusterWeightOrBuilder
      • 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, combined with what's
         provided in :ref:`RouteAction's metadata_match
         <envoy_api_field_config.filter.network.thrift_proxy.v2alpha1.RouteAction.metadata_match>`,
         will be considered. Values here will take precedence. Keys and values should be provided
         under the "envoy.lb" metadata key.
         
        .envoy.api.v2.core.Metadata metadata_match = 3;
        Specified by:
        hasMetadataMatch in interface WeightedCluster.ClusterWeightOrBuilder
      • 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, combined with what's
         provided in :ref:`RouteAction's metadata_match
         <envoy_api_field_config.filter.network.thrift_proxy.v2alpha1.RouteAction.metadata_match>`,
         will be considered. Values here will take precedence. Keys and values should be provided
         under the "envoy.lb" metadata key.
         
        .envoy.api.v2.core.Metadata metadata_match = 3;
        Specified by:
        getMetadataMatch in interface WeightedCluster.ClusterWeightOrBuilder
      • setMetadataMatch

        public 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, combined with what's
         provided in :ref:`RouteAction's metadata_match
         <envoy_api_field_config.filter.network.thrift_proxy.v2alpha1.RouteAction.metadata_match>`,
         will be considered. Values here will take precedence. Keys and values should be provided
         under the "envoy.lb" metadata key.
         
        .envoy.api.v2.core.Metadata metadata_match = 3;
      • setMetadataMatch

        public 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, combined with what's
         provided in :ref:`RouteAction's metadata_match
         <envoy_api_field_config.filter.network.thrift_proxy.v2alpha1.RouteAction.metadata_match>`,
         will be considered. Values here will take precedence. Keys and values should be provided
         under the "envoy.lb" metadata key.
         
        .envoy.api.v2.core.Metadata metadata_match = 3;
      • mergeMetadataMatch

        public 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, combined with what's
         provided in :ref:`RouteAction's metadata_match
         <envoy_api_field_config.filter.network.thrift_proxy.v2alpha1.RouteAction.metadata_match>`,
         will be considered. Values here will take precedence. Keys and values should be provided
         under the "envoy.lb" metadata key.
         
        .envoy.api.v2.core.Metadata metadata_match = 3;
      • clearMetadataMatch

        public 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, combined with what's
         provided in :ref:`RouteAction's metadata_match
         <envoy_api_field_config.filter.network.thrift_proxy.v2alpha1.RouteAction.metadata_match>`,
         will be considered. Values here will take precedence. Keys and values should be provided
         under the "envoy.lb" metadata key.
         
        .envoy.api.v2.core.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, combined with what's
         provided in :ref:`RouteAction's metadata_match
         <envoy_api_field_config.filter.network.thrift_proxy.v2alpha1.RouteAction.metadata_match>`,
         will be considered. Values here will take precedence. Keys and values should be provided
         under the "envoy.lb" metadata key.
         
        .envoy.api.v2.core.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, combined with what's
         provided in :ref:`RouteAction's metadata_match
         <envoy_api_field_config.filter.network.thrift_proxy.v2alpha1.RouteAction.metadata_match>`,
         will be considered. Values here will take precedence. Keys and values should be provided
         under the "envoy.lb" metadata key.
         
        .envoy.api.v2.core.Metadata metadata_match = 3;
        Specified by:
        getMetadataMatchOrBuilder in interface WeightedCluster.ClusterWeightOrBuilder