public static final class GrpcRoute.FaultInjectionPolicy.Builder extends GeneratedMessageV3.Builder<GrpcRoute.FaultInjectionPolicy.Builder> implements GrpcRoute.FaultInjectionPolicyOrBuilder
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.
Protobuf type google.events.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy
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
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GrpcRoute.FaultInjectionPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public GrpcRoute.FaultInjectionPolicy build()
buildPartial()
public GrpcRoute.FaultInjectionPolicy buildPartial()
clear()
public GrpcRoute.FaultInjectionPolicy.Builder clear()
Overrides
clearAbort()
public GrpcRoute.FaultInjectionPolicy.Builder clearAbort()
The specification for aborting to client requests.
optional .google.events.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy.Abort abort = 2;
clearDelay()
public GrpcRoute.FaultInjectionPolicy.Builder clearDelay()
The specification for injecting delay to client requests.
optional .google.events.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy.Delay delay = 1;
clearField(Descriptors.FieldDescriptor field)
public GrpcRoute.FaultInjectionPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public GrpcRoute.FaultInjectionPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public GrpcRoute.FaultInjectionPolicy.Builder clone()
Overrides
getAbort()
public GrpcRoute.FaultInjectionPolicy.Abort getAbort()
The specification for aborting to client requests.
optional .google.events.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy.Abort abort = 2;
getAbortBuilder()
public GrpcRoute.FaultInjectionPolicy.Abort.Builder getAbortBuilder()
The specification for aborting to client requests.
optional .google.events.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy.Abort abort = 2;
getAbortOrBuilder()
public GrpcRoute.FaultInjectionPolicy.AbortOrBuilder getAbortOrBuilder()
The specification for aborting to client requests.
optional .google.events.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy.Abort abort = 2;
getDefaultInstanceForType()
public GrpcRoute.FaultInjectionPolicy getDefaultInstanceForType()
getDelay()
public GrpcRoute.FaultInjectionPolicy.Delay getDelay()
The specification for injecting delay to client requests.
optional .google.events.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy.Delay delay = 1;
getDelayBuilder()
public GrpcRoute.FaultInjectionPolicy.Delay.Builder getDelayBuilder()
The specification for injecting delay to client requests.
optional .google.events.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy.Delay delay = 1;
getDelayOrBuilder()
public GrpcRoute.FaultInjectionPolicy.DelayOrBuilder getDelayOrBuilder()
The specification for injecting delay to client requests.
optional .google.events.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy.Delay delay = 1;
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
hasAbort()
public boolean hasAbort()
The specification for aborting to client requests.
optional .google.events.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy.Abort abort = 2;
Returns |
Type |
Description |
boolean |
Whether the abort field is set.
|
hasDelay()
public boolean hasDelay()
The specification for injecting delay to client requests.
optional .google.events.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy.Delay delay = 1;
Returns |
Type |
Description |
boolean |
Whether the delay field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeAbort(GrpcRoute.FaultInjectionPolicy.Abort value)
public GrpcRoute.FaultInjectionPolicy.Builder mergeAbort(GrpcRoute.FaultInjectionPolicy.Abort value)
The specification for aborting to client requests.
optional .google.events.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy.Abort abort = 2;
mergeDelay(GrpcRoute.FaultInjectionPolicy.Delay value)
public GrpcRoute.FaultInjectionPolicy.Builder mergeDelay(GrpcRoute.FaultInjectionPolicy.Delay value)
The specification for injecting delay to client requests.
optional .google.events.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy.Delay delay = 1;
mergeFrom(GrpcRoute.FaultInjectionPolicy other)
public GrpcRoute.FaultInjectionPolicy.Builder mergeFrom(GrpcRoute.FaultInjectionPolicy other)
public GrpcRoute.FaultInjectionPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public GrpcRoute.FaultInjectionPolicy.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GrpcRoute.FaultInjectionPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setAbort(GrpcRoute.FaultInjectionPolicy.Abort value)
public GrpcRoute.FaultInjectionPolicy.Builder setAbort(GrpcRoute.FaultInjectionPolicy.Abort value)
The specification for aborting to client requests.
optional .google.events.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy.Abort abort = 2;
setAbort(GrpcRoute.FaultInjectionPolicy.Abort.Builder builderForValue)
public GrpcRoute.FaultInjectionPolicy.Builder setAbort(GrpcRoute.FaultInjectionPolicy.Abort.Builder builderForValue)
The specification for aborting to client requests.
optional .google.events.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy.Abort abort = 2;
setDelay(GrpcRoute.FaultInjectionPolicy.Delay value)
public GrpcRoute.FaultInjectionPolicy.Builder setDelay(GrpcRoute.FaultInjectionPolicy.Delay value)
The specification for injecting delay to client requests.
optional .google.events.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy.Delay delay = 1;
setDelay(GrpcRoute.FaultInjectionPolicy.Delay.Builder builderForValue)
public GrpcRoute.FaultInjectionPolicy.Builder setDelay(GrpcRoute.FaultInjectionPolicy.Delay.Builder builderForValue)
The specification for injecting delay to client requests.
optional .google.events.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy.Delay delay = 1;
setField(Descriptors.FieldDescriptor field, Object value)
public GrpcRoute.FaultInjectionPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GrpcRoute.FaultInjectionPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final GrpcRoute.FaultInjectionPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides