Interface GrpcRoute.RouteActionOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
GrpcRoute.RouteAction,GrpcRoute.RouteAction.Builder
- Enclosing class:
- GrpcRoute
public static interface GrpcRoute.RouteActionOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetDestinations(int index) Optional.intOptional.Optional.getDestinationsOrBuilder(int index) Optional.List<? extends GrpcRoute.DestinationOrBuilder>Optional.Optional.Optional.com.google.protobuf.DurationOptional.com.google.protobuf.DurationOrBuilderOptional.Optional.Optional.Optional.Optional.com.google.protobuf.DurationOptional.com.google.protobuf.DurationOrBuilderOptional.booleanOptional.booleanOptional.booleanOptional.booleanOptional.booleanOptional.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDestinationsList
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]; -
getDestinations
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]; -
getDestinationsCount
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]; -
getDestinationsOrBuilderList
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]; -
getDestinationsOrBuilder
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]; -
hasFaultInjectionPolicy
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:
- Whether the faultInjectionPolicy field is set.
-
getFaultInjectionPolicy
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:
- The faultInjectionPolicy.
-
getFaultInjectionPolicyOrBuilder
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]; -
hasTimeout
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:
- Whether the timeout field is set.
-
getTimeout
com.google.protobuf.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:
- The timeout.
-
getTimeoutOrBuilder
com.google.protobuf.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]; -
hasRetryPolicy
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:
- Whether the retryPolicy field is set.
-
getRetryPolicy
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:
- The retryPolicy.
-
getRetryPolicyOrBuilder
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]; -
hasStatefulSessionAffinity
boolean hasStatefulSessionAffinity()Optional. Specifies cookie-based stateful session affinity.
.google.cloud.networkservices.v1.GrpcRoute.StatefulSessionAffinityPolicy stateful_session_affinity = 11 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- Whether the statefulSessionAffinity field is set.
-
getStatefulSessionAffinity
GrpcRoute.StatefulSessionAffinityPolicy getStatefulSessionAffinity()Optional. Specifies cookie-based stateful session affinity.
.google.cloud.networkservices.v1.GrpcRoute.StatefulSessionAffinityPolicy stateful_session_affinity = 11 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The statefulSessionAffinity.
-
getStatefulSessionAffinityOrBuilder
GrpcRoute.StatefulSessionAffinityPolicyOrBuilder getStatefulSessionAffinityOrBuilder()Optional. Specifies cookie-based stateful session affinity.
.google.cloud.networkservices.v1.GrpcRoute.StatefulSessionAffinityPolicy stateful_session_affinity = 11 [(.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 = 12 [(.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 = 12 [(.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 = 12 [(.google.api.field_behavior) = OPTIONAL];
-