Class HttpFaultAbort.Builder (1.52.0)

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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public HttpFaultAbort.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
HttpFaultAbort.Builder
Overrides

build()

public HttpFaultAbort build()
Returns
Type Description
HttpFaultAbort

buildPartial()

public HttpFaultAbort buildPartial()
Returns
Type Description
HttpFaultAbort

clear()

public HttpFaultAbort.Builder clear()
Returns
Type Description
HttpFaultAbort.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public HttpFaultAbort.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
HttpFaultAbort.Builder
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
Type Description
HttpFaultAbort.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public HttpFaultAbort.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
HttpFaultAbort.Builder
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
Type Description
HttpFaultAbort.Builder

This builder for chaining.

clone()

public HttpFaultAbort.Builder clone()
Returns
Type Description
HttpFaultAbort.Builder
Overrides

getDefaultInstanceForType()

public HttpFaultAbort getDefaultInstanceForType()
Returns
Type Description
HttpFaultAbort

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(HttpFaultAbort other)

public HttpFaultAbort.Builder mergeFrom(HttpFaultAbort other)
Parameter
Name Description
other HttpFaultAbort
Returns
Type Description
HttpFaultAbort.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public HttpFaultAbort.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpFaultAbort.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public HttpFaultAbort.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
HttpFaultAbort.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final HttpFaultAbort.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
HttpFaultAbort.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public HttpFaultAbort.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
HttpFaultAbort.Builder
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
Type Description
HttpFaultAbort.Builder

This builder for chaining.

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
Type Description
HttpFaultAbort.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public HttpFaultAbort.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
HttpFaultAbort.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final HttpFaultAbort.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
HttpFaultAbort.Builder
Overrides