java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<RouteAction.Builder>
io.envoyproxy.envoy.extensions.filters.network.dubbo_proxy.v3.RouteAction.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, RouteActionOrBuilder, Cloneable
Enclosing class:
RouteAction

public static final class RouteAction.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RouteAction.Builder> implements RouteActionOrBuilder
Protobuf type envoy.extensions.filters.network.dubbo_proxy.v3.RouteAction
  • Method Details

    • 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<RouteAction.Builder>
    • clear

      public RouteAction.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<RouteAction.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<RouteAction.Builder>
    • getDefaultInstanceForType

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

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

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

      public RouteAction.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<RouteAction.Builder>
    • setField

      public RouteAction.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<RouteAction.Builder>
    • clearField

      public RouteAction.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<RouteAction.Builder>
    • clearOneof

      public RouteAction.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RouteAction.Builder>
    • setRepeatedField

      public RouteAction.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RouteAction.Builder>
    • addRepeatedField

      public RouteAction.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RouteAction.Builder>
    • mergeFrom

      public RouteAction.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<RouteAction.Builder>
    • mergeFrom

      public RouteAction.Builder mergeFrom(RouteAction other)
    • isInitialized

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

      public RouteAction.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<RouteAction.Builder>
      Throws:
      IOException
    • getClusterSpecifierCase

      public RouteAction.ClusterSpecifierCase getClusterSpecifierCase()
      Specified by:
      getClusterSpecifierCase in interface RouteActionOrBuilder
    • clearClusterSpecifier

      public RouteAction.Builder clearClusterSpecifier()
    • hasCluster

      public boolean hasCluster()
       Indicates the upstream cluster to which the request should be routed.
       
      string cluster = 1;
      Specified by:
      hasCluster in interface RouteActionOrBuilder
      Returns:
      Whether the cluster field is set.
    • getCluster

      public String getCluster()
       Indicates the upstream cluster to which the request should be routed.
       
      string cluster = 1;
      Specified by:
      getCluster in interface RouteActionOrBuilder
      Returns:
      The cluster.
    • getClusterBytes

      public com.google.protobuf.ByteString getClusterBytes()
       Indicates the upstream cluster to which the request should be routed.
       
      string cluster = 1;
      Specified by:
      getClusterBytes in interface RouteActionOrBuilder
      Returns:
      The bytes for cluster.
    • setCluster

      public RouteAction.Builder setCluster(String value)
       Indicates the upstream cluster to which the request should be routed.
       
      string cluster = 1;
      Parameters:
      value - The cluster to set.
      Returns:
      This builder for chaining.
    • clearCluster

      public RouteAction.Builder clearCluster()
       Indicates the upstream cluster to which the request should be routed.
       
      string cluster = 1;
      Returns:
      This builder for chaining.
    • setClusterBytes

      public RouteAction.Builder setClusterBytes(com.google.protobuf.ByteString value)
       Indicates the upstream cluster to which the request should be routed.
       
      string cluster = 1;
      Parameters:
      value - The bytes for cluster to set.
      Returns:
      This builder for chaining.
    • hasWeightedClusters

      public boolean hasWeightedClusters()
       Multiple upstream clusters can be specified for a given route. The
       request is routed to one of the upstream clusters based on weights
       assigned to each cluster.
       Currently ClusterWeight only supports the name and weight fields.
       
      .envoy.config.route.v3.WeightedCluster weighted_clusters = 2;
      Specified by:
      hasWeightedClusters in interface RouteActionOrBuilder
      Returns:
      Whether the weightedClusters field is set.
    • getWeightedClusters

      public WeightedCluster getWeightedClusters()
       Multiple upstream clusters can be specified for a given route. The
       request is routed to one of the upstream clusters based on weights
       assigned to each cluster.
       Currently ClusterWeight only supports the name and weight fields.
       
      .envoy.config.route.v3.WeightedCluster weighted_clusters = 2;
      Specified by:
      getWeightedClusters in interface RouteActionOrBuilder
      Returns:
      The weightedClusters.
    • setWeightedClusters

      public RouteAction.Builder setWeightedClusters(WeightedCluster value)
       Multiple upstream clusters can be specified for a given route. The
       request is routed to one of the upstream clusters based on weights
       assigned to each cluster.
       Currently ClusterWeight only supports the name and weight fields.
       
      .envoy.config.route.v3.WeightedCluster weighted_clusters = 2;
    • setWeightedClusters

      public RouteAction.Builder setWeightedClusters(WeightedCluster.Builder builderForValue)
       Multiple upstream clusters can be specified for a given route. The
       request is routed to one of the upstream clusters based on weights
       assigned to each cluster.
       Currently ClusterWeight only supports the name and weight fields.
       
      .envoy.config.route.v3.WeightedCluster weighted_clusters = 2;
    • mergeWeightedClusters

      public RouteAction.Builder mergeWeightedClusters(WeightedCluster value)
       Multiple upstream clusters can be specified for a given route. The
       request is routed to one of the upstream clusters based on weights
       assigned to each cluster.
       Currently ClusterWeight only supports the name and weight fields.
       
      .envoy.config.route.v3.WeightedCluster weighted_clusters = 2;
    • clearWeightedClusters

      public RouteAction.Builder clearWeightedClusters()
       Multiple upstream clusters can be specified for a given route. The
       request is routed to one of the upstream clusters based on weights
       assigned to each cluster.
       Currently ClusterWeight only supports the name and weight fields.
       
      .envoy.config.route.v3.WeightedCluster weighted_clusters = 2;
    • getWeightedClustersBuilder

      public WeightedCluster.Builder getWeightedClustersBuilder()
       Multiple upstream clusters can be specified for a given route. The
       request is routed to one of the upstream clusters based on weights
       assigned to each cluster.
       Currently ClusterWeight only supports the name and weight fields.
       
      .envoy.config.route.v3.WeightedCluster weighted_clusters = 2;
    • getWeightedClustersOrBuilder

      public WeightedClusterOrBuilder getWeightedClustersOrBuilder()
       Multiple upstream clusters can be specified for a given route. The
       request is routed to one of the upstream clusters based on weights
       assigned to each cluster.
       Currently ClusterWeight only supports the name and weight fields.
       
      .envoy.config.route.v3.WeightedCluster weighted_clusters = 2;
      Specified by:
      getWeightedClustersOrBuilder in interface RouteActionOrBuilder
    • 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. The filter name should be specified as ``envoy.lb``.
       
      .envoy.config.core.v3.Metadata metadata_match = 3;
      Specified by:
      hasMetadataMatch in interface RouteActionOrBuilder
      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. The filter name should be specified as ``envoy.lb``.
       
      .envoy.config.core.v3.Metadata metadata_match = 3;
      Specified by:
      getMetadataMatch in interface RouteActionOrBuilder
      Returns:
      The metadataMatch.
    • setMetadataMatch

      public RouteAction.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. The filter name should be specified as ``envoy.lb``.
       
      .envoy.config.core.v3.Metadata metadata_match = 3;
    • setMetadataMatch

      public RouteAction.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. The filter name should be specified as ``envoy.lb``.
       
      .envoy.config.core.v3.Metadata metadata_match = 3;
    • mergeMetadataMatch

      public RouteAction.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. The filter name should be specified as ``envoy.lb``.
       
      .envoy.config.core.v3.Metadata metadata_match = 3;
    • clearMetadataMatch

      public RouteAction.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. 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. 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. The filter name should be specified as ``envoy.lb``.
       
      .envoy.config.core.v3.Metadata metadata_match = 3;
      Specified by:
      getMetadataMatchOrBuilder in interface RouteActionOrBuilder
    • setUnknownFields

      public final RouteAction.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RouteAction.Builder>
    • mergeUnknownFields

      public final RouteAction.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RouteAction.Builder>