public static interface HttpRoute.RouteActionOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
getCorsPolicy()
public abstract HttpRoute.CorsPolicy getCorsPolicy()
The specification for allowing client side cross-origin requests.
.google.cloud.networkservices.v1.HttpRoute.CorsPolicy cors_policy = 11;
Returns | |
---|---|
Type | Description |
HttpRoute.CorsPolicy |
The corsPolicy. |
getCorsPolicyOrBuilder()
public abstract HttpRoute.CorsPolicyOrBuilder getCorsPolicyOrBuilder()
The specification for allowing client side cross-origin requests.
.google.cloud.networkservices.v1.HttpRoute.CorsPolicy cors_policy = 11;
Returns | |
---|---|
Type | Description |
HttpRoute.CorsPolicyOrBuilder |
getDestinations(int index)
public abstract HttpRoute.Destination getDestinations(int index)
The destination to which traffic should be forwarded.
repeated .google.cloud.networkservices.v1.HttpRoute.Destination destinations = 1;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
HttpRoute.Destination |
getDestinationsCount()
public abstract int getDestinationsCount()
The destination to which traffic should be forwarded.
repeated .google.cloud.networkservices.v1.HttpRoute.Destination destinations = 1;
Returns | |
---|---|
Type | Description |
int |
getDestinationsList()
public abstract List<HttpRoute.Destination> getDestinationsList()
The destination to which traffic should be forwarded.
repeated .google.cloud.networkservices.v1.HttpRoute.Destination destinations = 1;
Returns | |
---|---|
Type | Description |
List<Destination> |
getDestinationsOrBuilder(int index)
public abstract HttpRoute.DestinationOrBuilder getDestinationsOrBuilder(int index)
The destination to which traffic should be forwarded.
repeated .google.cloud.networkservices.v1.HttpRoute.Destination destinations = 1;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
HttpRoute.DestinationOrBuilder |
getDestinationsOrBuilderList()
public abstract List<? extends HttpRoute.DestinationOrBuilder> getDestinationsOrBuilderList()
The destination to which traffic should be forwarded.
repeated .google.cloud.networkservices.v1.HttpRoute.Destination destinations = 1;
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.networkservices.v1.HttpRoute.DestinationOrBuilder> |
getFaultInjectionPolicy()
public abstract 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 | |
---|---|
Type | Description |
HttpRoute.FaultInjectionPolicy |
The faultInjectionPolicy. |
getFaultInjectionPolicyOrBuilder()
public abstract 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;
Returns | |
---|---|
Type | Description |
HttpRoute.FaultInjectionPolicyOrBuilder |
getRedirect()
public abstract HttpRoute.Redirect getRedirect()
If set, the request is directed as configured by this field.
.google.cloud.networkservices.v1.HttpRoute.Redirect redirect = 2;
Returns | |
---|---|
Type | Description |
HttpRoute.Redirect |
The redirect. |
getRedirectOrBuilder()
public abstract HttpRoute.RedirectOrBuilder getRedirectOrBuilder()
If set, the request is directed as configured by this field.
.google.cloud.networkservices.v1.HttpRoute.Redirect redirect = 2;
Returns | |
---|---|
Type | Description |
HttpRoute.RedirectOrBuilder |
getRequestHeaderModifier()
public abstract 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 | |
---|---|
Type | Description |
HttpRoute.HeaderModifier |
The requestHeaderModifier. |
getRequestHeaderModifierOrBuilder()
public abstract 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;
Returns | |
---|---|
Type | Description |
HttpRoute.HeaderModifierOrBuilder |
getRequestMirrorPolicy()
public abstract 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 | |
---|---|
Type | Description |
HttpRoute.RequestMirrorPolicy |
The requestMirrorPolicy. |
getRequestMirrorPolicyOrBuilder()
public abstract 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;
Returns | |
---|---|
Type | Description |
HttpRoute.RequestMirrorPolicyOrBuilder |
getResponseHeaderModifier()
public abstract 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 | |
---|---|
Type | Description |
HttpRoute.HeaderModifier |
The responseHeaderModifier. |
getResponseHeaderModifierOrBuilder()
public abstract 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;
Returns | |
---|---|
Type | Description |
HttpRoute.HeaderModifierOrBuilder |
getRetryPolicy()
public abstract HttpRoute.RetryPolicy getRetryPolicy()
Specifies the retry policy associated with this route.
.google.cloud.networkservices.v1.HttpRoute.RetryPolicy retry_policy = 9;
Returns | |
---|---|
Type | Description |
HttpRoute.RetryPolicy |
The retryPolicy. |
getRetryPolicyOrBuilder()
public abstract HttpRoute.RetryPolicyOrBuilder getRetryPolicyOrBuilder()
Specifies the retry policy associated with this route.
.google.cloud.networkservices.v1.HttpRoute.RetryPolicy retry_policy = 9;
Returns | |
---|---|
Type | Description |
HttpRoute.RetryPolicyOrBuilder |
getTimeout()
public abstract 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 | |
---|---|
Type | Description |
Duration |
The timeout. |
getTimeoutOrBuilder()
public abstract 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;
Returns | |
---|---|
Type | Description |
DurationOrBuilder |
getUrlRewrite()
public abstract HttpRoute.URLRewrite getUrlRewrite()
The specification for rewrite URL before forwarding requests to the destination.
.google.cloud.networkservices.v1.HttpRoute.URLRewrite url_rewrite = 7;
Returns | |
---|---|
Type | Description |
HttpRoute.URLRewrite |
The urlRewrite. |
getUrlRewriteOrBuilder()
public abstract HttpRoute.URLRewriteOrBuilder getUrlRewriteOrBuilder()
The specification for rewrite URL before forwarding requests to the destination.
.google.cloud.networkservices.v1.HttpRoute.URLRewrite url_rewrite = 7;
Returns | |
---|---|
Type | Description |
HttpRoute.URLRewriteOrBuilder |
hasCorsPolicy()
public abstract boolean hasCorsPolicy()
The specification for allowing client side cross-origin requests.
.google.cloud.networkservices.v1.HttpRoute.CorsPolicy cors_policy = 11;
Returns | |
---|---|
Type | Description |
boolean |
Whether the corsPolicy field is set. |
hasFaultInjectionPolicy()
public abstract 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 | |
---|---|
Type | Description |
boolean |
Whether the faultInjectionPolicy field is set. |
hasRedirect()
public abstract boolean hasRedirect()
If set, the request is directed as configured by this field.
.google.cloud.networkservices.v1.HttpRoute.Redirect redirect = 2;
Returns | |
---|---|
Type | Description |
boolean |
Whether the redirect field is set. |
hasRequestHeaderModifier()
public abstract 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 | |
---|---|
Type | Description |
boolean |
Whether the requestHeaderModifier field is set. |
hasRequestMirrorPolicy()
public abstract 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 | |
---|---|
Type | Description |
boolean |
Whether the requestMirrorPolicy field is set. |
hasResponseHeaderModifier()
public abstract 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 | |
---|---|
Type | Description |
boolean |
Whether the responseHeaderModifier field is set. |
hasRetryPolicy()
public abstract boolean hasRetryPolicy()
Specifies the retry policy associated with this route.
.google.cloud.networkservices.v1.HttpRoute.RetryPolicy retry_policy = 9;
Returns | |
---|---|
Type | Description |
boolean |
Whether the retryPolicy field is set. |
hasTimeout()
public abstract 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 | |
---|---|
Type | Description |
boolean |
Whether the timeout field is set. |
hasUrlRewrite()
public abstract boolean hasUrlRewrite()
The specification for rewrite URL before forwarding requests to the destination.
.google.cloud.networkservices.v1.HttpRoute.URLRewrite url_rewrite = 7;
Returns | |
---|---|
Type | Description |
boolean |
Whether the urlRewrite field is set. |