Class HttpRoute.RouteAction (0.15.0)

public static final class HttpRoute.RouteAction extends GeneratedMessageV3 implements HttpRoute.RouteActionOrBuilder

The specifications for routing traffic and applying associated policies.

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

Static Fields

CORS_POLICY_FIELD_NUMBER

public static final int CORS_POLICY_FIELD_NUMBER
Field Value
Type Description
int

DESTINATIONS_FIELD_NUMBER

public static final int DESTINATIONS_FIELD_NUMBER
Field Value
Type Description
int

FAULT_INJECTION_POLICY_FIELD_NUMBER

public static final int FAULT_INJECTION_POLICY_FIELD_NUMBER
Field Value
Type Description
int

REDIRECT_FIELD_NUMBER

public static final int REDIRECT_FIELD_NUMBER
Field Value
Type Description
int

REQUEST_HEADER_MODIFIER_FIELD_NUMBER

public static final int REQUEST_HEADER_MODIFIER_FIELD_NUMBER
Field Value
Type Description
int

REQUEST_MIRROR_POLICY_FIELD_NUMBER

public static final int REQUEST_MIRROR_POLICY_FIELD_NUMBER
Field Value
Type Description
int

RESPONSE_HEADER_MODIFIER_FIELD_NUMBER

public static final int RESPONSE_HEADER_MODIFIER_FIELD_NUMBER
Field Value
Type Description
int

RETRY_POLICY_FIELD_NUMBER

public static final int RETRY_POLICY_FIELD_NUMBER
Field Value
Type Description
int

TIMEOUT_FIELD_NUMBER

public static final int TIMEOUT_FIELD_NUMBER
Field Value
Type Description
int

URL_REWRITE_FIELD_NUMBER

public static final int URL_REWRITE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static HttpRoute.RouteAction getDefaultInstance()
Returns
Type Description
HttpRoute.RouteAction

getDescriptor()

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

newBuilder()

public static HttpRoute.RouteAction.Builder newBuilder()
Returns
Type Description
HttpRoute.RouteAction.Builder

newBuilder(HttpRoute.RouteAction prototype)

public static HttpRoute.RouteAction.Builder newBuilder(HttpRoute.RouteAction prototype)
Parameter
Name Description
prototype HttpRoute.RouteAction
Returns
Type Description
HttpRoute.RouteAction.Builder

parseDelimitedFrom(InputStream input)

public static HttpRoute.RouteAction parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
HttpRoute.RouteAction
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HttpRoute.RouteAction parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpRoute.RouteAction
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static HttpRoute.RouteAction parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
HttpRoute.RouteAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static HttpRoute.RouteAction parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpRoute.RouteAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static HttpRoute.RouteAction parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
HttpRoute.RouteAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static HttpRoute.RouteAction parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpRoute.RouteAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static HttpRoute.RouteAction parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
HttpRoute.RouteAction
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static HttpRoute.RouteAction parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpRoute.RouteAction
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static HttpRoute.RouteAction parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
HttpRoute.RouteAction
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HttpRoute.RouteAction parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpRoute.RouteAction
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static HttpRoute.RouteAction parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
HttpRoute.RouteAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static HttpRoute.RouteAction parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpRoute.RouteAction
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<HttpRoute.RouteAction> parser()
Returns
Type Description
Parser<RouteAction>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCorsPolicy()

public HttpRoute.CorsPolicy getCorsPolicy()

The specification for allowing client side cross-origin requests.

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

Returns
Type Description
HttpRoute.CorsPolicy

The corsPolicy.

getCorsPolicyOrBuilder()

public HttpRoute.CorsPolicyOrBuilder getCorsPolicyOrBuilder()

The specification for allowing client side cross-origin requests.

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

Returns
Type Description
HttpRoute.CorsPolicyOrBuilder

getDefaultInstanceForType()

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

getDestinations(int index)

public HttpRoute.Destination getDestinations(int index)

The destination to which traffic should be forwarded.

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

Parameter
Name Description
index int
Returns
Type Description
HttpRoute.Destination

getDestinationsCount()

public int getDestinationsCount()

The destination to which traffic should be forwarded.

repeated .google.events.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.events.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.events.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.events.cloud.networkservices.v1.HttpRoute.Destination destinations = 1;

Returns
Type Description
List<? extends com.google.events.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.events.cloud.networkservices.v1.HttpRoute.FaultInjectionPolicy fault_injection_policy = 4;

Returns
Type Description
HttpRoute.FaultInjectionPolicy

The faultInjectionPolicy.

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.events.cloud.networkservices.v1.HttpRoute.FaultInjectionPolicy fault_injection_policy = 4;

Returns
Type Description
HttpRoute.FaultInjectionPolicyOrBuilder

getParserForType()

public Parser<HttpRoute.RouteAction> getParserForType()
Returns
Type Description
Parser<RouteAction>
Overrides

getRedirect()

public HttpRoute.Redirect getRedirect()

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

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

Returns
Type Description
HttpRoute.Redirect

The redirect.

getRedirectOrBuilder()

public HttpRoute.RedirectOrBuilder getRedirectOrBuilder()

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

.google.events.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.

.google.events.cloud.networkservices.v1.HttpRoute.HeaderModifier request_header_modifier = 5;

Returns
Type Description
HttpRoute.HeaderModifier

The requestHeaderModifier.

getRequestHeaderModifierOrBuilder()

public HttpRoute.HeaderModifierOrBuilder getRequestHeaderModifierOrBuilder()

The specification for modifying the headers of a matching request prior to delivery of the request to the destination.

.google.events.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.events.cloud.networkservices.v1.HttpRoute.RequestMirrorPolicy request_mirror_policy = 10;

Returns
Type Description
HttpRoute.RequestMirrorPolicy

The requestMirrorPolicy.

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

.google.events.cloud.networkservices.v1.HttpRoute.HeaderModifier response_header_modifier = 6;

Returns
Type Description
HttpRoute.HeaderModifier

The responseHeaderModifier.

getResponseHeaderModifierOrBuilder()

public HttpRoute.HeaderModifierOrBuilder getResponseHeaderModifierOrBuilder()

The specification for modifying the headers of a response prior to sending the response back to the client.

.google.events.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.events.cloud.networkservices.v1.HttpRoute.RetryPolicy retry_policy = 9;

Returns
Type Description
HttpRoute.RetryPolicy

The retryPolicy.

getRetryPolicyOrBuilder()

public HttpRoute.RetryPolicyOrBuilder getRetryPolicyOrBuilder()

Specifies the retry policy associated with this route.

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

Returns
Type Description
HttpRoute.RetryPolicyOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
Type Description
UnknownFieldSet
Overrides

getUrlRewrite()

public HttpRoute.URLRewrite getUrlRewrite()

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

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

Returns
Type Description
HttpRoute.URLRewrite

The urlRewrite.

getUrlRewriteOrBuilder()

public HttpRoute.URLRewriteOrBuilder getUrlRewriteOrBuilder()

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

.google.events.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.events.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.events.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.events.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.

.google.events.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.events.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.

.google.events.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.events.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.events.cloud.networkservices.v1.HttpRoute.URLRewrite url_rewrite = 7;

Returns
Type Description
boolean

Whether the urlRewrite field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public HttpRoute.RouteAction.Builder newBuilderForType()
Returns
Type Description
HttpRoute.RouteAction.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected HttpRoute.RouteAction.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
HttpRoute.RouteAction.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public HttpRoute.RouteAction.Builder toBuilder()
Returns
Type Description
HttpRoute.RouteAction.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException