Send feedback
Class HttpFaultInjection.Builder (1.12.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.12.0 keyboard_arrow_down
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
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public HttpFaultInjection . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public HttpFaultInjection build ()
Returns
buildPartial()
public HttpFaultInjection buildPartial ()
Returns
clear()
public HttpFaultInjection . Builder clear ()
Returns
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;
Returns
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;
Returns
clearField(Descriptors.FieldDescriptor field)
public HttpFaultInjection . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public HttpFaultInjection . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clone()
public HttpFaultInjection . Builder clone ()
Returns
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;
Returns
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;
Returns
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;
Returns
getDefaultInstanceForType()
public HttpFaultInjection getDefaultInstanceForType ()
Returns
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;
Returns
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;
Returns
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;
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
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 ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
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;
Parameter
Returns
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;
Parameter
Returns
mergeFrom(HttpFaultInjection other)
public HttpFaultInjection . Builder mergeFrom ( HttpFaultInjection other )
Parameter
Returns
public HttpFaultInjection . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public HttpFaultInjection . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final HttpFaultInjection . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
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;
Parameter
Returns
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;
Parameter
Returns
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;
Parameter
Returns
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;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public HttpFaultInjection . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public HttpFaultInjection . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final HttpFaultInjection . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]