public static final class GrpcRoute.FaultInjectionPolicy extends GeneratedMessageV3 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
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > GrpcRoute.FaultInjectionPolicyImplements
GrpcRoute.FaultInjectionPolicyOrBuilderStatic Fields
ABORT_FIELD_NUMBER
public static final int ABORT_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
DELAY_FIELD_NUMBER
public static final int DELAY_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
Static Methods
getDefaultInstance()
public static GrpcRoute.FaultInjectionPolicy getDefaultInstance()
Returns | |
---|---|
Type | Description |
GrpcRoute.FaultInjectionPolicy |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
newBuilder()
public static GrpcRoute.FaultInjectionPolicy.Builder newBuilder()
Returns | |
---|---|
Type | Description |
GrpcRoute.FaultInjectionPolicy.Builder |
newBuilder(GrpcRoute.FaultInjectionPolicy prototype)
public static GrpcRoute.FaultInjectionPolicy.Builder newBuilder(GrpcRoute.FaultInjectionPolicy prototype)
Parameter | |
---|---|
Name | Description |
prototype |
GrpcRoute.FaultInjectionPolicy |
Returns | |
---|---|
Type | Description |
GrpcRoute.FaultInjectionPolicy.Builder |
parseDelimitedFrom(InputStream input)
public static GrpcRoute.FaultInjectionPolicy parseDelimitedFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
GrpcRoute.FaultInjectionPolicy |
Exceptions | |
---|---|
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static GrpcRoute.FaultInjectionPolicy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
GrpcRoute.FaultInjectionPolicy |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(byte[] data)
public static GrpcRoute.FaultInjectionPolicy parseFrom(byte[] data)
Parameter | |
---|---|
Name | Description |
data |
byte[] |
Returns | |
---|---|
Type | Description |
GrpcRoute.FaultInjectionPolicy |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static GrpcRoute.FaultInjectionPolicy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
GrpcRoute.FaultInjectionPolicy |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static GrpcRoute.FaultInjectionPolicy parseFrom(ByteString data)
Parameter | |
---|---|
Name | Description |
data |
ByteString |
Returns | |
---|---|
Type | Description |
GrpcRoute.FaultInjectionPolicy |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static GrpcRoute.FaultInjectionPolicy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
GrpcRoute.FaultInjectionPolicy |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static GrpcRoute.FaultInjectionPolicy parseFrom(CodedInputStream input)
Parameter | |
---|---|
Name | Description |
input |
CodedInputStream |
Returns | |
---|---|
Type | Description |
GrpcRoute.FaultInjectionPolicy |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static GrpcRoute.FaultInjectionPolicy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
GrpcRoute.FaultInjectionPolicy |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input)
public static GrpcRoute.FaultInjectionPolicy parseFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
GrpcRoute.FaultInjectionPolicy |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static GrpcRoute.FaultInjectionPolicy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
GrpcRoute.FaultInjectionPolicy |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static GrpcRoute.FaultInjectionPolicy parseFrom(ByteBuffer data)
Parameter | |
---|---|
Name | Description |
data |
ByteBuffer |
Returns | |
---|---|
Type | Description |
GrpcRoute.FaultInjectionPolicy |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static GrpcRoute.FaultInjectionPolicy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
GrpcRoute.FaultInjectionPolicy |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<GrpcRoute.FaultInjectionPolicy> parser()
Returns | |
---|---|
Type | Description |
Parser<FaultInjectionPolicy> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter | |
---|---|
Name | Description |
obj |
Object |
Returns | |
---|---|
Type | Description |
boolean |
getAbort()
public GrpcRoute.FaultInjectionPolicy.Abort getAbort()
The specification for aborting to client requests.
optional .google.events.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy.Abort abort = 2;
Returns | |
---|---|
Type | Description |
GrpcRoute.FaultInjectionPolicy.Abort |
The abort. |
getAbortOrBuilder()
public GrpcRoute.FaultInjectionPolicy.AbortOrBuilder getAbortOrBuilder()
The specification for aborting to client requests.
optional .google.events.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy.Abort abort = 2;
Returns | |
---|---|
Type | Description |
GrpcRoute.FaultInjectionPolicy.AbortOrBuilder |
getDefaultInstanceForType()
public GrpcRoute.FaultInjectionPolicy getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
GrpcRoute.FaultInjectionPolicy |
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;
Returns | |
---|---|
Type | Description |
GrpcRoute.FaultInjectionPolicy.Delay |
The delay. |
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;
Returns | |
---|---|
Type | Description |
GrpcRoute.FaultInjectionPolicy.DelayOrBuilder |
getParserForType()
public Parser<GrpcRoute.FaultInjectionPolicy> getParserForType()
Returns | |
---|---|
Type | Description |
Parser<FaultInjectionPolicy> |
getSerializedSize()
public int getSerializedSize()
Returns | |
---|---|
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns | |
---|---|
Type | Description |
UnknownFieldSet |
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. |
hashCode()
public int hashCode()
Returns | |
---|---|
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
newBuilderForType()
public GrpcRoute.FaultInjectionPolicy.Builder newBuilderForType()
Returns | |
---|---|
Type | Description |
GrpcRoute.FaultInjectionPolicy.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected GrpcRoute.FaultInjectionPolicy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter | |
---|---|
Name | Description |
parent |
BuilderParent |
Returns | |
---|---|
Type | Description |
GrpcRoute.FaultInjectionPolicy.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter | |
---|---|
Name | Description |
unused |
UnusedPrivateParameter |
Returns | |
---|---|
Type | Description |
Object |
toBuilder()
public GrpcRoute.FaultInjectionPolicy.Builder toBuilder()
Returns | |
---|---|
Type | Description |
GrpcRoute.FaultInjectionPolicy.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter | |
---|---|
Name | Description |
output |
CodedOutputStream |
Exceptions | |
---|---|
Type | Description |
IOException |