Class GrpcRoute.RouteAction.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GrpcRoute.RouteAction.Builder>
com.google.cloud.networkservices.v1.GrpcRoute.RouteAction.Builder
- All Implemented Interfaces:
GrpcRoute.RouteActionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GrpcRoute.RouteAction
public static final class GrpcRoute.RouteAction.Builder
extends com.google.protobuf.GeneratedMessage.Builder<GrpcRoute.RouteAction.Builder>
implements GrpcRoute.RouteActionOrBuilder
Specifies how to route matched traffic.Protobuf type
google.cloud.networkservices.v1.GrpcRoute.RouteAction-
Method Summary
Modifier and TypeMethodDescriptionaddAllDestinations(Iterable<? extends GrpcRoute.Destination> values) Optional.addDestinations(int index, GrpcRoute.Destination value) Optional.addDestinations(int index, GrpcRoute.Destination.Builder builderForValue) Optional.Optional.addDestinations(GrpcRoute.Destination.Builder builderForValue) Optional.Optional.addDestinationsBuilder(int index) Optional.build()clear()Optional.Optional.Optional.Optional.Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetDestinations(int index) Optional.getDestinationsBuilder(int index) Optional.Optional.intOptional.Optional.getDestinationsOrBuilder(int index) Optional.List<? extends GrpcRoute.DestinationOrBuilder>Optional.Optional.Optional.Optional.com.google.protobuf.DurationOptional.com.google.protobuf.Duration.BuilderOptional.com.google.protobuf.DurationOrBuilderOptional.Optional.Optional.Optional.Optional.Optional.Optional.com.google.protobuf.DurationOptional.com.google.protobuf.Duration.BuilderOptional.com.google.protobuf.DurationOrBuilderOptional.booleanOptional.booleanOptional.booleanOptional.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanOptional.mergeFrom(GrpcRoute.RouteAction other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeIdleTimeout(com.google.protobuf.Duration value) Optional.Optional.Optional.mergeTimeout(com.google.protobuf.Duration value) Optional.removeDestinations(int index) Optional.setDestinations(int index, GrpcRoute.Destination value) Optional.setDestinations(int index, GrpcRoute.Destination.Builder builderForValue) Optional.Optional.setFaultInjectionPolicy(GrpcRoute.FaultInjectionPolicy.Builder builderForValue) Optional.setIdleTimeout(com.google.protobuf.Duration value) Optional.setIdleTimeout(com.google.protobuf.Duration.Builder builderForValue) Optional.Optional.setRetryPolicy(GrpcRoute.RetryPolicy.Builder builderForValue) Optional.Optional.Optional.setTimeout(com.google.protobuf.Duration value) Optional.setTimeout(com.google.protobuf.Duration.Builder builderForValue) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<GrpcRoute.RouteAction.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<GrpcRoute.RouteAction.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<GrpcRoute.RouteAction.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GrpcRoute.RouteAction.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<GrpcRoute.RouteAction.Builder>
-
mergeFrom
public GrpcRoute.RouteAction.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GrpcRoute.RouteAction.Builder>- Throws:
IOException
-
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];- Specified by:
getDestinationsListin interfaceGrpcRoute.RouteActionOrBuilder
-
getDestinationsCount
public 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];- Specified by:
getDestinationsCountin interfaceGrpcRoute.RouteActionOrBuilder
-
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];- Specified by:
getDestinationsin interfaceGrpcRoute.RouteActionOrBuilder
-
setDestinations
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]; -
setDestinations
public GrpcRoute.RouteAction.Builder setDestinations(int index, GrpcRoute.Destination.Builder builderForValue) 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]; -
addDestinations
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]; -
addDestinations
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]; -
addDestinations
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]; -
addDestinations
public GrpcRoute.RouteAction.Builder addDestinations(int index, GrpcRoute.Destination.Builder builderForValue) 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]; -
addAllDestinations
public GrpcRoute.RouteAction.Builder addAllDestinations(Iterable<? extends GrpcRoute.Destination> values) 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]; -
clearDestinations
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]; -
removeDestinations
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]; -
getDestinationsBuilder
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];- Specified by:
getDestinationsOrBuilderin interfaceGrpcRoute.RouteActionOrBuilder
-
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];- Specified by:
getDestinationsOrBuilderListin interfaceGrpcRoute.RouteActionOrBuilder
-
addDestinationsBuilder
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]; -
addDestinationsBuilder
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]; -
getDestinationsBuilderList
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
public 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];- Specified by:
hasFaultInjectionPolicyin interfaceGrpcRoute.RouteActionOrBuilder- Returns:
- Whether the faultInjectionPolicy field is set.
-
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];- Specified by:
getFaultInjectionPolicyin interfaceGrpcRoute.RouteActionOrBuilder- Returns:
- The faultInjectionPolicy.
-
setFaultInjectionPolicy
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]; -
setFaultInjectionPolicy
public GrpcRoute.RouteAction.Builder setFaultInjectionPolicy(GrpcRoute.FaultInjectionPolicy.Builder builderForValue) 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]; -
mergeFaultInjectionPolicy
public GrpcRoute.RouteAction.Builder mergeFaultInjectionPolicy(GrpcRoute.FaultInjectionPolicy value) 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]; -
clearFaultInjectionPolicy
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]; -
getFaultInjectionPolicyBuilder
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]; -
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];- Specified by:
getFaultInjectionPolicyOrBuilderin interfaceGrpcRoute.RouteActionOrBuilder
-
hasTimeout
public 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];- Specified by:
hasTimeoutin interfaceGrpcRoute.RouteActionOrBuilder- Returns:
- Whether the timeout field is set.
-
getTimeout
public 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];- Specified by:
getTimeoutin interfaceGrpcRoute.RouteActionOrBuilder- Returns:
- The timeout.
-
setTimeout
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]; -
setTimeout
public GrpcRoute.RouteAction.Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue) 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]; -
mergeTimeout
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]; -
clearTimeout
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]; -
getTimeoutBuilder
public com.google.protobuf.Duration.Builder getTimeoutBuilder()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]; -
getTimeoutOrBuilder
public 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];- Specified by:
getTimeoutOrBuilderin interfaceGrpcRoute.RouteActionOrBuilder
-
hasRetryPolicy
public 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];- Specified by:
hasRetryPolicyin interfaceGrpcRoute.RouteActionOrBuilder- Returns:
- Whether the retryPolicy field is set.
-
getRetryPolicy
Optional. Specifies the retry policy associated with this route.
.google.cloud.networkservices.v1.GrpcRoute.RetryPolicy retry_policy = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRetryPolicyin interfaceGrpcRoute.RouteActionOrBuilder- Returns:
- The retryPolicy.
-
setRetryPolicy
Optional. Specifies the retry policy associated with this route.
.google.cloud.networkservices.v1.GrpcRoute.RetryPolicy retry_policy = 8 [(.google.api.field_behavior) = OPTIONAL]; -
setRetryPolicy
Optional. Specifies the retry policy associated with this route.
.google.cloud.networkservices.v1.GrpcRoute.RetryPolicy retry_policy = 8 [(.google.api.field_behavior) = OPTIONAL]; -
mergeRetryPolicy
Optional. Specifies the retry policy associated with this route.
.google.cloud.networkservices.v1.GrpcRoute.RetryPolicy retry_policy = 8 [(.google.api.field_behavior) = OPTIONAL]; -
clearRetryPolicy
Optional. Specifies the retry policy associated with this route.
.google.cloud.networkservices.v1.GrpcRoute.RetryPolicy retry_policy = 8 [(.google.api.field_behavior) = OPTIONAL]; -
getRetryPolicyBuilder
Optional. Specifies the retry policy associated with this route.
.google.cloud.networkservices.v1.GrpcRoute.RetryPolicy retry_policy = 8 [(.google.api.field_behavior) = OPTIONAL]; -
getRetryPolicyOrBuilder
Optional. Specifies the retry policy associated with this route.
.google.cloud.networkservices.v1.GrpcRoute.RetryPolicy retry_policy = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRetryPolicyOrBuilderin interfaceGrpcRoute.RouteActionOrBuilder
-
hasStatefulSessionAffinity
public boolean hasStatefulSessionAffinity()Optional. Specifies cookie-based stateful session affinity.
.google.cloud.networkservices.v1.GrpcRoute.StatefulSessionAffinityPolicy stateful_session_affinity = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasStatefulSessionAffinityin interfaceGrpcRoute.RouteActionOrBuilder- Returns:
- Whether the statefulSessionAffinity field is set.
-
getStatefulSessionAffinity
Optional. Specifies cookie-based stateful session affinity.
.google.cloud.networkservices.v1.GrpcRoute.StatefulSessionAffinityPolicy stateful_session_affinity = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getStatefulSessionAffinityin interfaceGrpcRoute.RouteActionOrBuilder- Returns:
- The statefulSessionAffinity.
-
setStatefulSessionAffinity
public GrpcRoute.RouteAction.Builder setStatefulSessionAffinity(GrpcRoute.StatefulSessionAffinityPolicy value) Optional. Specifies cookie-based stateful session affinity.
.google.cloud.networkservices.v1.GrpcRoute.StatefulSessionAffinityPolicy stateful_session_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; -
setStatefulSessionAffinity
public GrpcRoute.RouteAction.Builder setStatefulSessionAffinity(GrpcRoute.StatefulSessionAffinityPolicy.Builder builderForValue) Optional. Specifies cookie-based stateful session affinity.
.google.cloud.networkservices.v1.GrpcRoute.StatefulSessionAffinityPolicy stateful_session_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; -
mergeStatefulSessionAffinity
public GrpcRoute.RouteAction.Builder mergeStatefulSessionAffinity(GrpcRoute.StatefulSessionAffinityPolicy value) Optional. Specifies cookie-based stateful session affinity.
.google.cloud.networkservices.v1.GrpcRoute.StatefulSessionAffinityPolicy stateful_session_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; -
clearStatefulSessionAffinity
Optional. Specifies cookie-based stateful session affinity.
.google.cloud.networkservices.v1.GrpcRoute.StatefulSessionAffinityPolicy stateful_session_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; -
getStatefulSessionAffinityBuilder
Optional. Specifies cookie-based stateful session affinity.
.google.cloud.networkservices.v1.GrpcRoute.StatefulSessionAffinityPolicy stateful_session_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; -
getStatefulSessionAffinityOrBuilder
Optional. Specifies cookie-based stateful session affinity.
.google.cloud.networkservices.v1.GrpcRoute.StatefulSessionAffinityPolicy stateful_session_affinity = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getStatefulSessionAffinityOrBuilderin interfaceGrpcRoute.RouteActionOrBuilder
-
hasIdleTimeout
public 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];- Specified by:
hasIdleTimeoutin interfaceGrpcRoute.RouteActionOrBuilder- Returns:
- Whether the idleTimeout field is set.
-
getIdleTimeout
public 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];- Specified by:
getIdleTimeoutin interfaceGrpcRoute.RouteActionOrBuilder- Returns:
- The idleTimeout.
-
setIdleTimeout
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]; -
setIdleTimeout
public GrpcRoute.RouteAction.Builder setIdleTimeout(com.google.protobuf.Duration.Builder builderForValue) 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]; -
mergeIdleTimeout
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]; -
clearIdleTimeout
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]; -
getIdleTimeoutBuilder
public com.google.protobuf.Duration.Builder getIdleTimeoutBuilder()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]; -
getIdleTimeoutOrBuilder
public 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];- Specified by:
getIdleTimeoutOrBuilderin interfaceGrpcRoute.RouteActionOrBuilder
-