public static final class GrpcRoute.RouteAction extends GeneratedMessageV3 implements GrpcRoute.RouteActionOrBuilder
Specifies how to route matched traffic.
Protobuf type google.events.cloud.networkservices.v1.GrpcRoute.RouteAction
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static GrpcRoute.RouteAction.Builder newBuilder()
newBuilder(GrpcRoute.RouteAction prototype)
public static GrpcRoute.RouteAction.Builder newBuilder(GrpcRoute.RouteAction prototype)
public static GrpcRoute.RouteAction parseDelimitedFrom(InputStream input)
public static GrpcRoute.RouteAction parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static GrpcRoute.RouteAction parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static GrpcRoute.RouteAction parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static GrpcRoute.RouteAction parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static GrpcRoute.RouteAction parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static GrpcRoute.RouteAction parseFrom(CodedInputStream input)
public static GrpcRoute.RouteAction parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static GrpcRoute.RouteAction parseFrom(InputStream input)
public static GrpcRoute.RouteAction parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static GrpcRoute.RouteAction parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static GrpcRoute.RouteAction parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<GrpcRoute.RouteAction> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public GrpcRoute.RouteAction getDefaultInstanceForType()
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.events.cloud.networkservices.v1.GrpcRoute.Destination destinations = 1;
Parameter |
Name |
Description |
index |
int
|
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.events.cloud.networkservices.v1.GrpcRoute.Destination destinations = 1;
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.events.cloud.networkservices.v1.GrpcRoute.Destination destinations = 1;
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.events.cloud.networkservices.v1.GrpcRoute.Destination destinations = 1;
Parameter |
Name |
Description |
index |
int
|
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.events.cloud.networkservices.v1.GrpcRoute.Destination destinations = 1;
Returns |
Type |
Description |
List<? extends com.google.events.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.events.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy fault_injection_policy = 3;
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.events.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy fault_injection_policy = 3;
getParserForType()
public Parser<GrpcRoute.RouteAction> getParserForType()
Overrides
getRetryPolicy()
public GrpcRoute.RetryPolicy getRetryPolicy()
Optional. Specifies the retry policy associated with this route.
.google.events.cloud.networkservices.v1.GrpcRoute.RetryPolicy retry_policy = 8;
getRetryPolicyOrBuilder()
public GrpcRoute.RetryPolicyOrBuilder getRetryPolicyOrBuilder()
Optional. Specifies the retry policy associated with this route.
.google.events.cloud.networkservices.v1.GrpcRoute.RetryPolicy retry_policy = 8;
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;
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;
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Overrides
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.events.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy fault_injection_policy = 3;
Returns |
Type |
Description |
boolean |
Whether the faultInjectionPolicy field is set.
|
hasRetryPolicy()
public boolean hasRetryPolicy()
Optional. Specifies the retry policy associated with this route.
.google.events.cloud.networkservices.v1.GrpcRoute.RetryPolicy retry_policy = 8;
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;
Returns |
Type |
Description |
boolean |
Whether the timeout field is set.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public GrpcRoute.RouteAction.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected GrpcRoute.RouteAction.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public GrpcRoute.RouteAction.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides