public static final class GrpcRoute.FaultInjectionPolicy.Abort extends GeneratedMessageV3 implements GrpcRoute.FaultInjectionPolicy.AbortOrBuilder
Specification of how client requests are aborted as part of fault injection before being sent to a destination.
Protobuf type google.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy.Abort
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > GrpcRoute.FaultInjectionPolicy.AbortStatic Fields
HTTP_STATUS_FIELD_NUMBER
public static final int HTTP_STATUS_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
PERCENTAGE_FIELD_NUMBER
public static final int PERCENTAGE_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
Static Methods
getDefaultInstance()
public static GrpcRoute.FaultInjectionPolicy.Abort getDefaultInstance()
Returns | |
---|---|
Type | Description |
GrpcRoute.FaultInjectionPolicy.Abort |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
newBuilder()
public static GrpcRoute.FaultInjectionPolicy.Abort.Builder newBuilder()
Returns | |
---|---|
Type | Description |
GrpcRoute.FaultInjectionPolicy.Abort.Builder |
newBuilder(GrpcRoute.FaultInjectionPolicy.Abort prototype)
public static GrpcRoute.FaultInjectionPolicy.Abort.Builder newBuilder(GrpcRoute.FaultInjectionPolicy.Abort prototype)
Parameter | |
---|---|
Name | Description |
prototype |
GrpcRoute.FaultInjectionPolicy.Abort |
Returns | |
---|---|
Type | Description |
GrpcRoute.FaultInjectionPolicy.Abort.Builder |
parseDelimitedFrom(InputStream input)
public static GrpcRoute.FaultInjectionPolicy.Abort parseDelimitedFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
GrpcRoute.FaultInjectionPolicy.Abort |
Exceptions | |
---|---|
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static GrpcRoute.FaultInjectionPolicy.Abort parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
GrpcRoute.FaultInjectionPolicy.Abort |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(byte[] data)
public static GrpcRoute.FaultInjectionPolicy.Abort parseFrom(byte[] data)
Parameter | |
---|---|
Name | Description |
data |
byte[] |
Returns | |
---|---|
Type | Description |
GrpcRoute.FaultInjectionPolicy.Abort |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static GrpcRoute.FaultInjectionPolicy.Abort parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
GrpcRoute.FaultInjectionPolicy.Abort |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static GrpcRoute.FaultInjectionPolicy.Abort parseFrom(ByteString data)
Parameter | |
---|---|
Name | Description |
data |
ByteString |
Returns | |
---|---|
Type | Description |
GrpcRoute.FaultInjectionPolicy.Abort |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static GrpcRoute.FaultInjectionPolicy.Abort parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
GrpcRoute.FaultInjectionPolicy.Abort |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static GrpcRoute.FaultInjectionPolicy.Abort parseFrom(CodedInputStream input)
Parameter | |
---|---|
Name | Description |
input |
CodedInputStream |
Returns | |
---|---|
Type | Description |
GrpcRoute.FaultInjectionPolicy.Abort |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static GrpcRoute.FaultInjectionPolicy.Abort parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
GrpcRoute.FaultInjectionPolicy.Abort |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input)
public static GrpcRoute.FaultInjectionPolicy.Abort parseFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
GrpcRoute.FaultInjectionPolicy.Abort |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static GrpcRoute.FaultInjectionPolicy.Abort parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
GrpcRoute.FaultInjectionPolicy.Abort |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static GrpcRoute.FaultInjectionPolicy.Abort parseFrom(ByteBuffer data)
Parameter | |
---|---|
Name | Description |
data |
ByteBuffer |
Returns | |
---|---|
Type | Description |
GrpcRoute.FaultInjectionPolicy.Abort |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static GrpcRoute.FaultInjectionPolicy.Abort parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
GrpcRoute.FaultInjectionPolicy.Abort |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<GrpcRoute.FaultInjectionPolicy.Abort> parser()
Returns | |
---|---|
Type | Description |
Parser<Abort> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter | |
---|---|
Name | Description |
obj |
Object |
Returns | |
---|---|
Type | Description |
boolean |
getDefaultInstanceForType()
public GrpcRoute.FaultInjectionPolicy.Abort getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
GrpcRoute.FaultInjectionPolicy.Abort |
getHttpStatus()
public int getHttpStatus()
The HTTP status code used to abort the request.
The value must be between 200 and 599 inclusive.
optional int32 http_status = 1;
Returns | |
---|---|
Type | Description |
int |
The httpStatus. |
getParserForType()
public Parser<GrpcRoute.FaultInjectionPolicy.Abort> getParserForType()
Returns | |
---|---|
Type | Description |
Parser<Abort> |
getPercentage()
public int getPercentage()
The percentage of traffic which will be aborted.
The value must be between [0, 100]
optional int32 percentage = 2;
Returns | |
---|---|
Type | Description |
int |
The percentage. |
getSerializedSize()
public int getSerializedSize()
Returns | |
---|---|
Type | Description |
int |
hasHttpStatus()
public boolean hasHttpStatus()
The HTTP status code used to abort the request.
The value must be between 200 and 599 inclusive.
optional int32 http_status = 1;
Returns | |
---|---|
Type | Description |
boolean |
Whether the httpStatus field is set. |
hasPercentage()
public boolean hasPercentage()
The percentage of traffic which will be aborted.
The value must be between [0, 100]
optional int32 percentage = 2;
Returns | |
---|---|
Type | Description |
boolean |
Whether the percentage 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.Abort.Builder newBuilderForType()
Returns | |
---|---|
Type | Description |
GrpcRoute.FaultInjectionPolicy.Abort.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected GrpcRoute.FaultInjectionPolicy.Abort.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter | |
---|---|
Name | Description |
parent |
BuilderParent |
Returns | |
---|---|
Type | Description |
GrpcRoute.FaultInjectionPolicy.Abort.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter | |
---|---|
Name | Description |
unused |
UnusedPrivateParameter |
Returns | |
---|---|
Type | Description |
Object |
toBuilder()
public GrpcRoute.FaultInjectionPolicy.Abort.Builder toBuilder()
Returns | |
---|---|
Type | Description |
GrpcRoute.FaultInjectionPolicy.Abort.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter | |
---|---|
Name | Description |
output |
CodedOutputStream |
Exceptions | |
---|---|
Type | Description |
IOException |