public final class HttpFaultAbort extends GeneratedMessageV3 implements HttpFaultAbortOrBuilder
Specification for how requests are aborted as part of fault injection.
Protobuf type google.cloud.compute.v1.HttpFaultAbort
Static Fields
HTTP_STATUS_FIELD_NUMBER
public static final int HTTP_STATUS_FIELD_NUMBER
Field Value
PERCENTAGE_FIELD_NUMBER
public static final int PERCENTAGE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static HttpFaultAbort getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static HttpFaultAbort.Builder newBuilder()
Returns
newBuilder(HttpFaultAbort prototype)
public static HttpFaultAbort.Builder newBuilder(HttpFaultAbort prototype)
Parameter
Returns
public static HttpFaultAbort parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static HttpFaultAbort parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static HttpFaultAbort parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static HttpFaultAbort parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static HttpFaultAbort parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static HttpFaultAbort parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static HttpFaultAbort parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static HttpFaultAbort parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static HttpFaultAbort parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static HttpFaultAbort parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static HttpFaultAbort parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static HttpFaultAbort parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<HttpFaultAbort> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public HttpFaultAbort getDefaultInstanceForType()
Returns
getHttpStatus()
public int getHttpStatus()
The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive. For gRPC protocol, the gRPC status code is mapped to HTTP status code according to this mapping table. HTTP status 200 is mapped to gRPC status UNKNOWN. Injecting an OK status is currently not supported by Traffic Director.
optional uint32 http_status = 468949897;
Returns
Type | Description |
int | The httpStatus.
|
getParserForType()
public Parser<HttpFaultAbort> getParserForType()
Returns
Overrides
getPercentage()
public double getPercentage()
The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
optional double percentage = 151909018;
Returns
Type | Description |
double | The percentage.
|
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasHttpStatus()
public boolean hasHttpStatus()
The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive. For gRPC protocol, the gRPC status code is mapped to HTTP status code according to this mapping table. HTTP status 200 is mapped to gRPC status UNKNOWN. Injecting an OK status is currently not supported by Traffic Director.
optional uint32 http_status = 468949897;
Returns
Type | Description |
boolean | Whether the httpStatus field is set.
|
hasPercentage()
public boolean hasPercentage()
The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
optional double percentage = 151909018;
Returns
Type | Description |
boolean | Whether the percentage field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public HttpFaultAbort.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected HttpFaultAbort.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public HttpFaultAbort.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions