Class HttpRoute.FaultInjectionPolicy.Builder (0.9.0)

public static final class HttpRoute.FaultInjectionPolicy.Builder extends GeneratedMessageV3.Builder<HttpRoute.FaultInjectionPolicy.Builder> implements HttpRoute.FaultInjectionPolicyOrBuilder

The specification for fault injection introduced into traffic to test the resiliency of clients to destination service failure. As part of fault injection, when clients send requests to a destination, delays can be introduced by client proxy on a percentage of requests before sending those requests to the destination service. Similarly requests can be aborted by client proxy for a percentage of requests.

Protobuf type google.cloud.networkservices.v1.HttpRoute.FaultInjectionPolicy

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public HttpRoute.FaultInjectionPolicy build()
Returns
Type Description
HttpRoute.FaultInjectionPolicy

buildPartial()

public HttpRoute.FaultInjectionPolicy buildPartial()
Returns
Type Description
HttpRoute.FaultInjectionPolicy

clear()

public HttpRoute.FaultInjectionPolicy.Builder clear()
Returns
Type Description
HttpRoute.FaultInjectionPolicy.Builder
Overrides

clearAbort()

public HttpRoute.FaultInjectionPolicy.Builder clearAbort()

The specification for aborting to client requests.

.google.cloud.networkservices.v1.HttpRoute.FaultInjectionPolicy.Abort abort = 2;

Returns
Type Description
HttpRoute.FaultInjectionPolicy.Builder

clearDelay()

public HttpRoute.FaultInjectionPolicy.Builder clearDelay()

The specification for injecting delay to client requests.

.google.cloud.networkservices.v1.HttpRoute.FaultInjectionPolicy.Delay delay = 1;

Returns
Type Description
HttpRoute.FaultInjectionPolicy.Builder

clearField(Descriptors.FieldDescriptor field)

public HttpRoute.FaultInjectionPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
HttpRoute.FaultInjectionPolicy.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public HttpRoute.FaultInjectionPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
HttpRoute.FaultInjectionPolicy.Builder
Overrides

clone()

public HttpRoute.FaultInjectionPolicy.Builder clone()
Returns
Type Description
HttpRoute.FaultInjectionPolicy.Builder
Overrides

getAbort()

public HttpRoute.FaultInjectionPolicy.Abort getAbort()

The specification for aborting to client requests.

.google.cloud.networkservices.v1.HttpRoute.FaultInjectionPolicy.Abort abort = 2;

Returns
Type Description
HttpRoute.FaultInjectionPolicy.Abort

The abort.

getAbortBuilder()

public HttpRoute.FaultInjectionPolicy.Abort.Builder getAbortBuilder()

The specification for aborting to client requests.

.google.cloud.networkservices.v1.HttpRoute.FaultInjectionPolicy.Abort abort = 2;

Returns
Type Description
HttpRoute.FaultInjectionPolicy.Abort.Builder

getAbortOrBuilder()

public HttpRoute.FaultInjectionPolicy.AbortOrBuilder getAbortOrBuilder()

The specification for aborting to client requests.

.google.cloud.networkservices.v1.HttpRoute.FaultInjectionPolicy.Abort abort = 2;

Returns
Type Description
HttpRoute.FaultInjectionPolicy.AbortOrBuilder

getDefaultInstanceForType()

public HttpRoute.FaultInjectionPolicy getDefaultInstanceForType()
Returns
Type Description
HttpRoute.FaultInjectionPolicy

getDelay()

public HttpRoute.FaultInjectionPolicy.Delay getDelay()

The specification for injecting delay to client requests.

.google.cloud.networkservices.v1.HttpRoute.FaultInjectionPolicy.Delay delay = 1;

Returns
Type Description
HttpRoute.FaultInjectionPolicy.Delay

The delay.

getDelayBuilder()

public HttpRoute.FaultInjectionPolicy.Delay.Builder getDelayBuilder()

The specification for injecting delay to client requests.

.google.cloud.networkservices.v1.HttpRoute.FaultInjectionPolicy.Delay delay = 1;

Returns
Type Description
HttpRoute.FaultInjectionPolicy.Delay.Builder

getDelayOrBuilder()

public HttpRoute.FaultInjectionPolicy.DelayOrBuilder getDelayOrBuilder()

