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
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 HttpFaultAbort getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static HttpFaultAbort.Builder newBuilder()
newBuilder(HttpFaultAbort prototype)
public static HttpFaultAbort.Builder newBuilder(HttpFaultAbort prototype)
public static HttpFaultAbort parseDelimitedFrom(InputStream input)
public static HttpFaultAbort parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static HttpFaultAbort parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static HttpFaultAbort parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static HttpFaultAbort parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static HttpFaultAbort parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static HttpFaultAbort parseFrom(CodedInputStream input)
public static HttpFaultAbort parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static HttpFaultAbort parseFrom(InputStream input)
public static HttpFaultAbort parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static HttpFaultAbort parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static HttpFaultAbort parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<HttpFaultAbort> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getDefaultInstanceForType()
public HttpFaultAbort getDefaultInstanceForType()
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 |
---|
Type | Description |
int | The httpStatus.
|
getParserForType()
public Parser<HttpFaultAbort> getParserForType()
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 |
---|
Type | Description |
double | 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 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 |
---|
Type | Description |
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 |
---|
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 HttpFaultAbort.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected HttpFaultAbort.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public HttpFaultAbort.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides