Interface HttpRoute.RouteActionOrBuilder

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

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

    • getDestinationsList

      List<HttpRoute.Destination> getDestinationsList()
       The destination to which traffic should be forwarded.
       
      repeated .google.cloud.networkservices.v1.HttpRoute.Destination destinations = 1;
    • getDestinations

      HttpRoute.Destination getDestinations(int index)
       The destination to which traffic should be forwarded.
       
      repeated .google.cloud.networkservices.v1.HttpRoute.Destination destinations = 1;
    • getDestinationsCount

      int getDestinationsCount()
       The destination to which traffic should be forwarded.
       
      repeated .google.cloud.networkservices.v1.HttpRoute.Destination destinations = 1;
    • getDestinationsOrBuilderList

      List<? extends HttpRoute.DestinationOrBuilder> getDestinationsOrBuilderList()
       The destination to which traffic should be forwarded.
       
      repeated .google.cloud.networkservices.v1.HttpRoute.Destination destinations = 1;
    • getDestinationsOrBuilder

      HttpRoute.DestinationOrBuilder getDestinationsOrBuilder(int index)
       The destination to which traffic should be forwarded.
       
      repeated .google.cloud.networkservices.v1.HttpRoute.Destination destinations = 1;
    • hasRedirect

      boolean hasRedirect()
       If set, the request is directed as configured by this field.
       
      .google.cloud.networkservices.v1.HttpRoute.Redirect redirect = 2;
      Returns:
      Whether the redirect field is set.
    • getRedirect

      HttpRoute.Redirect getRedirect()
       If set, the request is directed as configured by this field.
       
      .google.cloud.networkservices.v1.HttpRoute.Redirect redirect = 2;
      Returns:
      The redirect.
    • getRedirectOrBuilder

      HttpRoute.RedirectOrBuilder getRedirectOrBuilder()
       If set, the request is directed as configured by this field.
       
      .google.cloud.networkservices.v1.HttpRoute.Redirect redirect = 2;
    • hasFaultInjectionPolicy

      boolean hasFaultInjectionPolicy()
       The specification for fault injection introduced into traffic to test the
       resiliency of clients to backend service failure. As part of fault
       injection, when clients send requests to a backend service, delays can be
       introduced  on a percentage of requests before sending those requests to
       the backend service. Similarly requests from clients can be aborted 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.HttpRoute.FaultInjectionPolicy fault_injection_policy = 4;
      Returns:
      Whether the faultInjectionPolicy field is set.
    • getFaultInjectionPolicy

      HttpRoute.FaultInjectionPolicy getFaultInjectionPolicy()
       The specification for fault injection introduced into traffic to test the
       resiliency of clients to backend service failure. As part of fault
       injection, when clients send requests to a backend service, delays can be
       introduced  on a percentage of requests before sending those requests to
       the backend service. Similarly requests from clients can be aborted 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.HttpRoute.FaultInjectionPolicy fault_injection_policy = 4;
      Returns:
      The faultInjectionPolicy.
    • getFaultInjectionPolicyOrBuilder

      HttpRoute.FaultInjectionPolicyOrBuilder getFaultInjectionPolicyOrBuilder()
       The specification for fault injection introduced into traffic to test the
       resiliency of clients to backend service failure. As part of fault
       injection, when clients send requests to a backend service, delays can be
       introduced  on a percentage of requests before sending those requests to
       the backend service. Similarly requests from clients can be aborted 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.HttpRoute.FaultInjectionPolicy fault_injection_policy = 4;
    • hasRequestHeaderModifier

      boolean hasRequestHeaderModifier()
       The specification for modifying the headers of a matching request prior
       to delivery of the request to the destination. If HeaderModifiers are set
       on both the Destination and the RouteAction, they will be merged.
       Conflicts between the two will not be resolved on the configuration.
       
      .google.cloud.networkservices.v1.HttpRoute.HeaderModifier request_header_modifier = 5;
      Returns:
      Whether the requestHeaderModifier field is set.
    • getRequestHeaderModifier

      HttpRoute.HeaderModifier getRequestHeaderModifier()
       The specification for modifying the headers of a matching request prior
       to delivery of the request to the destination. If HeaderModifiers are set
       on both the Destination and the RouteAction, they will be merged.
       Conflicts between the two will not be resolved on the configuration.
       
      .google.cloud.networkservices.v1.HttpRoute.HeaderModifier request_header_modifier = 5;
      Returns:
      The requestHeaderModifier.
    • getRequestHeaderModifierOrBuilder

      HttpRoute.HeaderModifierOrBuilder getRequestHeaderModifierOrBuilder()
       The specification for modifying the headers of a matching request prior
       to delivery of the request to the destination. If HeaderModifiers are set
       on both the Destination and the RouteAction, they will be merged.
       Conflicts between the two will not be resolved on the configuration.
       
      .google.cloud.networkservices.v1.HttpRoute.HeaderModifier request_header_modifier = 5;
    • hasResponseHeaderModifier

      boolean hasResponseHeaderModifier()
       The specification for modifying the headers of a response prior to
       sending the response back to the client. If HeaderModifiers are set
       on both the Destination and the RouteAction, they will be merged.
       Conflicts between the two will not be resolved on the configuration.
       
      .google.cloud.networkservices.v1.HttpRoute.HeaderModifier response_header_modifier = 6;
      Returns:
      Whether the responseHeaderModifier field is set.
    • getResponseHeaderModifier

      HttpRoute.HeaderModifier getResponseHeaderModifier()
       The specification for modifying the headers of a response prior to
       sending the response back to the client. If HeaderModifiers are set
       on both the Destination and the RouteAction, they will be merged.
       Conflicts between the two will not be resolved on the configuration.
       
      .google.cloud.networkservices.v1.HttpRoute.HeaderModifier response_header_modifier = 6;
      Returns:
      The responseHeaderModifier.
    • getResponseHeaderModifierOrBuilder

      HttpRoute.HeaderModifierOrBuilder getResponseHeaderModifierOrBuilder()
       The specification for modifying the headers of a response prior to
       sending the response back to the client. If HeaderModifiers are set
       on both the Destination and the RouteAction, they will be merged.
       Conflicts between the two will not be resolved on the configuration.
       
      .google.cloud.networkservices.v1.HttpRoute.HeaderModifier response_header_modifier = 6;
    • hasUrlRewrite

      boolean hasUrlRewrite()
       The specification for rewrite URL before forwarding requests to the
       destination.
       
      .google.cloud.networkservices.v1.HttpRoute.URLRewrite url_rewrite = 7;
      Returns:
      Whether the urlRewrite field is set.
    • getUrlRewrite

      HttpRoute.URLRewrite getUrlRewrite()
       The specification for rewrite URL before forwarding requests to the
       destination.
       
      .google.cloud.networkservices.v1.HttpRoute.URLRewrite url_rewrite = 7;
      Returns:
      The urlRewrite.
    • getUrlRewriteOrBuilder

      HttpRoute.URLRewriteOrBuilder getUrlRewriteOrBuilder()
       The specification for rewrite URL before forwarding requests to the
       destination.
       
      .google.cloud.networkservices.v1.HttpRoute.URLRewrite url_rewrite = 7;
    • hasTimeout

      boolean hasTimeout()
       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 = 8;
      Returns:
      Whether the timeout field is set.
    • getTimeout

      com.google.protobuf.Duration getTimeout()
       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 = 8;
      Returns:
      The timeout.
    • getTimeoutOrBuilder

      com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder()
       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 = 8;
    • hasRetryPolicy

      boolean hasRetryPolicy()
       Specifies the retry policy associated with this route.
       
      .google.cloud.networkservices.v1.HttpRoute.RetryPolicy retry_policy = 9;
      Returns:
      Whether the retryPolicy field is set.
    • getRetryPolicy

      HttpRoute.RetryPolicy getRetryPolicy()
       Specifies the retry policy associated with this route.
       
      .google.cloud.networkservices.v1.HttpRoute.RetryPolicy retry_policy = 9;
      Returns:
      The retryPolicy.
    • getRetryPolicyOrBuilder

      HttpRoute.RetryPolicyOrBuilder getRetryPolicyOrBuilder()
       Specifies the retry policy associated with this route.
       
      .google.cloud.networkservices.v1.HttpRoute.RetryPolicy retry_policy = 9;
    • hasRequestMirrorPolicy

      boolean hasRequestMirrorPolicy()
       Specifies the policy on how requests intended for the routes destination
       are shadowed to a separate mirrored destination. Proxy will not wait for
       the shadow destination to respond before returning the response. Prior to
       sending traffic to the shadow service, the host/authority header is
       suffixed with -shadow.
       
      .google.cloud.networkservices.v1.HttpRoute.RequestMirrorPolicy request_mirror_policy = 10;
      Returns:
      Whether the requestMirrorPolicy field is set.
    • getRequestMirrorPolicy

      HttpRoute.RequestMirrorPolicy getRequestMirrorPolicy()
       Specifies the policy on how requests intended for the routes destination
       are shadowed to a separate mirrored destination. Proxy will not wait for
       the shadow destination to respond before returning the response. Prior to
       sending traffic to the shadow service, the host/authority header is
       suffixed with -shadow.
       
      .google.cloud.networkservices.v1.HttpRoute.RequestMirrorPolicy request_mirror_policy = 10;
      Returns:
      The requestMirrorPolicy.
    • getRequestMirrorPolicyOrBuilder

      HttpRoute.RequestMirrorPolicyOrBuilder getRequestMirrorPolicyOrBuilder()
       Specifies the policy on how requests intended for the routes destination
       are shadowed to a separate mirrored destination. Proxy will not wait for
       the shadow destination to respond before returning the response. Prior to
       sending traffic to the shadow service, the host/authority header is
       suffixed with -shadow.
       
      .google.cloud.networkservices.v1.HttpRoute.RequestMirrorPolicy request_mirror_policy = 10;
    • hasCorsPolicy

      boolean hasCorsPolicy()
       The specification for allowing client side cross-origin requests.
       
      .google.cloud.networkservices.v1.HttpRoute.CorsPolicy cors_policy = 11;
      Returns:
      Whether the corsPolicy field is set.
    • getCorsPolicy

      HttpRoute.CorsPolicy getCorsPolicy()
       The specification for allowing client side cross-origin requests.
       
      .google.cloud.networkservices.v1.HttpRoute.CorsPolicy cors_policy = 11;
      Returns:
      The corsPolicy.
    • getCorsPolicyOrBuilder

      HttpRoute.CorsPolicyOrBuilder getCorsPolicyOrBuilder()
       The specification for allowing client side cross-origin requests.
       
      .google.cloud.networkservices.v1.HttpRoute.CorsPolicy cors_policy = 11;
    • hasStatefulSessionAffinity

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

      HttpRoute.StatefulSessionAffinityPolicy getStatefulSessionAffinity()
       Optional. Specifies cookie-based stateful session affinity.
       
      .google.cloud.networkservices.v1.HttpRoute.StatefulSessionAffinityPolicy stateful_session_affinity = 12 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The statefulSessionAffinity.
    • getStatefulSessionAffinityOrBuilder

      HttpRoute.StatefulSessionAffinityPolicyOrBuilder getStatefulSessionAffinityOrBuilder()
       Optional. Specifies cookie-based stateful session affinity.
       
      .google.cloud.networkservices.v1.HttpRoute.StatefulSessionAffinityPolicy stateful_session_affinity = 12 [(.google.api.field_behavior) = OPTIONAL];
    • hasDirectResponse

      boolean hasDirectResponse()
       Optional. Static HTTP Response object to be returned regardless of the
       request.
       
      .google.cloud.networkservices.v1.HttpRoute.HttpDirectResponse direct_response = 13 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      Whether the directResponse field is set.
    • getDirectResponse

      HttpRoute.HttpDirectResponse getDirectResponse()
       Optional. Static HTTP Response object to be returned regardless of the
       request.
       
      .google.cloud.networkservices.v1.HttpRoute.HttpDirectResponse direct_response = 13 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The directResponse.
    • getDirectResponseOrBuilder

      HttpRoute.HttpDirectResponseOrBuilder getDirectResponseOrBuilder()
       Optional. Static HTTP Response object to be returned regardless of the
       request.
       
      .google.cloud.networkservices.v1.HttpRoute.HttpDirectResponse direct_response = 13 [(.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 = 14 [(.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 = 14 [(.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 = 14 [(.google.api.field_behavior) = OPTIONAL];