The specification for injecting delay to client requests.

.google.cloud.networkservices.v1.HttpRoute.FaultInjectionPolicy.Delay delay = 1;

Returns
Type Description
HttpRoute.FaultInjectionPolicy.DelayOrBuilder

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

hasAbort()

public boolean hasAbort()

The specification for aborting to client requests.

.google.cloud.networkservices.v1.HttpRoute.FaultInjectionPolicy.Abort abort = 2;

Returns
Type Description
boolean

Whether the abort field is set.

hasDelay()

public boolean hasDelay()

The specification for injecting delay to client requests.

.google.cloud.networkservices.v1.HttpRoute.FaultInjectionPolicy.Delay delay = 1;

Returns
Type Description
boolean

Whether the delay field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAbort(HttpRoute.FaultInjectionPolicy.Abort value)

public HttpRoute.FaultInjectionPolicy.Builder mergeAbort(HttpRoute.FaultInjectionPolicy.Abort value)

The specification for aborting to client requests.

.google.cloud.networkservices.v1.HttpRoute.FaultInjectionPolicy.Abort abort = 2;

Parameter
Name Description
value HttpRoute.FaultInjectionPolicy.Abort
Returns
Type Description
HttpRoute.FaultInjectionPolicy.Builder

mergeDelay(HttpRoute.FaultInjectionPolicy.Delay value)

public HttpRoute.FaultInjectionPolicy.Builder mergeDelay(HttpRoute.FaultInjectionPolicy.Delay value)

The specification for injecting delay to client requests.

.google.cloud.networkservices.v1.HttpRoute.FaultInjectionPolicy.Delay delay = 1;

Parameter
Name Description
value HttpRoute.FaultInjectionPolicy.Delay
Returns
Type Description
HttpRoute.FaultInjectionPolicy.Builder

mergeFrom(HttpRoute.FaultInjectionPolicy other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAbort(HttpRoute.FaultInjectionPolicy.Abort value)

public HttpRoute.FaultInjectionPolicy.Builder setAbort(HttpRoute.FaultInjectionPolicy.Abort value)

The specification for aborting to client requests.

.google.cloud.networkservices.v1.HttpRoute.FaultInjectionPolicy.Abort abort = 2;

Parameter
Name Description
value HttpRoute.FaultInjectionPolicy.Abort
Returns
Type Description
HttpRoute.FaultInjectionPolicy.Builder

setAbort(HttpRoute.FaultInjectionPolicy.Abort.Builder builderForValue)

public HttpRoute.FaultInjectionPolicy.Builder setAbort(HttpRoute.FaultInjectionPolicy.Abort.Builder builderForValue)

The specification for aborting to client requests.

.google.cloud.networkservices.v1.HttpRoute.FaultInjectionPolicy.Abort abort = 2;

Parameter
Name Description
builderForValue HttpRoute.FaultInjectionPolicy.Abort.Builder
Returns
Type Description
HttpRoute.FaultInjectionPolicy.Builder

setDelay(HttpRoute.FaultInjectionPolicy.Delay value)

public HttpRoute.FaultInjectionPolicy.Builder setDelay(HttpRoute.FaultInjectionPolicy.Delay value)

The specification for injecting delay to client requests.

.google.cloud.networkservices.v1.HttpRoute.FaultInjectionPolicy.Delay delay = 1;

Parameter
Name Description
value HttpRoute.FaultInjectionPolicy.Delay
Returns
Type Description
HttpRoute.FaultInjectionPolicy.Builder

setDelay(HttpRoute.FaultInjectionPolicy.Delay.Builder builderForValue)

public HttpRoute.FaultInjectionPolicy.Builder setDelay(HttpRoute.FaultInjectionPolicy.Delay.Builder builderForValue)

The specification for injecting delay to client requests.

.google.cloud.networkservices.v1.HttpRoute.FaultInjectionPolicy.Delay delay = 1;

Parameter
Name Description
builderForValue HttpRoute.FaultInjectionPolicy.Delay.Builder
Returns
Type Description
HttpRoute.FaultInjectionPolicy.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public HttpRoute.FaultInjectionPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
HttpRoute.FaultInjectionPolicy.Builder
Overrides

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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