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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public HttpFaultAbort.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public HttpFaultAbort build()
buildPartial()
public HttpFaultAbort buildPartial()
clear()
public HttpFaultAbort.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public HttpFaultAbort.Builder clearField(Descriptors.FieldDescriptor field)
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public HttpFaultAbort.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
clone()
public HttpFaultAbort.Builder clone()
Overrides
getDefaultInstanceForType()
public HttpFaultAbort getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(HttpFaultAbort other)
public HttpFaultAbort.Builder mergeFrom(HttpFaultAbort other)
public HttpFaultAbort.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public HttpFaultAbort.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final HttpFaultAbort.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public HttpFaultAbort.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public HttpFaultAbort.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final HttpFaultAbort.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides