Class HttpRoute.RouteAction.Builder (0.3.0)

public static final class HttpRoute.RouteAction.Builder extends GeneratedMessageV3.Builder<HttpRoute.RouteAction.Builder> implements HttpRoute.RouteActionOrBuilder

The specifications for routing traffic and applying associated policies.

Protobuf type google.cloud.networkservices.v1.HttpRoute.RouteAction

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllDestinations(Iterable<? extends HttpRoute.Destination> values)

public HttpRoute.RouteAction.Builder addAllDestinations(Iterable<? extends HttpRoute.Destination> values)

The destination to which traffic should be forwarded.

repeated .google.cloud.networkservices.v1.HttpRoute.Destination destinations = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.networkservices.v1.HttpRoute.Destination>
Returns
Type Description
HttpRoute.RouteAction.Builder

addDestinations(HttpRoute.Destination value)

public HttpRoute.RouteAction.Builder addDestinations(HttpRoute.Destination value)

The destination to which traffic should be forwarded.

repeated .google.cloud.networkservices.v1.HttpRoute.Destination destinations = 1;

Parameter
Name Description
value HttpRoute.Destination
Returns
Type Description
HttpRoute.RouteAction.Builder

addDestinations(HttpRoute.Destination.Builder builderForValue)

public HttpRoute.RouteAction.Builder addDestinations(HttpRoute.Destination.Builder builderForValue)

The destination to which traffic should be forwarded.

repeated .google.cloud.networkservices.v1.HttpRoute.Destination destinations = 1;

Parameter
Name Description
builderForValue HttpRoute.Destination.Builder
Returns
Type Description
HttpRoute.RouteAction.Builder

addDestinations(int index, HttpRoute.Destination value)

public HttpRoute.RouteAction.Builder addDestinations(int index, HttpRoute.Destination value)

The destination to which traffic should be forwarded.

repeated .google.cloud.networkservices.v1.HttpRoute.Destination destinations = 1;

Parameters
Name Description
index int
value HttpRoute.Destination
Returns
Type Description
HttpRoute.RouteAction.Builder

addDestinations(int index, HttpRoute.Destination.Builder builderForValue)

public HttpRoute.RouteAction.Builder addDestinations(int index, HttpRoute.Destination.Builder builderForValue)

The destination to which traffic should be forwarded.

repeated .google.cloud.networkservices.v1.HttpRoute.Destination destinations = 1;

Parameters
Name Description
index int
builderForValue HttpRoute.Destination.Builder
Returns
Type Description
HttpRoute.RouteAction.Builder

addDestinationsBuilder()

public HttpRoute.Destination.Builder addDestinationsBuilder()

The destination to which traffic should be forwarded.

repeated .google.cloud.networkservices.v1.HttpRoute.Destination destinations = 1;

Returns
Type Description
HttpRoute.Destination.Builder

addDestinationsBuilder(int index)

