Class GrpcRoute.RouteAction.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GrpcRoute.RouteAction.Builder>
com.google.cloud.networkservices.v1.GrpcRoute.RouteAction.Builder
All Implemented Interfaces:
GrpcRoute.RouteActionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
GrpcRoute.RouteAction

public static final class GrpcRoute.RouteAction.Builder extends com.google.protobuf.GeneratedMessage.Builder<GrpcRoute.RouteAction.Builder> implements GrpcRoute.RouteActionOrBuilder
 Specifies how to route matched traffic.
 
Protobuf type google.cloud.networkservices.v1.GrpcRoute.RouteAction
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<GrpcRoute.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.GeneratedMessage.Builder<GrpcRoute.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.GeneratedMessage.Builder<GrpcRoute.RouteAction.Builder>
    • getDefaultInstanceForType

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

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

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

      public GrpcRoute.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<GrpcRoute.RouteAction.Builder>
    • mergeFrom

    • isInitialized

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

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

      public List<GrpcRoute.Destination> getDestinationsList()
       Optional. The destination services to which traffic should be forwarded.
       If multiple destinations are specified, traffic will be split between
       Backend Service(s) according to the weight field of these destinations.
       
      repeated .google.cloud.networkservices.v1.GrpcRoute.Destination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDestinationsList in interface GrpcRoute.RouteActionOrBuilder
    • getDestinationsCount

      public int getDestinationsCount()
       Optional. The destination services to which traffic should be forwarded.
       If multiple destinations are specified, traffic will be split between
       Backend Service(s) according to the weight field of these destinations.
       
      repeated .google.cloud.networkservices.v1.GrpcRoute.Destination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDestinationsCount in interface GrpcRoute.RouteActionOrBuilder
    • getDestinations

      public GrpcRoute.Destination getDestinations(int index)
       Optional. The destination services to which traffic should be forwarded.
       If multiple destinations are specified, traffic will be split between
       Backend Service(s) according to the weight field of these destinations.
       
      repeated .google.cloud.networkservices.v1.GrpcRoute.Destination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDestinations in interface GrpcRoute.RouteActionOrBuilder
    • setDestinations

      public GrpcRoute.RouteAction.Builder setDestinations(int index, GrpcRoute.Destination value)
       Optional. The destination services to which traffic should be forwarded.
       If multiple destinations are specified, traffic will be split between
       Backend Service(s) according to the weight field of these destinations.
       
      repeated .google.cloud.networkservices.v1.GrpcRoute.Destination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];
    • setDestinations

      public GrpcRoute.RouteAction.Builder setDestinations(int index, GrpcRoute.Destination.Builder builderForValue)
       Optional. The destination services to which traffic should be forwarded.
       If multiple destinations are specified, traffic will be split between
       Backend Service(s) according to the weight field of these destinations.
       
      repeated .google.cloud.networkservices.v1.GrpcRoute.Destination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addDestinations

      public GrpcRoute.RouteAction.Builder addDestinations(GrpcRoute.Destination value)
       Optional. The destination services to which traffic should be forwarded.
       If multiple destinations are specified, traffic will be split between
       Backend Service(s) according to the weight field of these destinations.
       
      repeated .google.cloud.networkservices.v1.GrpcRoute.Destination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addDestinations

      public GrpcRoute.RouteAction.Builder addDestinations(int index, GrpcRoute.Destination value)
       Optional. The destination services to which traffic should be forwarded.
       If multiple destinations are specified, traffic will be split between
       Backend Service(s) according to the weight field of these destinations.
       
      repeated .google.cloud.networkservices.v1.GrpcRoute.Destination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addDestinations

      public GrpcRoute.RouteAction.Builder addDestinations(GrpcRoute.Destination.Builder builderForValue)
       Optional. The destination services to which traffic should be forwarded.
       If multiple destinations are specified, traffic will be split between
       Backend Service(s) according to the weight field of these destinations.
       
      repeated .google.cloud.networkservices.v1.GrpcRoute.Destination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addDestinations

      public GrpcRoute.RouteAction.Builder addDestinations(int index, GrpcRoute.Destination.Builder builderForValue)
       Optional. The destination services to which traffic should be forwarded.
       If multiple destinations are specified, traffic will be split between
       Backend Service(s) according to the weight field of these destinations.
       
      repeated .google.cloud.networkservices.v1.GrpcRoute.Destination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addAllDestinations

      public GrpcRoute.RouteAction.Builder addAllDestinations(Iterable<? extends GrpcRoute.Destination> values)
       Optional. The destination services to which traffic should be forwarded.
       If multiple destinations are specified, traffic will be split between
       Backend Service(s) according to the weight field of these destinations.
       
      repeated .google.cloud.networkservices.v1.GrpcRoute.Destination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];
    • clearDestinations

      public GrpcRoute.RouteAction.Builder clearDestinations()
       Optional. The destination services to which traffic should be forwarded.
       If multiple destinations are specified, traffic will be split between
       Backend Service(s) according to the weight field of these destinations.
       
      repeated .google.cloud.networkservices.v1.GrpcRoute.Destination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];
    • removeDestinations

      public GrpcRoute.RouteAction.Builder removeDestinations(int index)
       Optional. The destination services to which traffic should be forwarded.
       If multiple destinations are specified, traffic will be split between
       Backend Service(s) according to the weight field of these destinations.
       
      repeated .google.cloud.networkservices.v1.GrpcRoute.Destination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getDestinationsBuilder

      public GrpcRoute.Destination.Builder getDestinationsBuilder(int index)
       Optional. The destination services to which traffic should be forwarded.
       If multiple destinations are specified, traffic will be split between
       Backend Service(s) according to the weight field of these destinations.
       
      repeated .google.cloud.networkservices.v1.GrpcRoute.Destination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getDestinationsOrBuilder

      public GrpcRoute.DestinationOrBuilder getDestinationsOrBuilder(int index)
       Optional. The destination services to which traffic should be forwarded.
       If multiple destinations are specified, traffic will be split between
       Backend Service(s) according to the weight field of these destinations.
       
      repeated .google.cloud.networkservices.v1.GrpcRoute.Destination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDestinationsOrBuilder in interface GrpcRoute.RouteActionOrBuilder
    • getDestinationsOrBuilderList

      public List<? extends GrpcRoute.DestinationOrBuilder> getDestinationsOrBuilderList()
       Optional. The destination services to which traffic should be forwarded.
       If multiple destinations are specified, traffic will be split between
       Backend Service(s) according to the weight field of these destinations.
       
      repeated .google.cloud.networkservices.v1.GrpcRoute.Destination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDestinationsOrBuilderList in interface GrpcRoute.RouteActionOrBuilder
    • addDestinationsBuilder

      public GrpcRoute.Destination.Builder addDestinationsBuilder()
       Optional. The destination services to which traffic should be forwarded.
       If multiple destinations are specified, traffic will be split between
       Backend Service(s) according to the weight field of these destinations.
       
      repeated .google.cloud.networkservices.v1.GrpcRoute.Destination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addDestinationsBuilder

      public GrpcRoute.Destination.Builder addDestinationsBuilder(int index)
       Optional. The destination services to which traffic should be forwarded.
       If multiple destinations are specified, traffic will be split between
       Backend Service(s) according to the weight field of these destinations.
       
      repeated .google.cloud.networkservices.v1.GrpcRoute.Destination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getDestinationsBuilderList

      public List<GrpcRoute.Destination.Builder> getDestinationsBuilderList()
       Optional. The destination services to which traffic should be forwarded.
       If multiple destinations are specified, traffic will be split between
       Backend Service(s) according to the weight field of these destinations.
       
      repeated .google.cloud.networkservices.v1.GrpcRoute.Destination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];
    • hasFaultInjectionPolicy

      public boolean hasFaultInjectionPolicy()
       Optional. The specification for fault injection introduced into traffic
       to test the resiliency of clients to destination service failure. As part
       of fault injection, when clients send requests to a destination, delays
       can be introduced on a percentage of requests before sending those
       requests to the destination service. Similarly requests from clients can
       be aborted by for a percentage of requests.
      
       timeout and retry_policy will be ignored by clients that are configured
       with a fault_injection_policy
       
      .google.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy fault_injection_policy = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasFaultInjectionPolicy in interface GrpcRoute.RouteActionOrBuilder
      Returns:
      Whether the faultInjectionPolicy field is set.
    • getFaultInjectionPolicy

      public GrpcRoute.FaultInjectionPolicy getFaultInjectionPolicy()
       Optional. The specification for fault injection introduced into traffic
       to test the resiliency of clients to destination service failure. As part
       of fault injection, when clients send requests to a destination, delays
       can be introduced on a percentage of requests before sending those
       requests to the destination service. Similarly requests from clients can
       be aborted by for a percentage of requests.
      
       timeout and retry_policy will be ignored by clients that are configured
       with a fault_injection_policy
       
      .google.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy fault_injection_policy = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFaultInjectionPolicy in interface GrpcRoute.RouteActionOrBuilder
      Returns:
      The faultInjectionPolicy.
    • setFaultInjectionPolicy

      public GrpcRoute.RouteAction.Builder setFaultInjectionPolicy(GrpcRoute.FaultInjectionPolicy value)
       Optional. The specification for fault injection introduced into traffic
       to test the resiliency of clients to destination service failure. As part
       of fault injection, when clients send requests to a destination, delays
       can be introduced on a percentage of requests before sending those
       requests to the destination service. Similarly requests from clients can
       be aborted by for a percentage of requests.
      
       timeout and retry_policy will be ignored by clients that are configured
       with a fault_injection_policy
       
      .google.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy fault_injection_policy = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setFaultInjectionPolicy

      public GrpcRoute.RouteAction.Builder setFaultInjectionPolicy(GrpcRoute.FaultInjectionPolicy.Builder builderForValue)
       Optional. The specification for fault injection introduced into traffic
       to test the resiliency of clients to destination service failure. As part
       of fault injection, when clients send requests to a destination, delays
       can be introduced on a percentage of requests before sending those
       requests to the destination service. Similarly requests from clients can
       be aborted by for a percentage of requests.
      
       timeout and retry_policy will be ignored by clients that are configured
       with a fault_injection_policy
       
      .google.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy fault_injection_policy = 3 [(.google.api.field_behavior) = OPTIONAL];
    • mergeFaultInjectionPolicy

      public GrpcRoute.RouteAction.Builder mergeFaultInjectionPolicy(GrpcRoute.FaultInjectionPolicy value)
       Optional. The specification for fault injection introduced into traffic
       to test the resiliency of clients to destination service failure. As part
       of fault injection, when clients send requests to a destination, delays
       can be introduced on a percentage of requests before sending those
       requests to the destination service. Similarly requests from clients can
       be aborted by for a percentage of requests.
      
       timeout and retry_policy will be ignored by clients that are configured
       with a fault_injection_policy
       
      .google.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy fault_injection_policy = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearFaultInjectionPolicy

      public GrpcRoute.RouteAction.Builder clearFaultInjectionPolicy()
       Optional. The specification for fault injection introduced into traffic
       to test the resiliency of clients to destination service failure. As part
       of fault injection, when clients send requests to a destination, delays
       can be introduced on a percentage of requests before sending those
       requests to the destination service. Similarly requests from clients can
       be aborted by for a percentage of requests.
      
       timeout and retry_policy will be ignored by clients that are configured
       with a fault_injection_policy
       
      .google.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy fault_injection_policy = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getFaultInjectionPolicyBuilder

      public GrpcRoute.FaultInjectionPolicy.Builder getFaultInjectionPolicyBuilder()
       Optional. The specification for fault injection introduced into traffic
       to test the resiliency of clients to destination service failure. As part
       of fault injection, when clients send requests to a destination, delays
       can be introduced on a percentage of requests before sending those
       requests to the destination service. Similarly requests from clients can
       be aborted by for a percentage of requests.
      
       timeout and retry_policy will be ignored by clients that are configured
       with a fault_injection_policy
       
      .google.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy fault_injection_policy = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getFaultInjectionPolicyOrBuilder

      public GrpcRoute.FaultInjectionPolicyOrBuilder getFaultInjectionPolicyOrBuilder()
       Optional. The specification for fault injection introduced into traffic
       to test the resiliency of clients to destination service failure. As part
       of fault injection, when clients send requests to a destination, delays
       can be introduced on a percentage of requests before sending those
       requests to the destination service. Similarly requests from clients can
       be aborted by for a percentage of requests.
      
       timeout and retry_policy will be ignored by clients that are configured
       with a fault_injection_policy
       
      .google.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy fault_injection_policy = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFaultInjectionPolicyOrBuilder in interface GrpcRoute.RouteActionOrBuilder
    • hasTimeout

      public boolean hasTimeout()
       Optional. Specifies the timeout for selected route. Timeout is computed
       from the time the request has been fully processed (i.e. end of stream)
       up until the response has been completely processed. Timeout includes all
       retries.
       
      .google.protobuf.Duration timeout = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasTimeout in interface GrpcRoute.RouteActionOrBuilder
      Returns:
      Whether the timeout field is set.
    • getTimeout

      public com.google.protobuf.Duration getTimeout()
       Optional. Specifies the timeout for selected route. Timeout is computed
       from the time the request has been fully processed (i.e. end of stream)
       up until the response has been completely processed. Timeout includes all
       retries.
       
      .google.protobuf.Duration timeout = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTimeout in interface GrpcRoute.RouteActionOrBuilder
      Returns:
      The timeout.
    • setTimeout

      public GrpcRoute.RouteAction.Builder setTimeout(com.google.protobuf.Duration value)
       Optional. Specifies the timeout for selected route. Timeout is computed
       from the time the request has been fully processed (i.e. end of stream)
       up until the response has been completely processed. Timeout includes all
       retries.
       
      .google.protobuf.Duration timeout = 7 [(.google.api.field_behavior) = OPTIONAL];
    • setTimeout

      public GrpcRoute.RouteAction.Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue)
       Optional. Specifies the timeout for selected route. Timeout is computed
       from the time the request has been fully processed (i.e. end of stream)
       up until the response has been completely processed. Timeout includes all
       retries.
       
      .google.protobuf.Duration timeout = 7 [(.google.api.field_behavior) = OPTIONAL];
    • mergeTimeout

      public GrpcRoute.RouteAction.Builder mergeTimeout(com.google.protobuf.Duration value)
       Optional. Specifies the timeout for selected route. Timeout is computed
       from the time the request has been fully processed (i.e. end of stream)
       up until the response has been completely processed. Timeout includes all
       retries.
       
      .google.protobuf.Duration timeout = 7 [(.google.api.field_behavior) = OPTIONAL];
    • clearTimeout

      public GrpcRoute.RouteAction.Builder clearTimeout()
       Optional. Specifies the timeout for selected route. Timeout is computed
       from the time the request has been fully processed (i.e. end of stream)
       up until the response has been completely processed. Timeout includes all
       retries.
       
      .google.protobuf.Duration timeout = 7 [(.google.api.field_behavior) = OPTIONAL];
    • getTimeoutBuilder

      public com.google.protobuf.Duration.Builder getTimeoutBuilder()
       Optional. Specifies the timeout for selected route. Timeout is computed
       from the time the request has been fully processed (i.e. end of stream)
       up until the response has been completely processed. Timeout includes all
       retries.
       
      .google.protobuf.Duration timeout = 7 [(.google.api.field_behavior) = OPTIONAL];
    • getTimeoutOrBuilder

      public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder()
       Optional. Specifies the timeout for selected route. Timeout is computed
       from the time the request has been fully processed (i.e. end of stream)
       up until the response has been completely processed. Timeout includes all
       retries.
       
      .google.protobuf.Duration timeout = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTimeoutOrBuilder in interface GrpcRoute.RouteActionOrBuilder
    • hasRetryPolicy

      public boolean hasRetryPolicy()
       Optional. Specifies the retry policy associated with this route.
       
      .google.cloud.networkservices.v1.GrpcRoute.RetryPolicy retry_policy = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasRetryPolicy in interface GrpcRoute.RouteActionOrBuilder
      Returns:
      Whether the retryPolicy field is set.
    • getRetryPolicy

      public GrpcRoute.RetryPolicy getRetryPolicy()
       Optional. Specifies the retry policy associated with this route.
       
      .google.cloud.networkservices.v1.GrpcRoute.RetryPolicy retry_policy = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRetryPolicy in interface GrpcRoute.RouteActionOrBuilder
      Returns:
      The retryPolicy.
    • setRetryPolicy

       Optional. Specifies the retry policy associated with this route.
       
      .google.cloud.networkservices.v1.GrpcRoute.RetryPolicy retry_policy = 8 [(.google.api.field_behavior) = OPTIONAL];
    • setRetryPolicy

      public GrpcRoute.RouteAction.Builder setRetryPolicy(GrpcRoute.RetryPolicy.Builder builderForValue)
       Optional. Specifies the retry policy associated with this route.
       
      .google.cloud.networkservices.v1.GrpcRoute.RetryPolicy retry_policy = 8 [(.google.api.field_behavior) = OPTIONAL];
    • mergeRetryPolicy

      public GrpcRoute.RouteAction.Builder mergeRetryPolicy(GrpcRoute.RetryPolicy value)
       Optional. Specifies the retry policy associated with this route.
       
      .google.cloud.networkservices.v1.GrpcRoute.RetryPolicy retry_policy = 8 [(.google.api.field_behavior) = OPTIONAL];
    • clearRetryPolicy

      public GrpcRoute.RouteAction.Builder clearRetryPolicy()
       Optional. Specifies the retry policy associated with this route.
       
      .google.cloud.networkservices.v1.GrpcRoute.RetryPolicy retry_policy = 8 [(.google.api.field_behavior) = OPTIONAL];
    • getRetryPolicyBuilder

      public GrpcRoute.RetryPolicy.Builder getRetryPolicyBuilder()
       Optional. Specifies the retry policy associated with this route.
       
      .google.cloud.networkservices.v1.GrpcRoute.RetryPolicy retry_policy = 8 [(.google.api.field_behavior) = OPTIONAL];
    • getRetryPolicyOrBuilder

      public GrpcRoute.RetryPolicyOrBuilder getRetryPolicyOrBuilder()
       Optional. Specifies the retry policy associated with this route.
       
      .google.cloud.networkservices.v1.GrpcRoute.RetryPolicy retry_policy = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRetryPolicyOrBuilder in interface GrpcRoute.RouteActionOrBuilder
    • hasStatefulSessionAffinity

      public boolean hasStatefulSessionAffinity()
       Optional. Specifies cookie-based stateful session affinity.
       
      .google.cloud.networkservices.v1.GrpcRoute.StatefulSessionAffinityPolicy stateful_session_affinity = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasStatefulSessionAffinity in interface GrpcRoute.RouteActionOrBuilder
      Returns:
      Whether the statefulSessionAffinity field is set.
    • getStatefulSessionAffinity

      public GrpcRoute.StatefulSessionAffinityPolicy getStatefulSessionAffinity()
       Optional. Specifies cookie-based stateful session affinity.
       
      .google.cloud.networkservices.v1.GrpcRoute.StatefulSessionAffinityPolicy stateful_session_affinity = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStatefulSessionAffinity in interface GrpcRoute.RouteActionOrBuilder
      Returns:
      The statefulSessionAffinity.
    • setStatefulSessionAffinity

       Optional. Specifies cookie-based stateful session affinity.
       
      .google.cloud.networkservices.v1.GrpcRoute.StatefulSessionAffinityPolicy stateful_session_affinity = 11 [(.google.api.field_behavior) = OPTIONAL];
    • setStatefulSessionAffinity

      public GrpcRoute.RouteAction.Builder setStatefulSessionAffinity(GrpcRoute.StatefulSessionAffinityPolicy.Builder builderForValue)
       Optional. Specifies cookie-based stateful session affinity.
       
      .google.cloud.networkservices.v1.GrpcRoute.StatefulSessionAffinityPolicy stateful_session_affinity = 11 [(.google.api.field_behavior) = OPTIONAL];
    • mergeStatefulSessionAffinity

      public GrpcRoute.RouteAction.Builder mergeStatefulSessionAffinity(GrpcRoute.StatefulSessionAffinityPolicy value)
       Optional. Specifies cookie-based stateful session affinity.
       
      .google.cloud.networkservices.v1.GrpcRoute.StatefulSessionAffinityPolicy stateful_session_affinity = 11 [(.google.api.field_behavior) = OPTIONAL];
    • clearStatefulSessionAffinity

      public GrpcRoute.RouteAction.Builder clearStatefulSessionAffinity()
       Optional. Specifies cookie-based stateful session affinity.
       
      .google.cloud.networkservices.v1.GrpcRoute.StatefulSessionAffinityPolicy stateful_session_affinity = 11 [(.google.api.field_behavior) = OPTIONAL];
    • getStatefulSessionAffinityBuilder

      public GrpcRoute.StatefulSessionAffinityPolicy.Builder getStatefulSessionAffinityBuilder()
       Optional. Specifies cookie-based stateful session affinity.
       
      .google.cloud.networkservices.v1.GrpcRoute.StatefulSessionAffinityPolicy stateful_session_affinity = 11 [(.google.api.field_behavior) = OPTIONAL];
    • getStatefulSessionAffinityOrBuilder

      public GrpcRoute.StatefulSessionAffinityPolicyOrBuilder getStatefulSessionAffinityOrBuilder()
       Optional. Specifies cookie-based stateful session affinity.
       
      .google.cloud.networkservices.v1.GrpcRoute.StatefulSessionAffinityPolicy stateful_session_affinity = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStatefulSessionAffinityOrBuilder in interface GrpcRoute.RouteActionOrBuilder
    • hasIdleTimeout

      public boolean hasIdleTimeout()
       Optional. Specifies the idle timeout for the selected route. The idle
       timeout is defined as the period in which there are no bytes sent or
       received on either the upstream or downstream connection. If not set, the
       default idle timeout is 1 hour. If set to 0s, the timeout will be
       disabled.
       
      .google.protobuf.Duration idle_timeout = 12 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasIdleTimeout in interface GrpcRoute.RouteActionOrBuilder
      Returns:
      Whether the idleTimeout field is set.
    • getIdleTimeout

      public com.google.protobuf.Duration getIdleTimeout()
       Optional. Specifies the idle timeout for the selected route. The idle
       timeout is defined as the period in which there are no bytes sent or
       received on either the upstream or downstream connection. If not set, the
       default idle timeout is 1 hour. If set to 0s, the timeout will be
       disabled.
       
      .google.protobuf.Duration idle_timeout = 12 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIdleTimeout in interface GrpcRoute.RouteActionOrBuilder
      Returns:
      The idleTimeout.
    • setIdleTimeout

      public GrpcRoute.RouteAction.Builder setIdleTimeout(com.google.protobuf.Duration value)
       Optional. Specifies the idle timeout for the selected route. The idle
       timeout is defined as the period in which there are no bytes sent or
       received on either the upstream or downstream connection. If not set, the
       default idle timeout is 1 hour. If set to 0s, the timeout will be
       disabled.
       
      .google.protobuf.Duration idle_timeout = 12 [(.google.api.field_behavior) = OPTIONAL];
    • setIdleTimeout

      public GrpcRoute.RouteAction.Builder setIdleTimeout(com.google.protobuf.Duration.Builder builderForValue)
       Optional. Specifies the idle timeout for the selected route. The idle
       timeout is defined as the period in which there are no bytes sent or
       received on either the upstream or downstream connection. If not set, the
       default idle timeout is 1 hour. If set to 0s, the timeout will be
       disabled.
       
      .google.protobuf.Duration idle_timeout = 12 [(.google.api.field_behavior) = OPTIONAL];
    • mergeIdleTimeout

      public GrpcRoute.RouteAction.Builder mergeIdleTimeout(com.google.protobuf.Duration value)
       Optional. Specifies the idle timeout for the selected route. The idle
       timeout is defined as the period in which there are no bytes sent or
       received on either the upstream or downstream connection. If not set, the
       default idle timeout is 1 hour. If set to 0s, the timeout will be
       disabled.
       
      .google.protobuf.Duration idle_timeout = 12 [(.google.api.field_behavior) = OPTIONAL];
    • clearIdleTimeout

      public GrpcRoute.RouteAction.Builder clearIdleTimeout()
       Optional. Specifies the idle timeout for the selected route. The idle
       timeout is defined as the period in which there are no bytes sent or
       received on either the upstream or downstream connection. If not set, the
       default idle timeout is 1 hour. If set to 0s, the timeout will be
       disabled.
       
      .google.protobuf.Duration idle_timeout = 12 [(.google.api.field_behavior) = OPTIONAL];
    • getIdleTimeoutBuilder

      public com.google.protobuf.Duration.Builder getIdleTimeoutBuilder()
       Optional. Specifies the idle timeout for the selected route. The idle
       timeout is defined as the period in which there are no bytes sent or
       received on either the upstream or downstream connection. If not set, the
       default idle timeout is 1 hour. If set to 0s, the timeout will be
       disabled.
       
      .google.protobuf.Duration idle_timeout = 12 [(.google.api.field_behavior) = OPTIONAL];
    • getIdleTimeoutOrBuilder

      public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder()
       Optional. Specifies the idle timeout for the selected route. The idle
       timeout is defined as the period in which there are no bytes sent or
       received on either the upstream or downstream connection. If not set, the
       default idle timeout is 1 hour. If set to 0s, the timeout will be
       disabled.
       
      .google.protobuf.Duration idle_timeout = 12 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIdleTimeoutOrBuilder in interface GrpcRoute.RouteActionOrBuilder