public static final class GrpcRoute.RouteAction.Builder extends GeneratedMessageV3.Builder<GrpcRoute.RouteAction.Builder> implements GrpcRoute.RouteActionOrBuilder
Specifies how to route matched traffic.
Protobuf type google.events.cloud.networkservices.v1.GrpcRoute.RouteAction
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllDestinations(Iterable<? extends GrpcRoute.Destination> values)
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.events.cloud.networkservices.v1.GrpcRoute.Destination destinations = 1;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.events.cloud.networkservices.v1.GrpcRoute.Destination>
|
addDestinations(GrpcRoute.Destination value)
public GrpcRoute.RouteAction.Builder addDestinations(GrpcRoute.Destination value)
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;
addDestinations(GrpcRoute.Destination.Builder builderForValue)
public GrpcRoute.RouteAction.Builder addDestinations(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.events.cloud.networkservices.v1.GrpcRoute.Destination destinations = 1;
addDestinations(int index, GrpcRoute.Destination value)
public GrpcRoute.RouteAction.Builder addDestinations(int index, GrpcRoute.Destination value)
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;
addDestinations(int index, GrpcRoute.Destination.Builder builderForValue)
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.events.cloud.networkservices.v1.GrpcRoute.Destination destinations = 1;
addDestinationsBuilder()
public GrpcRoute.Destination.Builder 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.events.cloud.networkservices.v1.GrpcRoute.Destination destinations = 1;
addDestinationsBuilder(int index)
public GrpcRoute.Destination.Builder addDestinationsBuilder(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
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GrpcRoute.RouteAction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public GrpcRoute.RouteAction build()
buildPartial()
public GrpcRoute.RouteAction buildPartial()
clear()
public GrpcRoute.RouteAction.Builder clear()
Overrides
clearDestinations()
public GrpcRoute.RouteAction.Builder 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.events.cloud.networkservices.v1.GrpcRoute.Destination destinations = 1;
clearFaultInjectionPolicy()
public GrpcRoute.RouteAction.Builder 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.events.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy fault_injection_policy = 3;
clearField(Descriptors.FieldDescriptor field)
public GrpcRoute.RouteAction.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public GrpcRoute.RouteAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearRetryPolicy()
public GrpcRoute.RouteAction.Builder clearRetryPolicy()
Optional. Specifies the retry policy associated with this route.
.google.events.cloud.networkservices.v1.GrpcRoute.RetryPolicy retry_policy = 8;
clearTimeout()
public GrpcRoute.RouteAction.Builder 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;
clone()
public GrpcRoute.RouteAction.Builder clone()
Overrides
getDefaultInstanceForType()
public GrpcRoute.RouteAction getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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
|
getDestinationsBuilder(int index)
public GrpcRoute.Destination.Builder getDestinationsBuilder(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
|
getDestinationsBuilderList()
public List<GrpcRoute.Destination.Builder> 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.events.cloud.networkservices.v1.GrpcRoute.Destination destinations = 1;
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;
getFaultInjectionPolicyBuilder()
public GrpcRoute.FaultInjectionPolicy.Builder 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.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;
getRetryPolicy()
public GrpcRoute.RetryPolicy getRetryPolicy()
Optional. Specifies the retry policy associated with this route.
.google.events.cloud.networkservices.v1.GrpcRoute.RetryPolicy retry_policy = 8;
getRetryPolicyBuilder()
public GrpcRoute.RetryPolicy.Builder getRetryPolicyBuilder()
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;
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.
|
getTimeoutBuilder()
public 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;
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;
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.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFaultInjectionPolicy(GrpcRoute.FaultInjectionPolicy value)
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.events.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy fault_injection_policy = 3;
mergeFrom(GrpcRoute.RouteAction other)
public GrpcRoute.RouteAction.Builder mergeFrom(GrpcRoute.RouteAction other)
public GrpcRoute.RouteAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public GrpcRoute.RouteAction.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeRetryPolicy(GrpcRoute.RetryPolicy value)
public GrpcRoute.RouteAction.Builder mergeRetryPolicy(GrpcRoute.RetryPolicy value)
Optional. Specifies the retry policy associated with this route.
.google.events.cloud.networkservices.v1.GrpcRoute.RetryPolicy retry_policy = 8;
mergeTimeout(Duration value)
public GrpcRoute.RouteAction.Builder mergeTimeout(Duration value)
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;
Parameter |
Name |
Description |
value |
Duration
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GrpcRoute.RouteAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeDestinations(int index)
public GrpcRoute.RouteAction.Builder removeDestinations(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
|
setDestinations(int index, GrpcRoute.Destination value)
public GrpcRoute.RouteAction.Builder setDestinations(int index, GrpcRoute.Destination value)
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;
setDestinations(int index, GrpcRoute.Destination.Builder builderForValue)
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.events.cloud.networkservices.v1.GrpcRoute.Destination destinations = 1;
setFaultInjectionPolicy(GrpcRoute.FaultInjectionPolicy value)
public GrpcRoute.RouteAction.Builder setFaultInjectionPolicy(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.events.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy fault_injection_policy = 3;
setFaultInjectionPolicy(GrpcRoute.FaultInjectionPolicy.Builder builderForValue)
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.events.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy fault_injection_policy = 3;
setField(Descriptors.FieldDescriptor field, Object value)
public GrpcRoute.RouteAction.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GrpcRoute.RouteAction.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setRetryPolicy(GrpcRoute.RetryPolicy value)
public GrpcRoute.RouteAction.Builder setRetryPolicy(GrpcRoute.RetryPolicy value)
Optional. Specifies the retry policy associated with this route.
.google.events.cloud.networkservices.v1.GrpcRoute.RetryPolicy retry_policy = 8;
setRetryPolicy(GrpcRoute.RetryPolicy.Builder builderForValue)
public GrpcRoute.RouteAction.Builder setRetryPolicy(GrpcRoute.RetryPolicy.Builder builderForValue)
Optional. Specifies the retry policy associated with this route.
.google.events.cloud.networkservices.v1.GrpcRoute.RetryPolicy retry_policy = 8;
setTimeout(Duration value)
public GrpcRoute.RouteAction.Builder setTimeout(Duration value)
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;
Parameter |
Name |
Description |
value |
Duration
|
setTimeout(Duration.Builder builderForValue)
public GrpcRoute.RouteAction.Builder setTimeout(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;
Parameter |
Name |
Description |
builderForValue |
Builder
|
setUnknownFields(UnknownFieldSet unknownFields)
public final GrpcRoute.RouteAction.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides