Interface GrpcRoute.RouteActionOrBuilder (0.7.0)

public static interface GrpcRoute.RouteActionOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getDestinations(int index)

public abstract GrpcRoute.Destination getDestinations(int index)

Optional. The destination services to which traffic should be forwarded. If multiple destinations are specified, traffic will be split between Backend Service(s) according to the weight field of these destinations.

repeated .google.cloud.networkservices.v1.GrpcRoute.Destination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
GrpcRoute.Destination

getDestinationsCount()

public abstract int getDestinationsCount()

Optional. The destination services to which traffic should be forwarded. If multiple destinations are specified, traffic will be split between Backend Service(s) according to the weight field of these destinations.

repeated .google.cloud.networkservices.v1.GrpcRoute.Destination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getDestinationsList()

public abstract List<GrpcRoute.Destination> getDestinationsList()

Optional. The destination services to which traffic should be forwarded. If multiple destinations are specified, traffic will be split between Backend Service(s) according to the weight field of these destinations.

repeated .google.cloud.networkservices.v1.GrpcRoute.Destination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Destination>

getDestinationsOrBuilder(int index)

public abstract GrpcRoute.DestinationOrBuilder getDestinationsOrBuilder(int index)

Optional. The destination services to which traffic should be forwarded. If multiple destinations are specified, traffic will be split between Backend Service(s) according to the weight field of these destinations.

repeated .google.cloud.networkservices.v1.GrpcRoute.Destination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
GrpcRoute.DestinationOrBuilder

getDestinationsOrBuilderList()

public abstract List<? extends GrpcRoute.DestinationOrBuilder> getDestinationsOrBuilderList()

Optional. The destination services to which traffic should be forwarded. If multiple destinations are specified, traffic will be split between Backend Service(s) according to the weight field of these destinations.

repeated .google.cloud.networkservices.v1.GrpcRoute.Destination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.networkservices.v1.GrpcRoute.DestinationOrBuilder>

getFaultInjectionPolicy()

public abstract GrpcRoute.FaultInjectionPolicy getFaultInjectionPolicy()

Optional. The specification for fault injection introduced into traffic to test the resiliency of clients to destination service failure. As part of fault injection, when clients send requests to a destination, delays can be introduced on a percentage of requests before sending those requests to the destination service. Similarly requests from clients can be aborted by for a percentage of requests.

timeout and retry_policy will be ignored by clients that are configured with a fault_injection_policy

.google.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy fault_injection_policy = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GrpcRoute.FaultInjectionPolicy

The faultInjectionPolicy.

getFaultInjectionPolicyOrBuilder()

public abstract GrpcRoute.FaultInjectionPolicyOrBuilder getFaultInjectionPolicyOrBuilder()

Optional. The specification for fault injection introduced into traffic to test the resiliency of clients to destination service failure. As part of fault injection, when clients send requests to a destination, delays can be introduced on a percentage of requests before sending those requests to the destination service. Similarly requests from clients can be aborted by for a percentage of requests.

timeout and retry_policy will be ignored by clients that are configured with a fault_injection_policy

.google.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy fault_injection_policy = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GrpcRoute.FaultInjectionPolicyOrBuilder

getRetryPolicy()

public abstract GrpcRoute.RetryPolicy getRetryPolicy()

Optional. Specifies the retry policy associated with this route.

.google.cloud.networkservices.v1.GrpcRoute.RetryPolicy retry_policy = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GrpcRoute.RetryPolicy

The retryPolicy.

getRetryPolicyOrBuilder()

public abstract GrpcRoute.RetryPolicyOrBuilder getRetryPolicyOrBuilder()

Optional. Specifies the retry policy associated with this route.

.google.cloud.networkservices.v1.GrpcRoute.RetryPolicy retry_policy = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GrpcRoute.RetryPolicyOrBuilder

getTimeout()

public abstract Duration getTimeout()

Optional. Specifies the timeout for selected route. Timeout is computed from the time the request has been fully processed (i.e. end of stream) up until the response has been completely processed. Timeout includes all retries.

.google.protobuf.Duration timeout = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Duration

The timeout.

getTimeoutOrBuilder()

public abstract DurationOrBuilder getTimeoutOrBuilder()

Optional. Specifies the timeout for selected route. Timeout is computed from the time the request has been fully processed (i.e. end of stream) up until the response has been completely processed. Timeout includes all retries.

.google.protobuf.Duration timeout = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DurationOrBuilder

hasFaultInjectionPolicy()

public abstract boolean hasFaultInjectionPolicy()

Optional. The specification for fault injection introduced into traffic to test the resiliency of clients to destination service failure. As part of fault injection, when clients send requests to a destination, delays can be introduced on a percentage of requests before sending those requests to the destination service. Similarly requests from clients can be aborted by for a percentage of requests.

timeout and retry_policy will be ignored by clients that are configured with a fault_injection_policy

.google.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy fault_injection_policy = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the faultInjectionPolicy field is set.

hasRetryPolicy()

public abstract boolean hasRetryPolicy()

Optional. Specifies the retry policy associated with this route.

.google.cloud.networkservices.v1.GrpcRoute.RetryPolicy retry_policy = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the retryPolicy field is set.

hasTimeout()

public abstract boolean hasTimeout()

Optional. Specifies the timeout for selected route. Timeout is computed from the time the request has been fully processed (i.e. end of stream) up until the response has been completely processed. Timeout includes all retries.

.google.protobuf.Duration timeout = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the timeout field is set.