public static final class HttpFaultAbort.Builder extends GeneratedMessageV3.Builder<HttpFaultAbort.Builder> implements HttpFaultAbortOrBuilder
Specification for how requests are aborted as part of fault injection.
Protobuf type google.cloud.compute.v1.HttpFaultAbort
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public HttpFaultAbort.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public HttpFaultAbort build()
Returns
buildPartial()
public HttpFaultAbort buildPartial()
Returns
clear()
public HttpFaultAbort.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public HttpFaultAbort.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearHttpStatus()
public HttpFaultAbort.Builder clearHttpStatus()
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
clearOneof(Descriptors.OneofDescriptor oneof)
public HttpFaultAbort.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearPercentage()
public HttpFaultAbort.Builder clearPercentage()
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
clone()
public HttpFaultAbort.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public HttpFaultAbort getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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.
|
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.
|
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.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(HttpFaultAbort other)
public HttpFaultAbort.Builder mergeFrom(HttpFaultAbort other)
Parameter
Returns
public HttpFaultAbort.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public HttpFaultAbort.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final HttpFaultAbort.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public HttpFaultAbort.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setHttpStatus(int value)
public HttpFaultAbort.Builder setHttpStatus(int value)
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;
Parameter
Name | Description |
value | int
The httpStatus to set.
|
Returns
setPercentage(double value)
public HttpFaultAbort.Builder setPercentage(double value)
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;
Parameter
Name | Description |
value | double
The percentage to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public HttpFaultAbort.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final HttpFaultAbort.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides