Class GrpcRoute.FaultInjectionPolicy.Builder (0.3.0)

public static final class GrpcRoute.FaultInjectionPolicy.Builder extends GeneratedMessageV3.Builder<GrpcRoute.FaultInjectionPolicy.Builder> implements GrpcRoute.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 on a percentage of requests before sending those requests to the destination service. Similarly requests from clients can be aborted by for a percentage of requests.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearAbort()

public GrpcRoute.FaultInjectionPolicy.Builder clearAbort()

The specification for aborting to client requests.

optional .google.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy.Abort abort = 2;

Returns
Type Description
GrpcRoute.FaultInjectionPolicy.Builder

clearDelay()

public GrpcRoute.FaultInjectionPolicy.Builder clearDelay()

The specification for injecting delay to client requests.

optional .google.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy.Delay delay = 1;

Returns
Type Description
GrpcRoute.FaultInjectionPolicy.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAbort()

public GrpcRoute.FaultInjectionPolicy.Abort getAbort()

The specification for aborting to client requests.

optional .google.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy.Abort abort = 2;

Returns
Type Description
GrpcRoute.FaultInjectionPolicy.Abort

The abort.

getAbortBuilder()

public GrpcRoute.FaultInjectionPolicy.Abort.Builder getAbortBuilder()

The specification for aborting to client requests.

optional .google.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy.Abort abort = 2;

Returns
Type Description
GrpcRoute.FaultInjectionPolicy.Abort.Builder

getAbortOrBuilder()

public GrpcRoute.FaultInjectionPolicy.AbortOrBuilder getAbortOrBuilder()

The specification for aborting to client requests.

optional .google.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy.Abort abort = 2;

Returns
Type Description
GrpcRoute.FaultInjectionPolicy.AbortOrBuilder

getDefaultInstanceForType()

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

getDelay()

public GrpcRoute.FaultInjectionPolicy.Delay getDelay()

The specification for injecting delay to client requests.

optional .google.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy.Delay delay = 1;

Returns
Type Description
GrpcRoute.FaultInjectionPolicy.Delay

The delay.

getDelayBuilder()

public GrpcRoute.FaultInjectionPolicy.Delay.Builder getDelayBuilder()

The specification for injecting delay to client requests.

optional .google.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy.Delay delay = 1;

Returns
Type Description
GrpcRoute.FaultInjectionPolicy.Delay.Builder

getDelayOrBuilder()

public GrpcRoute.FaultInjectionPolicy.DelayOrBuilder getDelayOrBuilder()

The specification for injecting delay to client requests.

optional .google.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy.Delay delay = 1;

Returns
Type Description
GrpcRoute.FaultInjectionPolicy.DelayOrBuilder

getDescriptorForType()

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

hasAbort()

public boolean hasAbort()

The specification for aborting to client requests.

optional .google.cloud.networkservices.v1.GrpcRoute.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.

optional .google.cloud.networkservices.v1.GrpcRoute.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(GrpcRoute.FaultInjectionPolicy.Abort value)

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

The specification for aborting to client requests.

optional .google.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy.Abort abort = 2;

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

mergeDelay(GrpcRoute.FaultInjectionPolicy.Delay value)

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

The specification for injecting delay to client requests.

optional .google.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy.Delay delay = 1;

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

mergeFrom(GrpcRoute.FaultInjectionPolicy other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAbort(GrpcRoute.FaultInjectionPolicy.Abort value)

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

The specification for aborting to client requests.

optional .google.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy.Abort abort = 2;

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

setAbort(GrpcRoute.FaultInjectionPolicy.Abort.Builder builderForValue)

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

The specification for aborting to client requests.

optional .google.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy.Abort abort = 2;

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

setDelay(GrpcRoute.FaultInjectionPolicy.Delay value)

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

The specification for injecting delay to client requests.

optional .google.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy.Delay delay = 1;

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

setDelay(GrpcRoute.FaultInjectionPolicy.Delay.Builder builderForValue)

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

The specification for injecting delay to client requests.

optional .google.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy.Delay delay = 1;

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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