Class GrpcRoute.RouteAction (0.4.0)

public static final class GrpcRoute.RouteAction extends GeneratedMessageV3 implements GrpcRoute.RouteActionOrBuilder

Specifies how to route matched traffic.

Protobuf type google.cloud.networkservices.v1.GrpcRoute.RouteAction

Static Fields

DESTINATIONS_FIELD_NUMBER

public static final int DESTINATIONS_FIELD_NUMBER
Field Value
Type Description
int

FAULT_INJECTION_POLICY_FIELD_NUMBER

public static final int FAULT_INJECTION_POLICY_FIELD_NUMBER
Field Value
Type Description
int

RETRY_POLICY_FIELD_NUMBER

public static final int RETRY_POLICY_FIELD_NUMBER
Field Value
Type Description
int

TIMEOUT_FIELD_NUMBER

public static final int TIMEOUT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static GrpcRoute.RouteAction getDefaultInstance()
Returns
Type Description
GrpcRoute.RouteAction

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static GrpcRoute.RouteAction.Builder newBuilder()
Returns
Type Description
GrpcRoute.RouteAction.Builder

newBuilder(GrpcRoute.RouteAction prototype)

public static GrpcRoute.RouteAction.Builder newBuilder(GrpcRoute.RouteAction prototype)
Parameter
Name Description
prototype GrpcRoute.RouteAction
Returns
Type Description
GrpcRoute.RouteAction.Builder

parseDelimitedFrom(InputStream input)

public static GrpcRoute.RouteAction parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
GrpcRoute.RouteAction
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GrpcRoute.RouteAction parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GrpcRoute.RouteAction
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static GrpcRoute.RouteAction parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
GrpcRoute.RouteAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static GrpcRoute.RouteAction parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GrpcRoute.RouteAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static GrpcRoute.RouteAction parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
GrpcRoute.RouteAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static GrpcRoute.RouteAction parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GrpcRoute.RouteAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static GrpcRoute.RouteAction parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
GrpcRoute.RouteAction
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static GrpcRoute.RouteAction parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GrpcRoute.RouteAction
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static GrpcRoute.RouteAction parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
GrpcRoute.RouteAction
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GrpcRoute.RouteAction parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GrpcRoute.RouteAction
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static GrpcRoute.RouteAction parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
GrpcRoute.RouteAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static GrpcRoute.RouteAction parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GrpcRoute.RouteAction
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<GrpcRoute.RouteAction> parser()
Returns
Type Description
Parser<RouteAction>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public GrpcRoute.RouteAction getDefaultInstanceForType()
Returns
Type Description
GrpcRoute.RouteAction

getDestinations(int index)

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];

Parameter
Name Description
index int
Returns
Type Description
GrpcRoute.Destination

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];

Returns
Type Description
int

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];

Returns
Type Description
List<Destination>

getDestinationsOrBuilder(int index)

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];

Parameter
Name Description
index int
Returns
Type Description
GrpcRoute.DestinationOrBuilder

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];

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

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];

Returns
Type Description
GrpcRoute.FaultInjectionPolicy

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];

Returns
Type Description
GrpcRoute.FaultInjectionPolicyOrBuilder

getParserForType()

public Parser<GrpcRoute.RouteAction> getParserForType()
Returns
Type Description
Parser<RouteAction>
Overrides

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];

Returns
Type Description
GrpcRoute.RetryPolicy

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];

Returns
Type Description
GrpcRoute.RetryPolicyOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTimeout()

public Duration getTimeout()

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

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

Returns
Type Description
Duration

The timeout.

getTimeoutOrBuilder()

public DurationOrBuilder getTimeoutOrBuilder()

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

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

Returns
Type Description
DurationOrBuilder

hasFaultInjectionPolicy()

public boolean hasFaultInjectionPolicy()

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

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

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

Returns
Type Description
boolean

Whether the faultInjectionPolicy field is set.

hasRetryPolicy()

public boolean hasRetryPolicy()

Optional. Specifies the retry policy associated with this route.

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

Returns
Type Description
boolean

Whether the retryPolicy field is set.

hasTimeout()

public boolean hasTimeout()

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

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

Returns
Type Description
boolean

Whether the timeout field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public GrpcRoute.RouteAction.Builder newBuilderForType()
Returns
Type Description
GrpcRoute.RouteAction.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected GrpcRoute.RouteAction.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
GrpcRoute.RouteAction.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public GrpcRoute.RouteAction.Builder toBuilder()
Returns
Type Description
GrpcRoute.RouteAction.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException