public static final class HttpRoute.FaultInjectionPolicy extends GeneratedMessageV3 implements HttpRoute.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 by client proxy on a percentage of requests before sending those requests to the destination service. Similarly requests can be aborted by client proxy for a percentage of requests.
Protobuf type google.cloud.networkservices.v1.HttpRoute.FaultInjectionPolicy
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > HttpRoute.FaultInjectionPolicyImplements
HttpRoute.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 HttpRoute.FaultInjectionPolicy getDefaultInstance()
Returns | |
---|---|
Type | Description |
HttpRoute.FaultInjectionPolicy |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
newBuilder()
public static HttpRoute.FaultInjectionPolicy.Builder newBuilder()
Returns | |
---|---|
Type | Description |
HttpRoute.FaultInjectionPolicy.Builder |
newBuilder(HttpRoute.FaultInjectionPolicy prototype)
public static HttpRoute.FaultInjectionPolicy.Builder newBuilder(HttpRoute.FaultInjectionPolicy prototype)
Parameter | |
---|---|
Name | Description |
prototype |
HttpRoute.FaultInjectionPolicy |
Returns | |
---|---|
Type | Description |
HttpRoute.FaultInjectionPolicy.Builder |
parseDelimitedFrom(InputStream input)
public static HttpRoute.FaultInjectionPolicy parseDelimitedFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
HttpRoute.FaultInjectionPolicy |
Exceptions | |
---|---|
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static HttpRoute.FaultInjectionPolicy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
HttpRoute.FaultInjectionPolicy |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(byte[] data)
public static HttpRoute.FaultInjectionPolicy parseFrom(byte[] data)
Parameter | |
---|---|
Name | Description |
data |
byte[] |
Returns | |
---|---|
Type | Description |
HttpRoute.FaultInjectionPolicy |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static HttpRoute.FaultInjectionPolicy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
HttpRoute.FaultInjectionPolicy |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static HttpRoute.FaultInjectionPolicy parseFrom(ByteString data)
Parameter | |
---|---|
Name | Description |
data |
ByteString |
Returns | |
---|---|
Type | Description |
HttpRoute.FaultInjectionPolicy |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static HttpRoute.FaultInjectionPolicy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
HttpRoute.FaultInjectionPolicy |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static HttpRoute.FaultInjectionPolicy parseFrom(CodedInputStream input)
Parameter | |
---|---|
Name | Description |
input |
CodedInputStream |
Returns | |
---|---|
Type | Description |
HttpRoute.FaultInjectionPolicy |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static HttpRoute.FaultInjectionPolicy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
HttpRoute.FaultInjectionPolicy |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input)
public static HttpRoute.FaultInjectionPolicy parseFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
HttpRoute.FaultInjectionPolicy |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static HttpRoute.FaultInjectionPolicy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
HttpRoute.FaultInjectionPolicy |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static HttpRoute.FaultInjectionPolicy parseFrom(ByteBuffer data)
Parameter | |
---|---|
Name | Description |
data |
ByteBuffer |
Returns | |
---|---|
Type | Description |
HttpRoute.FaultInjectionPolicy |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static HttpRoute.FaultInjectionPolicy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
HttpRoute.FaultInjectionPolicy |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<HttpRoute.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 HttpRoute.FaultInjectionPolicy.Abort getAbort()
The specification for aborting to client requests.
.google.cloud.networkservices.v1.HttpRoute.FaultInjectionPolicy.Abort abort = 2;
Returns | |
---|---|
Type | Description |
HttpRoute.FaultInjectionPolicy.Abort |
The abort. |
getAbortOrBuilder()
public HttpRoute.FaultInjectionPolicy.AbortOrBuilder getAbortOrBuilder()
The specification for aborting to client requests.
.google.cloud.networkservices.v1.HttpRoute.FaultInjectionPolicy.Abort abort = 2;
Returns | |
---|---|
Type | Description |
HttpRoute.FaultInjectionPolicy.AbortOrBuilder |
getDefaultInstanceForType()
public HttpRoute.FaultInjectionPolicy getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
HttpRoute.FaultInjectionPolicy |
getDelay()
public HttpRoute.FaultInjectionPolicy.Delay getDelay()
The specification for injecting delay to client requests.
.google.cloud.networkservices.v1.HttpRoute.FaultInjectionPolicy.Delay delay = 1;
Returns | |
---|---|
Type | Description |
HttpRoute.FaultInjectionPolicy.Delay |
The delay. |
getDelayOrBuilder()
public HttpRoute.FaultInjectionPolicy.DelayOrBuilder getDelayOrBuilder()
The specification for injecting delay to client requests.
.google.cloud.networkservices.v1.HttpRoute.FaultInjectionPolicy.Delay delay = 1;
Returns | |
---|---|
Type | Description |
HttpRoute.FaultInjectionPolicy.DelayOrBuilder |
getParserForType()
public Parser<HttpRoute.FaultInjectionPolicy> getParserForType()
Returns | |
---|---|
Type | Description |
Parser<FaultInjectionPolicy> |
getSerializedSize()
public int getSerializedSize()
Returns | |
---|---|
Type | Description |
int |
hasAbort()
public boolean hasAbort()
The specification for aborting to client requests.
.google.cloud.networkservices.v1.HttpRoute.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.
.google.cloud.networkservices.v1.HttpRoute.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 HttpRoute.FaultInjectionPolicy.Builder newBuilderForType()
Returns | |
---|---|
Type | Description |
HttpRoute.FaultInjectionPolicy.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected HttpRoute.FaultInjectionPolicy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter | |
---|---|
Name | Description |
parent |
BuilderParent |
Returns | |
---|---|
Type | Description |
HttpRoute.FaultInjectionPolicy.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter | |
---|---|
Name | Description |
unused |
UnusedPrivateParameter |
Returns | |
---|---|
Type | Description |
Object |
toBuilder()
public HttpRoute.FaultInjectionPolicy.Builder toBuilder()
Returns | |
---|---|
Type | Description |
HttpRoute.FaultInjectionPolicy.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter | |
---|---|
Name | Description |
output |
CodedOutputStream |
Exceptions | |
---|---|
Type | Description |
IOException |