Send feedback
Class HttpRoute.FaultInjectionPolicy.Builder (0.10.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.10.0 keyboard_arrow_down
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
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 HttpRoute . FaultInjectionPolicy . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public HttpRoute . FaultInjectionPolicy build ()
buildPartial()
public HttpRoute . FaultInjectionPolicy buildPartial ()
clear()
public HttpRoute . FaultInjectionPolicy . Builder clear ()
Overrides
clearAbort()
public HttpRoute . FaultInjectionPolicy . Builder clearAbort ()
The specification for aborting to client requests.
.google.cloud.networkservices.v1.HttpRoute.FaultInjectionPolicy.Abort abort = 2;
clearDelay()
public HttpRoute . FaultInjectionPolicy . Builder clearDelay ()
The specification for injecting delay to client requests.
.google.cloud.networkservices.v1.HttpRoute.FaultInjectionPolicy.Delay delay = 1;
clearField(Descriptors.FieldDescriptor field)
public HttpRoute . FaultInjectionPolicy . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public HttpRoute . FaultInjectionPolicy . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clone()
public HttpRoute . FaultInjectionPolicy . Builder clone ()
Overrides
getAbort()
public HttpRoute . FaultInjectionPolicy . Abort getAbort ()
The specification for aborting to client requests.
.google.cloud.networkservices.v1.HttpRoute.FaultInjectionPolicy.Abort abort = 2;
getAbortBuilder()
public HttpRoute . FaultInjectionPolicy . Abort . Builder getAbortBuilder ()
The specification for aborting to client requests.
.google.cloud.networkservices.v1.HttpRoute.FaultInjectionPolicy.Abort abort = 2;
getAbortOrBuilder()
public HttpRoute . FaultInjectionPolicy . AbortOrBuilder getAbortOrBuilder ()
The specification for aborting to client requests.
.google.cloud.networkservices.v1.HttpRoute.FaultInjectionPolicy.Abort abort = 2;
getDefaultInstanceForType()
public HttpRoute . FaultInjectionPolicy getDefaultInstanceForType ()
getDelay()
public HttpRoute . FaultInjectionPolicy . Delay getDelay ()
The specification for injecting delay to client requests.
.google.cloud.networkservices.v1.HttpRoute.FaultInjectionPolicy.Delay delay = 1;
getDelayBuilder()
public HttpRoute . FaultInjectionPolicy . Delay . Builder getDelayBuilder ()
The specification for injecting delay to client requests.
.google.cloud.networkservices.v1.HttpRoute.FaultInjectionPolicy.Delay delay = 1;
getDelayOrBuilder()
public HttpRoute . FaultInjectionPolicy . DelayOrBuilder getDelayOrBuilder ()
The specification for injecting delay to client requests.
.google.cloud.networkservices.v1.HttpRoute.FaultInjectionPolicy.Delay delay = 1;
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
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 ()
Overrides
isInitialized()
public final boolean isInitialized ()
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;
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;
mergeFrom(HttpRoute.FaultInjectionPolicy other)
public HttpRoute . FaultInjectionPolicy . Builder mergeFrom ( HttpRoute . FaultInjectionPolicy other )
public HttpRoute . FaultInjectionPolicy . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public HttpRoute . FaultInjectionPolicy . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final HttpRoute . FaultInjectionPolicy . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
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;
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;
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;
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;
setField(Descriptors.FieldDescriptor field, Object value)
public HttpRoute . FaultInjectionPolicy . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public HttpRoute . FaultInjectionPolicy . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final HttpRoute . FaultInjectionPolicy . Builder setUnknownFields ( UnknownFieldSet unknownFields )
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-28 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-28 UTC."],[],[]]