public HttpRoute.Destination.Builder addDestinationsBuilder(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.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public HttpRoute.RouteAction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
HttpRoute.RouteAction.Builder
Overrides

build()

public HttpRoute.RouteAction build()
Returns
Type Description
HttpRoute.RouteAction

buildPartial()

public HttpRoute.RouteAction buildPartial()
Returns
Type Description
HttpRoute.RouteAction

clear()

public HttpRoute.RouteAction.Builder clear()
Returns
Type Description
HttpRoute.RouteAction.Builder
Overrides

clearCorsPolicy()

public HttpRoute.RouteAction.Builder clearCorsPolicy()

The specification for allowing client side cross-origin requests.

.google.cloud.networkservices.v1.HttpRoute.CorsPolicy cors_policy = 11;

Returns
Type Description
HttpRoute.RouteAction.Builder

clearDestinations()

public HttpRoute.RouteAction.Builder clearDestinations()

The destination to which traffic should be forwarded.

repeated .google.cloud.networkservices.v1.HttpRoute.Destination destinations = 1;

Returns
Type Description
HttpRoute.RouteAction.Builder

clearFaultInjectionPolicy()

public HttpRoute.RouteAction.Builder clearFaultInjectionPolicy()

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.RouteAction.Builder

clearField(Descriptors.FieldDescriptor field)

public HttpRoute.RouteAction.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
HttpRoute.RouteAction.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public HttpRoute.RouteAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
HttpRoute.RouteAction.Builder
Overrides

clearRedirect()

public HttpRoute.RouteAction.Builder clearRedirect()

If set, the request is directed as configured by this field.

.google.cloud.networkservices.v1.HttpRoute.Redirect redirect = 2;

Returns
Type Description
HttpRoute.RouteAction.Builder

clearRequestHeaderModifier()

public HttpRoute.RouteAction.Builder clearRequestHeaderModifier()

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.RouteAction.Builder

clearRequestMirrorPolicy()

public HttpRoute.RouteAction.Builder clearRequestMirrorPolicy()

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.RouteAction.Builder

clearResponseHeaderModifier()

public HttpRoute.RouteAction.Builder clearResponseHeaderModifier()

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.RouteAction.Builder

clearRetryPolicy()

public HttpRoute.RouteAction.Builder clearRetryPolicy()

Specifies the retry policy associated with this route.

.google.cloud.networkservices.v1.HttpRoute.RetryPolicy retry_policy = 9;

Returns
Type Description
HttpRoute.RouteAction.Builder

clearTimeout()

public HttpRoute.RouteAction.Builder clearTimeout()

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
HttpRoute.RouteAction.Builder

clearUrlRewrite()

public HttpRoute.RouteAction.Builder clearUrlRewrite()

The specification for rewrite URL before forwarding requests to the destination.

.google.cloud.networkservices.v1.HttpRoute.URLRewrite url_rewrite = 7;

Returns
Type Description
HttpRoute.RouteAction.Builder

clone()

public HttpRoute.RouteAction.Builder clone()
Returns
Type Description
HttpRoute.RouteAction.Builder
Overrides

getCorsPolicy()

public 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.

getCorsPolicyBuilder()

public HttpRoute.CorsPolicy.Builder getCorsPolicyBuilder()

The specification for allowing client side cross-origin requests.

.google.cloud.networkservices.v1.HttpRoute.CorsPolicy cors_policy = 11;

Returns
Type Description
HttpRoute.CorsPolicy.Builder

getCorsPolicyOrBuilder()

public 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

getDefaultInstanceForType()

public HttpRoute.RouteAction getDefaultInstanceForType()
Returns
Type Description
HttpRoute.RouteAction

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDestinations(int index)

public 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

getDestinationsBuilder(int index)

public HttpRoute.Destination.Builder getDestinationsBuilder(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.Builder

getDestinationsBuilderList()

public List<HttpRoute.Destination.Builder> getDestinationsBuilderList()

The destination to which traffic should be forwarded.

repeated .google.cloud.networkservices.v1.HttpRoute.Destination destinations = 1;

Returns
Type Description
List<Builder>

getDestinationsCount()

public 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 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 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 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 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.

getFaultInjectionPolicyBuilder()

public HttpRoute.FaultInjectionPolicy.Builder getFaultInjectionPolicyBuilder()

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.Builder

getFaultInjectionPolicyOrBuilder()

public 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 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.

getRedirectBuilder()

public HttpRoute.Redirect.Builder getRedirectBuilder()

If set, the request is directed as configured by this field.

.google.cloud.networkservices.v1.HttpRoute.Redirect redirect = 2;

Returns
Type Description
HttpRoute.Redirect.Builder

getRedirectOrBuilder()

public 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 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.

getRequestHeaderModifierBuilder()

public HttpRoute.HeaderModifier.Builder getRequestHeaderModifierBuilder()

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.Builder

getRequestHeaderModifierOrBuilder()

public 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 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.

getRequestMirrorPolicyBuilder()

public HttpRoute.RequestMirrorPolicy.Builder getRequestMirrorPolicyBuilder()

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.Builder

getRequestMirrorPolicyOrBuilder()

public 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 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.

getResponseHeaderModifierBuilder()

public HttpRoute.HeaderModifier.Builder getResponseHeaderModifierBuilder()

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.Builder

getResponseHeaderModifierOrBuilder()

public 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 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.

getRetryPolicyBuilder()

public HttpRoute.RetryPolicy.Builder getRetryPolicyBuilder()

Specifies the retry policy associated with this route.

.google.cloud.networkservices.v1.HttpRoute.RetryPolicy retry_policy = 9;

Returns
Type Description
HttpRoute.RetryPolicy.Builder

getRetryPolicyOrBuilder()

public 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 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.

getTimeoutBuilder()

public Duration.Builder getTimeoutBuilder()

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
Builder

getTimeoutOrBuilder()

public 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 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.

getUrlRewriteBuilder()

public HttpRoute.URLRewrite.Builder getUrlRewriteBuilder()

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.Builder

getUrlRewriteOrBuilder()

public 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 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 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 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 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 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 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 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 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 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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCorsPolicy(HttpRoute.CorsPolicy value)

public HttpRoute.RouteAction.Builder mergeCorsPolicy(HttpRoute.CorsPolicy value)

The specification for allowing client side cross-origin requests.

.google.cloud.networkservices.v1.HttpRoute.CorsPolicy cors_policy = 11;

Parameter
Name Description
value HttpRoute.CorsPolicy
Returns
Type Description
HttpRoute.RouteAction.Builder

mergeFaultInjectionPolicy(HttpRoute.FaultInjectionPolicy value)

public HttpRoute.RouteAction.Builder mergeFaultInjectionPolicy(HttpRoute.FaultInjectionPolicy value)

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;

Parameter
Name Description
value HttpRoute.FaultInjectionPolicy
Returns
Type Description
HttpRoute.RouteAction.Builder

mergeFrom(HttpRoute.RouteAction other)

public HttpRoute.RouteAction.Builder mergeFrom(HttpRoute.RouteAction other)
Parameter
Name Description
other HttpRoute.RouteAction
Returns
Type Description
HttpRoute.RouteAction.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public HttpRoute.RouteAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpRoute.RouteAction.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public HttpRoute.RouteAction.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
HttpRoute.RouteAction.Builder
Overrides

mergeRedirect(HttpRoute.Redirect value)

public HttpRoute.RouteAction.Builder mergeRedirect(HttpRoute.Redirect value)

If set, the request is directed as configured by this field.

.google.cloud.networkservices.v1.HttpRoute.Redirect redirect = 2;

Parameter
Name Description
value HttpRoute.Redirect
Returns
Type Description
HttpRoute.RouteAction.Builder

mergeRequestHeaderModifier(HttpRoute.HeaderModifier value)

public HttpRoute.RouteAction.Builder mergeRequestHeaderModifier(HttpRoute.HeaderModifier value)

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;

Parameter
Name Description
value HttpRoute.HeaderModifier
Returns
Type Description
HttpRoute.RouteAction.Builder

mergeRequestMirrorPolicy(HttpRoute.RequestMirrorPolicy value)

public HttpRoute.RouteAction.Builder mergeRequestMirrorPolicy(HttpRoute.RequestMirrorPolicy value)

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;

Parameter
Name Description
value HttpRoute.RequestMirrorPolicy
Returns
Type Description
HttpRoute.RouteAction.Builder

mergeResponseHeaderModifier(HttpRoute.HeaderModifier value)

public HttpRoute.RouteAction.Builder mergeResponseHeaderModifier(HttpRoute.HeaderModifier value)

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;

Parameter
Name Description
value HttpRoute.HeaderModifier
Returns
Type Description
HttpRoute.RouteAction.Builder

mergeRetryPolicy(HttpRoute.RetryPolicy value)

public HttpRoute.RouteAction.Builder mergeRetryPolicy(HttpRoute.RetryPolicy value)

Specifies the retry policy associated with this route.

.google.cloud.networkservices.v1.HttpRoute.RetryPolicy retry_policy = 9;

Parameter
Name Description
value HttpRoute.RetryPolicy
Returns
Type Description
HttpRoute.RouteAction.Builder

mergeTimeout(Duration value)

public HttpRoute.RouteAction.Builder mergeTimeout(Duration value)

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;

Parameter
Name Description
value Duration
Returns
Type Description
HttpRoute.RouteAction.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final HttpRoute.RouteAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
HttpRoute.RouteAction.Builder
Overrides

mergeUrlRewrite(HttpRoute.URLRewrite value)

public HttpRoute.RouteAction.Builder mergeUrlRewrite(HttpRoute.URLRewrite value)

The specification for rewrite URL before forwarding requests to the destination.

.google.cloud.networkservices.v1.HttpRoute.URLRewrite url_rewrite = 7;

Parameter
Name Description
value HttpRoute.URLRewrite
Returns
Type Description
HttpRoute.RouteAction.Builder

removeDestinations(int index)

public HttpRoute.RouteAction.Builder removeDestinations(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.RouteAction.Builder

setCorsPolicy(HttpRoute.CorsPolicy value)

public HttpRoute.RouteAction.Builder setCorsPolicy(HttpRoute.CorsPolicy value)

The specification for allowing client side cross-origin requests.

.google.cloud.networkservices.v1.HttpRoute.CorsPolicy cors_policy = 11;

Parameter
Name Description
value HttpRoute.CorsPolicy
Returns
Type Description
HttpRoute.RouteAction.Builder

setCorsPolicy(HttpRoute.CorsPolicy.Builder builderForValue)

public HttpRoute.RouteAction.Builder setCorsPolicy(HttpRoute.CorsPolicy.Builder builderForValue)

The specification for allowing client side cross-origin requests.

.google.cloud.networkservices.v1.HttpRoute.CorsPolicy cors_policy = 11;

Parameter
Name Description
builderForValue HttpRoute.CorsPolicy.Builder
Returns
Type Description
HttpRoute.RouteAction.Builder

setDestinations(int index, HttpRoute.Destination value)

public HttpRoute.RouteAction.Builder setDestinations(int index, HttpRoute.Destination value)

The destination to which traffic should be forwarded.

repeated .google.cloud.networkservices.v1.HttpRoute.Destination destinations = 1;

Parameters
Name Description
index int
value HttpRoute.Destination
Returns
Type Description
HttpRoute.RouteAction.Builder

setDestinations(int index, HttpRoute.Destination.Builder builderForValue)

public HttpRoute.RouteAction.Builder setDestinations(int index, HttpRoute.Destination.Builder builderForValue)

The destination to which traffic should be forwarded.

repeated .google.cloud.networkservices.v1.HttpRoute.Destination destinations = 1;

Parameters
Name Description
index int
builderForValue HttpRoute.Destination.Builder
Returns
Type Description
HttpRoute.RouteAction.Builder

setFaultInjectionPolicy(HttpRoute.FaultInjectionPolicy value)

public HttpRoute.RouteAction.Builder setFaultInjectionPolicy(HttpRoute.FaultInjectionPolicy value)

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;

Parameter
Name Description
value HttpRoute.FaultInjectionPolicy
Returns
Type Description
HttpRoute.RouteAction.Builder

setFaultInjectionPolicy(HttpRoute.FaultInjectionPolicy.Builder builderForValue)

public HttpRoute.RouteAction.Builder setFaultInjectionPolicy(HttpRoute.FaultInjectionPolicy.Builder builderForValue)

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;

Parameter
Name Description
builderForValue HttpRoute.FaultInjectionPolicy.Builder
Returns
Type Description
HttpRoute.RouteAction.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public HttpRoute.RouteAction.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
HttpRoute.RouteAction.Builder
Overrides

setRedirect(HttpRoute.Redirect value)

public HttpRoute.RouteAction.Builder setRedirect(HttpRoute.Redirect value)

If set, the request is directed as configured by this field.

.google.cloud.networkservices.v1.HttpRoute.Redirect redirect = 2;

Parameter
Name Description
value HttpRoute.Redirect
Returns
Type Description
HttpRoute.RouteAction.Builder

setRedirect(HttpRoute.Redirect.Builder builderForValue)

public HttpRoute.RouteAction.Builder setRedirect(HttpRoute.Redirect.Builder builderForValue)

If set, the request is directed as configured by this field.

.google.cloud.networkservices.v1.HttpRoute.Redirect redirect = 2;

Parameter
Name Description
builderForValue HttpRoute.Redirect.Builder
Returns
Type Description
HttpRoute.RouteAction.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public HttpRoute.RouteAction.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
HttpRoute.RouteAction.Builder
Overrides

setRequestHeaderModifier(HttpRoute.HeaderModifier value)

public HttpRoute.RouteAction.Builder setRequestHeaderModifier(HttpRoute.HeaderModifier value)

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;

Parameter
Name Description
value HttpRoute.HeaderModifier
Returns
Type Description
HttpRoute.RouteAction.Builder

setRequestHeaderModifier(HttpRoute.HeaderModifier.Builder builderForValue)

public HttpRoute.RouteAction.Builder setRequestHeaderModifier(HttpRoute.HeaderModifier.Builder builderForValue)

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;

Parameter
Name Description
builderForValue HttpRoute.HeaderModifier.Builder
Returns
Type Description
HttpRoute.RouteAction.Builder

setRequestMirrorPolicy(HttpRoute.RequestMirrorPolicy value)

public HttpRoute.RouteAction.Builder setRequestMirrorPolicy(HttpRoute.RequestMirrorPolicy value)

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;

Parameter
Name Description
value HttpRoute.RequestMirrorPolicy
Returns
Type Description
HttpRoute.RouteAction.Builder

setRequestMirrorPolicy(HttpRoute.RequestMirrorPolicy.Builder builderForValue)

public HttpRoute.RouteAction.Builder setRequestMirrorPolicy(HttpRoute.RequestMirrorPolicy.Builder builderForValue)

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;

Parameter
Name Description
builderForValue HttpRoute.RequestMirrorPolicy.Builder
Returns
Type Description
HttpRoute.RouteAction.Builder

setResponseHeaderModifier(HttpRoute.HeaderModifier value)

public HttpRoute.RouteAction.Builder setResponseHeaderModifier(HttpRoute.HeaderModifier value)

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;

Parameter
Name Description
value HttpRoute.HeaderModifier
Returns
Type Description
HttpRoute.RouteAction.Builder

setResponseHeaderModifier(HttpRoute.HeaderModifier.Builder builderForValue)

public HttpRoute.RouteAction.Builder setResponseHeaderModifier(HttpRoute.HeaderModifier.Builder builderForValue)

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;

Parameter
Name Description
builderForValue HttpRoute.HeaderModifier.Builder
Returns
Type Description
HttpRoute.RouteAction.Builder

setRetryPolicy(HttpRoute.RetryPolicy value)

public HttpRoute.RouteAction.Builder setRetryPolicy(HttpRoute.RetryPolicy value)

Specifies the retry policy associated with this route.

.google.cloud.networkservices.v1.HttpRoute.RetryPolicy retry_policy = 9;

Parameter
Name Description
value HttpRoute.RetryPolicy
Returns
Type Description
HttpRoute.RouteAction.Builder

setRetryPolicy(HttpRoute.RetryPolicy.Builder builderForValue)

public HttpRoute.RouteAction.Builder setRetryPolicy(HttpRoute.RetryPolicy.Builder builderForValue)

Specifies the retry policy associated with this route.

.google.cloud.networkservices.v1.HttpRoute.RetryPolicy retry_policy = 9;

Parameter
Name Description
builderForValue HttpRoute.RetryPolicy.Builder
Returns
Type Description
HttpRoute.RouteAction.Builder

setTimeout(Duration value)

public HttpRoute.RouteAction.Builder setTimeout(Duration value)

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;

Parameter
Name Description
value Duration
Returns
Type Description
HttpRoute.RouteAction.Builder

setTimeout(Duration.Builder builderForValue)

public HttpRoute.RouteAction.Builder setTimeout(Duration.Builder builderForValue)

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;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
HttpRoute.RouteAction.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final HttpRoute.RouteAction.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
HttpRoute.RouteAction.Builder
Overrides

setUrlRewrite(HttpRoute.URLRewrite value)

public HttpRoute.RouteAction.Builder setUrlRewrite(HttpRoute.URLRewrite value)

The specification for rewrite URL before forwarding requests to the destination.

.google.cloud.networkservices.v1.HttpRoute.URLRewrite url_rewrite = 7;

Parameter
Name Description
value HttpRoute.URLRewrite
Returns
Type Description
HttpRoute.RouteAction.Builder

setUrlRewrite(HttpRoute.URLRewrite.Builder builderForValue)

public HttpRoute.RouteAction.Builder setUrlRewrite(HttpRoute.URLRewrite.Builder builderForValue)

The specification for rewrite URL before forwarding requests to the destination.

.google.cloud.networkservices.v1.HttpRoute.URLRewrite url_rewrite = 7;

Parameter
Name Description
builderForValue HttpRoute.URLRewrite.Builder
Returns
Type Description
HttpRoute.RouteAction.Builder