Interface GrpcRoute.FaultInjectionPolicy.DelayOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
GrpcRoute.FaultInjectionPolicy.Delay, GrpcRoute.FaultInjectionPolicy.Delay.Builder
Enclosing class:
GrpcRoute.FaultInjectionPolicy

public static interface GrpcRoute.FaultInjectionPolicy.DelayOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    com.google.protobuf.Duration
    Specify a fixed delay before forwarding the request.
    com.google.protobuf.DurationOrBuilder
    Specify a fixed delay before forwarding the request.
    int
    The percentage of traffic on which delay will be injected.
    boolean
    Specify a fixed delay before forwarding the request.
    boolean
    The percentage of traffic on which delay will be injected.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • hasFixedDelay

      boolean hasFixedDelay()
       Specify a fixed delay before forwarding the request.
       
      optional .google.protobuf.Duration fixed_delay = 1;
      Returns:
      Whether the fixedDelay field is set.
    • getFixedDelay

      com.google.protobuf.Duration getFixedDelay()
       Specify a fixed delay before forwarding the request.
       
      optional .google.protobuf.Duration fixed_delay = 1;
      Returns:
      The fixedDelay.
    • getFixedDelayOrBuilder

      com.google.protobuf.DurationOrBuilder getFixedDelayOrBuilder()
       Specify a fixed delay before forwarding the request.
       
      optional .google.protobuf.Duration fixed_delay = 1;
    • hasPercentage

      boolean hasPercentage()
       The percentage of traffic on which delay will be injected.
      
       The value must be between [0, 100]
       
      optional int32 percentage = 2;
      Returns:
      Whether the percentage field is set.
    • getPercentage

      int getPercentage()
       The percentage of traffic on which delay will be injected.
      
       The value must be between [0, 100]
       
      optional int32 percentage = 2;
      Returns:
      The percentage.