Class HttpRoute.FaultInjectionPolicy.Delay (0.15.0)

public static final class HttpRoute.FaultInjectionPolicy.Delay extends GeneratedMessageV3 implements HttpRoute.FaultInjectionPolicy.DelayOrBuilder

Specification of how client requests are delayed as part of fault injection before being sent to a destination.

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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > HttpRoute.FaultInjectionPolicy.Delay

Static Fields

FIXED_DELAY_FIELD_NUMBER

public static final int FIXED_DELAY_FIELD_NUMBER
Field Value
Type Description
int

PERCENTAGE_FIELD_NUMBER

public static final int PERCENTAGE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static HttpRoute.FaultInjectionPolicy.Delay getDefaultInstance()
Returns
Type Description
HttpRoute.FaultInjectionPolicy.Delay

getDescriptor()

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

newBuilder()

public static HttpRoute.FaultInjectionPolicy.Delay.Builder newBuilder()
Returns
Type Description
HttpRoute.FaultInjectionPolicy.Delay.Builder

newBuilder(HttpRoute.FaultInjectionPolicy.Delay prototype)

public static HttpRoute.FaultInjectionPolicy.Delay.Builder newBuilder(HttpRoute.FaultInjectionPolicy.Delay prototype)
Parameter
Name Description
prototype HttpRoute.FaultInjectionPolicy.Delay
Returns
Type Description
HttpRoute.FaultInjectionPolicy.Delay.Builder

parseDelimitedFrom(InputStream input)

public static HttpRoute.FaultInjectionPolicy.Delay parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
HttpRoute.FaultInjectionPolicy.Delay
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HttpRoute.FaultInjectionPolicy.Delay parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpRoute.FaultInjectionPolicy.Delay
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static HttpRoute.FaultInjectionPolicy.Delay parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
HttpRoute.FaultInjectionPolicy.Delay
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static HttpRoute.FaultInjectionPolicy.Delay parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpRoute.FaultInjectionPolicy.Delay
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static HttpRoute.FaultInjectionPolicy.Delay parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
HttpRoute.FaultInjectionPolicy.Delay
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static HttpRoute.FaultInjectionPolicy.Delay parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpRoute.FaultInjectionPolicy.Delay
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static HttpRoute.FaultInjectionPolicy.Delay parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
HttpRoute.FaultInjectionPolicy.Delay
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static HttpRoute.FaultInjectionPolicy.Delay parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpRoute.FaultInjectionPolicy.Delay
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static HttpRoute.FaultInjectionPolicy.Delay parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
HttpRoute.FaultInjectionPolicy.Delay
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HttpRoute.FaultInjectionPolicy.Delay parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpRoute.FaultInjectionPolicy.Delay
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static HttpRoute.FaultInjectionPolicy.Delay parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
HttpRoute.FaultInjectionPolicy.Delay
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static HttpRoute.FaultInjectionPolicy.Delay parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpRoute.FaultInjectionPolicy.Delay
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<HttpRoute.FaultInjectionPolicy.Delay> parser()
Returns
Type Description
Parser<Delay>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

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

getFixedDelay()

public Duration getFixedDelay()

Specify a fixed delay before forwarding the request.

.google.protobuf.Duration fixed_delay = 1;

Returns
Type Description
Duration

The fixedDelay.

getFixedDelayOrBuilder()

public DurationOrBuilder getFixedDelayOrBuilder()

Specify a fixed delay before forwarding the request.

.google.protobuf.Duration fixed_delay = 1;

Returns
Type Description
DurationOrBuilder

getParserForType()

public Parser<HttpRoute.FaultInjectionPolicy.Delay> getParserForType()
Returns
Type Description
Parser<Delay>
Overrides

getPercentage()

public int getPercentage()

The percentage of traffic on which delay will be injected. The value must be between [0, 100]

int32 percentage = 2;

Returns
Type Description
int

The percentage.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
Type Description
UnknownFieldSet
Overrides

hasFixedDelay()

public boolean hasFixedDelay()

Specify a fixed delay before forwarding the request.

.google.protobuf.Duration fixed_delay = 1;

Returns
Type Description
boolean

Whether the fixedDelay field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public HttpRoute.FaultInjectionPolicy.Delay.Builder newBuilderForType()
Returns
Type Description
HttpRoute.FaultInjectionPolicy.Delay.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected HttpRoute.FaultInjectionPolicy.Delay.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
HttpRoute.FaultInjectionPolicy.Delay.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public HttpRoute.FaultInjectionPolicy.Delay.Builder toBuilder()
Returns
Type Description
HttpRoute.FaultInjectionPolicy.Delay.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException