Class HttpRoute.RouteAction
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.networkservices.v1.HttpRoute.RouteAction
- All Implemented Interfaces:
HttpRoute.RouteActionOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- HttpRoute
public static final class HttpRoute.RouteAction
extends com.google.protobuf.GeneratedMessage
implements HttpRoute.RouteActionOrBuilder
The specifications for routing traffic and applying associated policies.Protobuf type
google.cloud.networkservices.v1.HttpRoute.RouteAction- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe specifications for routing traffic and applying associated policies.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe specification for allowing client side cross-origin requests.The specification for allowing client side cross-origin requests.static HttpRoute.RouteActionstatic final com.google.protobuf.Descriptors.DescriptorgetDestinations(int index) The destination to which traffic should be forwarded.intThe destination to which traffic should be forwarded.The destination to which traffic should be forwarded.getDestinationsOrBuilder(int index) The destination to which traffic should be forwarded.List<? extends HttpRoute.DestinationOrBuilder>The destination to which traffic should be forwarded.Optional.Optional.The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure.The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure.com.google.protobuf.DurationOptional.com.google.protobuf.DurationOrBuilderOptional.com.google.protobuf.Parser<HttpRoute.RouteAction>If set, the request is directed as configured by this field.If set, the request is directed as configured by this field.The specification for modifying the headers of a matching request prior to delivery of the request to the destination.The specification for modifying the headers of a matching request prior to delivery of the request to the destination.Specifies the policy on how requests intended for the routes destination are shadowed to a separate mirrored destination.Specifies the policy on how requests intended for the routes destination are shadowed to a separate mirrored destination.The specification for modifying the headers of a response prior to sending the response back to the client.The specification for modifying the headers of a response prior to sending the response back to the client.Specifies the retry policy associated with this route.Specifies the retry policy associated with this route.intOptional.Optional.com.google.protobuf.DurationSpecifies the timeout for selected route.com.google.protobuf.DurationOrBuilderSpecifies the timeout for selected route.The specification for rewrite URL before forwarding requests to the destination.The specification for rewrite URL before forwarding requests to the destination.booleanThe specification for allowing client side cross-origin requests.booleanOptional.booleanThe specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure.inthashCode()booleanOptional.booleanIf set, the request is directed as configured by this field.booleanThe specification for modifying the headers of a matching request prior to delivery of the request to the destination.booleanSpecifies the policy on how requests intended for the routes destination are shadowed to a separate mirrored destination.booleanThe specification for modifying the headers of a response prior to sending the response back to the client.booleanSpecifies the retry policy associated with this route.booleanOptional.booleanSpecifies the timeout for selected route.booleanThe specification for rewrite URL before forwarding requests to the destination.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(HttpRoute.RouteAction prototype) protected HttpRoute.RouteAction.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static HttpRoute.RouteActionparseDelimitedFrom(InputStream input) static HttpRoute.RouteActionparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static HttpRoute.RouteActionparseFrom(byte[] data) static HttpRoute.RouteActionparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static HttpRoute.RouteActionparseFrom(com.google.protobuf.ByteString data) static HttpRoute.RouteActionparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static HttpRoute.RouteActionparseFrom(com.google.protobuf.CodedInputStream input) static HttpRoute.RouteActionparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static HttpRoute.RouteActionparseFrom(InputStream input) static HttpRoute.RouteActionparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static HttpRoute.RouteActionparseFrom(ByteBuffer data) static HttpRoute.RouteActionparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<HttpRoute.RouteAction>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
DESTINATIONS_FIELD_NUMBER
public static final int DESTINATIONS_FIELD_NUMBER- See Also:
-
REDIRECT_FIELD_NUMBER
public static final int REDIRECT_FIELD_NUMBER- See Also:
-
FAULT_INJECTION_POLICY_FIELD_NUMBER
public static final int FAULT_INJECTION_POLICY_FIELD_NUMBER- See Also:
-
REQUEST_HEADER_MODIFIER_FIELD_NUMBER
public static final int REQUEST_HEADER_MODIFIER_FIELD_NUMBER- See Also:
-
RESPONSE_HEADER_MODIFIER_FIELD_NUMBER
public static final int RESPONSE_HEADER_MODIFIER_FIELD_NUMBER- See Also:
-
URL_REWRITE_FIELD_NUMBER
public static final int URL_REWRITE_FIELD_NUMBER- See Also:
-
TIMEOUT_FIELD_NUMBER
public static final int TIMEOUT_FIELD_NUMBER- See Also:
-
RETRY_POLICY_FIELD_NUMBER
public static final int RETRY_POLICY_FIELD_NUMBER- See Also:
-
REQUEST_MIRROR_POLICY_FIELD_NUMBER
public static final int REQUEST_MIRROR_POLICY_FIELD_NUMBER- See Also:
-
CORS_POLICY_FIELD_NUMBER
public static final int CORS_POLICY_FIELD_NUMBER- See Also:
-
STATEFUL_SESSION_AFFINITY_FIELD_NUMBER
public static final int STATEFUL_SESSION_AFFINITY_FIELD_NUMBER- See Also:
-
DIRECT_RESPONSE_FIELD_NUMBER
public static final int DIRECT_RESPONSE_FIELD_NUMBER- See Also:
-
IDLE_TIMEOUT_FIELD_NUMBER
public static final int IDLE_TIMEOUT_FIELD_NUMBER- See Also:
-
-
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
-
getDestinationsList
The destination to which traffic should be forwarded.
repeated .google.cloud.networkservices.v1.HttpRoute.Destination destinations = 1;- Specified by:
getDestinationsListin interfaceHttpRoute.RouteActionOrBuilder
-
getDestinationsOrBuilderList
The destination to which traffic should be forwarded.
repeated .google.cloud.networkservices.v1.HttpRoute.Destination destinations = 1;- Specified by:
getDestinationsOrBuilderListin interfaceHttpRoute.RouteActionOrBuilder
-
getDestinationsCount
public int getDestinationsCount()The destination to which traffic should be forwarded.
repeated .google.cloud.networkservices.v1.HttpRoute.Destination destinations = 1;- Specified by:
getDestinationsCountin interfaceHttpRoute.RouteActionOrBuilder
-
getDestinations
The destination to which traffic should be forwarded.
repeated .google.cloud.networkservices.v1.HttpRoute.Destination destinations = 1;- Specified by:
getDestinationsin interfaceHttpRoute.RouteActionOrBuilder
-
getDestinationsOrBuilder
The destination to which traffic should be forwarded.
repeated .google.cloud.networkservices.v1.HttpRoute.Destination destinations = 1;- Specified by:
getDestinationsOrBuilderin interfaceHttpRoute.RouteActionOrBuilder
-
hasRedirect
public boolean hasRedirect()If set, the request is directed as configured by this field.
.google.cloud.networkservices.v1.HttpRoute.Redirect redirect = 2;- Specified by:
hasRedirectin interfaceHttpRoute.RouteActionOrBuilder- Returns:
- Whether the redirect field is set.
-
getRedirect
If set, the request is directed as configured by this field.
.google.cloud.networkservices.v1.HttpRoute.Redirect redirect = 2;- Specified by:
getRedirectin interfaceHttpRoute.RouteActionOrBuilder- Returns:
- The redirect.
-
getRedirectOrBuilder
If set, the request is directed as configured by this field.
.google.cloud.networkservices.v1.HttpRoute.Redirect redirect = 2;- Specified by:
getRedirectOrBuilderin interfaceHttpRoute.RouteActionOrBuilder
-
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;- Specified by:
hasFaultInjectionPolicyin interfaceHttpRoute.RouteActionOrBuilder- Returns:
- Whether the faultInjectionPolicy field is set.
-
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;- Specified by:
getFaultInjectionPolicyin interfaceHttpRoute.RouteActionOrBuilder- Returns:
- The faultInjectionPolicy.
-
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;- Specified by:
getFaultInjectionPolicyOrBuilderin interfaceHttpRoute.RouteActionOrBuilder
-
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;- Specified by:
hasRequestHeaderModifierin interfaceHttpRoute.RouteActionOrBuilder- Returns:
- Whether the requestHeaderModifier field is set.
-
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;- Specified by:
getRequestHeaderModifierin interfaceHttpRoute.RouteActionOrBuilder- Returns:
- The requestHeaderModifier.
-
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;- Specified by:
getRequestHeaderModifierOrBuilderin interfaceHttpRoute.RouteActionOrBuilder
-
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;- Specified by:
hasResponseHeaderModifierin interfaceHttpRoute.RouteActionOrBuilder- Returns:
- Whether the responseHeaderModifier field is set.
-
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;- Specified by:
getResponseHeaderModifierin interfaceHttpRoute.RouteActionOrBuilder- Returns:
- The responseHeaderModifier.
-
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;- Specified by:
getResponseHeaderModifierOrBuilderin interfaceHttpRoute.RouteActionOrBuilder
-
hasUrlRewrite
public boolean hasUrlRewrite()The specification for rewrite URL before forwarding requests to the destination.
.google.cloud.networkservices.v1.HttpRoute.URLRewrite url_rewrite = 7;- Specified by:
hasUrlRewritein interfaceHttpRoute.RouteActionOrBuilder- Returns:
- Whether the urlRewrite field is set.
-
getUrlRewrite
The specification for rewrite URL before forwarding requests to the destination.
.google.cloud.networkservices.v1.HttpRoute.URLRewrite url_rewrite = 7;- Specified by:
getUrlRewritein interfaceHttpRoute.RouteActionOrBuilder- Returns:
- The urlRewrite.
-
getUrlRewriteOrBuilder
The specification for rewrite URL before forwarding requests to the destination.
.google.cloud.networkservices.v1.HttpRoute.URLRewrite url_rewrite = 7;- Specified by:
getUrlRewriteOrBuilderin interfaceHttpRoute.RouteActionOrBuilder
-
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;- Specified by:
hasTimeoutin interfaceHttpRoute.RouteActionOrBuilder- Returns:
- Whether the timeout field is set.
-
getTimeout
public com.google.protobuf.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;- Specified by:
getTimeoutin interfaceHttpRoute.RouteActionOrBuilder- Returns:
- The timeout.
-
getTimeoutOrBuilder
public com.google.protobuf.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;- Specified by:
getTimeoutOrBuilderin interfaceHttpRoute.RouteActionOrBuilder
-
hasRetryPolicy
public boolean hasRetryPolicy()Specifies the retry policy associated with this route.
.google.cloud.networkservices.v1.HttpRoute.RetryPolicy retry_policy = 9;- Specified by:
hasRetryPolicyin interfaceHttpRoute.RouteActionOrBuilder- Returns:
- Whether the retryPolicy field is set.
-
getRetryPolicy
Specifies the retry policy associated with this route.
.google.cloud.networkservices.v1.HttpRoute.RetryPolicy retry_policy = 9;- Specified by:
getRetryPolicyin interfaceHttpRoute.RouteActionOrBuilder- Returns:
- The retryPolicy.
-
getRetryPolicyOrBuilder
Specifies the retry policy associated with this route.
.google.cloud.networkservices.v1.HttpRoute.RetryPolicy retry_policy = 9;- Specified by:
getRetryPolicyOrBuilderin interfaceHttpRoute.RouteActionOrBuilder
-
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;- Specified by:
hasRequestMirrorPolicyin interfaceHttpRoute.RouteActionOrBuilder- Returns:
- Whether the requestMirrorPolicy field is set.
-
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;- Specified by:
getRequestMirrorPolicyin interfaceHttpRoute.RouteActionOrBuilder- Returns:
- The requestMirrorPolicy.
-
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;- Specified by:
getRequestMirrorPolicyOrBuilderin interfaceHttpRoute.RouteActionOrBuilder
-
hasCorsPolicy
public boolean hasCorsPolicy()The specification for allowing client side cross-origin requests.
.google.cloud.networkservices.v1.HttpRoute.CorsPolicy cors_policy = 11;- Specified by:
hasCorsPolicyin interfaceHttpRoute.RouteActionOrBuilder- Returns:
- Whether the corsPolicy field is set.
-
getCorsPolicy
The specification for allowing client side cross-origin requests.
.google.cloud.networkservices.v1.HttpRoute.CorsPolicy cors_policy = 11;- Specified by:
getCorsPolicyin interfaceHttpRoute.RouteActionOrBuilder- Returns:
- The corsPolicy.
-
getCorsPolicyOrBuilder
The specification for allowing client side cross-origin requests.
.google.cloud.networkservices.v1.HttpRoute.CorsPolicy cors_policy = 11;- Specified by:
getCorsPolicyOrBuilderin interfaceHttpRoute.RouteActionOrBuilder
-
hasStatefulSessionAffinity
public boolean hasStatefulSessionAffinity()Optional. Specifies cookie-based stateful session affinity.
.google.cloud.networkservices.v1.HttpRoute.StatefulSessionAffinityPolicy stateful_session_affinity = 12 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasStatefulSessionAffinityin interfaceHttpRoute.RouteActionOrBuilder- Returns:
- Whether the statefulSessionAffinity field is set.
-
getStatefulSessionAffinity
Optional. Specifies cookie-based stateful session affinity.
.google.cloud.networkservices.v1.HttpRoute.StatefulSessionAffinityPolicy stateful_session_affinity = 12 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getStatefulSessionAffinityin interfaceHttpRoute.RouteActionOrBuilder- Returns:
- The statefulSessionAffinity.
-
getStatefulSessionAffinityOrBuilder
Optional. Specifies cookie-based stateful session affinity.
.google.cloud.networkservices.v1.HttpRoute.StatefulSessionAffinityPolicy stateful_session_affinity = 12 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getStatefulSessionAffinityOrBuilderin interfaceHttpRoute.RouteActionOrBuilder
-
hasDirectResponse
public boolean hasDirectResponse()Optional. Static HTTP Response object to be returned regardless of the request.
.google.cloud.networkservices.v1.HttpRoute.HttpDirectResponse direct_response = 13 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasDirectResponsein interfaceHttpRoute.RouteActionOrBuilder- Returns:
- Whether the directResponse field is set.
-
getDirectResponse
Optional. Static HTTP Response object to be returned regardless of the request.
.google.cloud.networkservices.v1.HttpRoute.HttpDirectResponse direct_response = 13 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDirectResponsein interfaceHttpRoute.RouteActionOrBuilder- Returns:
- The directResponse.
-
getDirectResponseOrBuilder
Optional. Static HTTP Response object to be returned regardless of the request.
.google.cloud.networkservices.v1.HttpRoute.HttpDirectResponse direct_response = 13 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDirectResponseOrBuilderin interfaceHttpRoute.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 = 14 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasIdleTimeoutin interfaceHttpRoute.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 = 14 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getIdleTimeoutin interfaceHttpRoute.RouteActionOrBuilder- Returns:
- The idleTimeout.
-
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 = 14 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getIdleTimeoutOrBuilderin interfaceHttpRoute.RouteActionOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static HttpRoute.RouteAction parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpRoute.RouteAction parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpRoute.RouteAction parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpRoute.RouteAction parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpRoute.RouteAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpRoute.RouteAction parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static HttpRoute.RouteAction parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static HttpRoute.RouteAction parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static HttpRoute.RouteAction parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static HttpRoute.RouteAction parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected HttpRoute.RouteAction.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-