Class 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.config.filter.network.dubbo_proxy.v2alpha1.RouteAction
    • 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<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>
      • 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
      • 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.api.v2.route.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.api.v2.route.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.api.v2.route.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.api.v2.route.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.api.v2.route.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.api.v2.route.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.api.v2.route.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.api.v2.route.WeightedCluster weighted_clusters = 2;
        Specified by:
        getWeightedClustersOrBuilder 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>