Class HttpFaultAbort (1.24.0)

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
TypeDescription
int

PERCENTAGE_FIELD_NUMBER

public static final int PERCENTAGE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static HttpFaultAbort getDefaultInstance()
Returns
TypeDescription
HttpFaultAbort

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static HttpFaultAbort.Builder newBuilder()
Returns
TypeDescription
HttpFaultAbort.Builder

newBuilder(HttpFaultAbort prototype)

public static HttpFaultAbort.Builder newBuilder(HttpFaultAbort prototype)
Parameter
NameDescription
prototypeHttpFaultAbort
Returns
TypeDescription
HttpFaultAbort.Builder

parseDelimitedFrom(InputStream input)

public static HttpFaultAbort parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
HttpFaultAbort
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HttpFaultAbort parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HttpFaultAbort
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static HttpFaultAbort parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
HttpFaultAbort
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static HttpFaultAbort parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HttpFaultAbort
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static HttpFaultAbort parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
HttpFaultAbort
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static HttpFaultAbort parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HttpFaultAbort
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static HttpFaultAbort parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
HttpFaultAbort
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static HttpFaultAbort parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HttpFaultAbort
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static HttpFaultAbort parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
HttpFaultAbort
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HttpFaultAbort parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HttpFaultAbort
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static HttpFaultAbort parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
HttpFaultAbort
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static HttpFaultAbort parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HttpFaultAbort
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<HttpFaultAbort> parser()
Returns
TypeDescription
Parser<HttpFaultAbort>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public HttpFaultAbort getDefaultInstanceForType()
Returns
TypeDescription
HttpFaultAbort

getHttpStatus()

public int getHttpStatus()

The HTTP status code used to abort the request. The value must be from 200 to 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
TypeDescription
int

The httpStatus.

getParserForType()

public Parser<HttpFaultAbort> getParserForType()
Returns
TypeDescription
Parser<HttpFaultAbort>
Overrides

getPercentage()

public double getPercentage()

The percentage of traffic for connections, operations, or requests that is aborted as part of fault injection. The value must be from 0.0 to 100.0 inclusive.

optional double percentage = 151909018;

Returns
TypeDescription
double

The percentage.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasHttpStatus()

public boolean hasHttpStatus()

The HTTP status code used to abort the request. The value must be from 200 to 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
TypeDescription
boolean

Whether the httpStatus field is set.

hasPercentage()

public boolean hasPercentage()

The percentage of traffic for connections, operations, or requests that is aborted as part of fault injection. The value must be from 0.0 to 100.0 inclusive.

optional double percentage = 151909018;

Returns
TypeDescription
boolean

Whether the percentage field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public HttpFaultAbort.Builder newBuilderForType()
Returns
TypeDescription
HttpFaultAbort.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected HttpFaultAbort.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
HttpFaultAbort.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public HttpFaultAbort.Builder toBuilder()
Returns
TypeDescription
HttpFaultAbort.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException