Class GrpcRoute.RouteAction

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.networkservices.v1.GrpcRoute.RouteAction
All Implemented Interfaces:
GrpcRoute.RouteActionOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
GrpcRoute

public static final class GrpcRoute.RouteAction extends com.google.protobuf.GeneratedMessage implements GrpcRoute.RouteActionOrBuilder
 Specifies how to route matched traffic.
 
Protobuf type google.cloud.networkservices.v1.GrpcRoute.RouteAction
See Also:
  • Field Details

    • DESTINATIONS_FIELD_NUMBER

      public static final int DESTINATIONS_FIELD_NUMBER
      See Also:
    • FAULT_INJECTION_POLICY_FIELD_NUMBER

      public static final int FAULT_INJECTION_POLICY_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:
    • STATEFUL_SESSION_AFFINITY_FIELD_NUMBER

      public static final int STATEFUL_SESSION_AFFINITY_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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getDestinationsList

      public 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];
      Specified by:
      getDestinationsList in interface GrpcRoute.RouteActionOrBuilder
    • getDestinationsOrBuilderList

      public 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];
      Specified by:
      getDestinationsOrBuilderList in interface GrpcRoute.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:
      getDestinationsCount in interface GrpcRoute.RouteActionOrBuilder
    • getDestinations

      public 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];
      Specified by:
      getDestinations in interface GrpcRoute.RouteActionOrBuilder
    • getDestinationsOrBuilder

      public 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];
      Specified by:
      getDestinationsOrBuilder in interface GrpcRoute.RouteActionOrBuilder
    • 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:
      hasFaultInjectionPolicy in interface GrpcRoute.RouteActionOrBuilder
      Returns:
      Whether the faultInjectionPolicy field is set.
    • getFaultInjectionPolicy

      public 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];
      Specified by:
      getFaultInjectionPolicy in interface GrpcRoute.RouteActionOrBuilder
      Returns:
      The faultInjectionPolicy.
    • getFaultInjectionPolicyOrBuilder

      public 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];
      Specified by:
      getFaultInjectionPolicyOrBuilder in interface GrpcRoute.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:
      hasTimeout in interface GrpcRoute.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:
      getTimeout in interface GrpcRoute.RouteActionOrBuilder
      Returns:
      The timeout.
    • 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:
      getTimeoutOrBuilder in interface GrpcRoute.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:
      hasRetryPolicy in interface GrpcRoute.RouteActionOrBuilder
      Returns:
      Whether the retryPolicy field is set.
    • getRetryPolicy

      public 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];
      Specified by:
      getRetryPolicy in interface GrpcRoute.RouteActionOrBuilder
      Returns:
      The retryPolicy.
    • getRetryPolicyOrBuilder

      public 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];
      Specified by:
      getRetryPolicyOrBuilder in interface GrpcRoute.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:
      hasStatefulSessionAffinity in interface GrpcRoute.RouteActionOrBuilder
      Returns:
      Whether the statefulSessionAffinity field is set.
    • getStatefulSessionAffinity

      public 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];
      Specified by:
      getStatefulSessionAffinity in interface GrpcRoute.RouteActionOrBuilder
      Returns:
      The statefulSessionAffinity.
    • getStatefulSessionAffinityOrBuilder

      public 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];
      Specified by:
      getStatefulSessionAffinityOrBuilder in interface GrpcRoute.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:
      hasIdleTimeout in interface GrpcRoute.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:
      getIdleTimeout in interface GrpcRoute.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 = 12 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIdleTimeoutOrBuilder in interface GrpcRoute.RouteActionOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static GrpcRoute.RouteAction parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GrpcRoute.RouteAction parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GrpcRoute.RouteAction parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GrpcRoute.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 GrpcRoute.RouteAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GrpcRoute.RouteAction parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GrpcRoute.RouteAction parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GrpcRoute.RouteAction parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static GrpcRoute.RouteAction parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static GrpcRoute.RouteAction parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GrpcRoute.RouteAction parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GrpcRoute.RouteAction parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public GrpcRoute.RouteAction.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static GrpcRoute.RouteAction.Builder newBuilder()
    • newBuilder

      public static GrpcRoute.RouteAction.Builder newBuilder(GrpcRoute.RouteAction prototype)
    • toBuilder

      public GrpcRoute.RouteAction.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected GrpcRoute.RouteAction.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static GrpcRoute.RouteAction getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<GrpcRoute.RouteAction> parser()
    • getParserForType

      public com.google.protobuf.Parser<GrpcRoute.RouteAction> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public GrpcRoute.RouteAction getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder