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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static 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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static GrpcRoute.FaultInjectionPolicy.Abort.Builder newBuilder()
newBuilder(GrpcRoute.FaultInjectionPolicy.Abort prototype)
public static GrpcRoute.FaultInjectionPolicy.Abort.Builder newBuilder(GrpcRoute.FaultInjectionPolicy.Abort prototype)
public static GrpcRoute.FaultInjectionPolicy.Abort parseDelimitedFrom(InputStream input)
public static GrpcRoute.FaultInjectionPolicy.Abort parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static GrpcRoute.FaultInjectionPolicy.Abort parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static GrpcRoute.FaultInjectionPolicy.Abort parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static GrpcRoute.FaultInjectionPolicy.Abort parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static GrpcRoute.FaultInjectionPolicy.Abort parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static GrpcRoute.FaultInjectionPolicy.Abort parseFrom(CodedInputStream input)
public static GrpcRoute.FaultInjectionPolicy.Abort parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static GrpcRoute.FaultInjectionPolicy.Abort parseFrom(InputStream input)
public static GrpcRoute.FaultInjectionPolicy.Abort parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static GrpcRoute.FaultInjectionPolicy.Abort parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static GrpcRoute.FaultInjectionPolicy.Abort parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<GrpcRoute.FaultInjectionPolicy.Abort> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public GrpcRoute.FaultInjectionPolicy.Abort getDefaultInstanceForType()
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()
Overrides
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 |
|
Overrides
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()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public GrpcRoute.FaultInjectionPolicy.Abort.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected GrpcRoute.FaultInjectionPolicy.Abort.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public GrpcRoute.FaultInjectionPolicy.Abort.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides