Interface GrpcRoute.RouteActionOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
GrpcRoute.RouteAction, GrpcRoute.RouteAction.Builder
Enclosing class:
GrpcRoute

public static interface GrpcRoute.RouteActionOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getDestinationsList

      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];
    • getDestinations

      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];
    • getDestinationsCount

      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];
    • getDestinationsOrBuilderList

      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];
    • getDestinationsOrBuilder

      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];
    • hasFaultInjectionPolicy

      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];
      Returns:
      Whether the faultInjectionPolicy field is set.
    • getFaultInjectionPolicy

      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];
      Returns:
      The faultInjectionPolicy.
    • getFaultInjectionPolicyOrBuilder

      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];
    • hasTimeout

      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];
      Returns:
      Whether the timeout field is set.
    • getTimeout

      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];
      Returns:
      The timeout.
    • getTimeoutOrBuilder

      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];
    • hasRetryPolicy

      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];
      Returns:
      Whether the retryPolicy field is set.
    • getRetryPolicy

      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];
      Returns:
      The retryPolicy.
    • getRetryPolicyOrBuilder

      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];
    • hasStatefulSessionAffinity

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

      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];
      Returns:
      The statefulSessionAffinity.
    • getStatefulSessionAffinityOrBuilder

      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];
    • hasIdleTimeout

      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];
      Returns:
      Whether the idleTimeout field is set.
    • getIdleTimeout

      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];
      Returns:
      The idleTimeout.
    • getIdleTimeoutOrBuilder

      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];