public static final class HttpFaultInjection.Builder extends GeneratedMessageV3.Builder<HttpFaultInjection.Builder> implements HttpFaultInjectionOrBuilder
The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced by the load balancer on a percentage of requests before sending those request to the backend service. Similarly requests from clients can be aborted by the load balancer for a percentage of requests.
Protobuf type google.cloud.compute.v1.HttpFaultInjection
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 HttpFaultInjection.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public HttpFaultInjection build()
buildPartial()
public HttpFaultInjection buildPartial()
clear()
public HttpFaultInjection.Builder clear()
Overrides
clearAbort()
public HttpFaultInjection.Builder clearAbort()
The specification for how client requests are aborted as part of fault injection.
optional .google.cloud.compute.v1.HttpFaultAbort abort = 92611376;
clearDelay()
public HttpFaultInjection.Builder clearDelay()
The specification for how client requests are delayed as part of fault injection, before being sent to a backend service.
optional .google.cloud.compute.v1.HttpFaultDelay delay = 95467907;
clearField(Descriptors.FieldDescriptor field)
public HttpFaultInjection.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public HttpFaultInjection.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public HttpFaultInjection.Builder clone()
Overrides
getAbort()
public HttpFaultAbort getAbort()
The specification for how client requests are aborted as part of fault injection.
optional .google.cloud.compute.v1.HttpFaultAbort abort = 92611376;
getAbortBuilder()
public HttpFaultAbort.Builder getAbortBuilder()
The specification for how client requests are aborted as part of fault injection.
optional .google.cloud.compute.v1.HttpFaultAbort abort = 92611376;
getAbortOrBuilder()
public HttpFaultAbortOrBuilder getAbortOrBuilder()
The specification for how client requests are aborted as part of fault injection.
optional .google.cloud.compute.v1.HttpFaultAbort abort = 92611376;
getDefaultInstanceForType()
public HttpFaultInjection getDefaultInstanceForType()
getDelay()
public HttpFaultDelay getDelay()
The specification for how client requests are delayed as part of fault injection, before being sent to a backend service.
optional .google.cloud.compute.v1.HttpFaultDelay delay = 95467907;
getDelayBuilder()
public HttpFaultDelay.Builder getDelayBuilder()
The specification for how client requests are delayed as part of fault injection, before being sent to a backend service.
optional .google.cloud.compute.v1.HttpFaultDelay delay = 95467907;
getDelayOrBuilder()
public HttpFaultDelayOrBuilder getDelayOrBuilder()
The specification for how client requests are delayed as part of fault injection, before being sent to a backend service.
optional .google.cloud.compute.v1.HttpFaultDelay delay = 95467907;
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
hasAbort()
public boolean hasAbort()
The specification for how client requests are aborted as part of fault injection.
optional .google.cloud.compute.v1.HttpFaultAbort abort = 92611376;
Returns |
---|
Type | Description |
boolean | Whether the abort field is set.
|
hasDelay()
public boolean hasDelay()
The specification for how client requests are delayed as part of fault injection, before being sent to a backend service.
optional .google.cloud.compute.v1.HttpFaultDelay delay = 95467907;
Returns |
---|
Type | Description |
boolean | Whether the delay field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeAbort(HttpFaultAbort value)
public HttpFaultInjection.Builder mergeAbort(HttpFaultAbort value)
The specification for how client requests are aborted as part of fault injection.
optional .google.cloud.compute.v1.HttpFaultAbort abort = 92611376;
mergeDelay(HttpFaultDelay value)
public HttpFaultInjection.Builder mergeDelay(HttpFaultDelay value)
The specification for how client requests are delayed as part of fault injection, before being sent to a backend service.
optional .google.cloud.compute.v1.HttpFaultDelay delay = 95467907;
mergeFrom(HttpFaultInjection other)
public HttpFaultInjection.Builder mergeFrom(HttpFaultInjection other)
public HttpFaultInjection.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public HttpFaultInjection.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final HttpFaultInjection.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setAbort(HttpFaultAbort value)
public HttpFaultInjection.Builder setAbort(HttpFaultAbort value)
The specification for how client requests are aborted as part of fault injection.
optional .google.cloud.compute.v1.HttpFaultAbort abort = 92611376;
setAbort(HttpFaultAbort.Builder builderForValue)
public HttpFaultInjection.Builder setAbort(HttpFaultAbort.Builder builderForValue)
The specification for how client requests are aborted as part of fault injection.
optional .google.cloud.compute.v1.HttpFaultAbort abort = 92611376;
setDelay(HttpFaultDelay value)
public HttpFaultInjection.Builder setDelay(HttpFaultDelay value)
The specification for how client requests are delayed as part of fault injection, before being sent to a backend service.
optional .google.cloud.compute.v1.HttpFaultDelay delay = 95467907;
setDelay(HttpFaultDelay.Builder builderForValue)
public HttpFaultInjection.Builder setDelay(HttpFaultDelay.Builder builderForValue)
The specification for how client requests are delayed as part of fault injection, before being sent to a backend service.
optional .google.cloud.compute.v1.HttpFaultDelay delay = 95467907;
setField(Descriptors.FieldDescriptor field, Object value)
public HttpFaultInjection.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public HttpFaultInjection.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final HttpFaultInjection.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides