Interface GrpcRoute.FaultInjectionPolicy.AbortOrBuilder

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

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

    Modifier and Type
    Method
    Description
    int
    The HTTP status code used to abort the request.
    int
    The percentage of traffic which will be aborted.
    boolean
    The HTTP status code used to abort the request.
    boolean
    The percentage of traffic which will be aborted.

    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

    • hasHttpStatus

      boolean hasHttpStatus()
       The HTTP status code used to abort the request.
      
       The value must be between 200 and 599 inclusive.
       
      optional int32 http_status = 1;
      Returns:
      Whether the httpStatus field is set.
    • getHttpStatus

      int getHttpStatus()
       The HTTP status code used to abort the request.
      
       The value must be between 200 and 599 inclusive.
       
      optional int32 http_status = 1;
      Returns:
      The httpStatus.
    • hasPercentage

      boolean hasPercentage()
       The percentage of traffic which will be aborted.
      
       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 which will be aborted.
      
       The value must be between [0, 100]
       
      optional int32 percentage = 2;
      Returns:
      The percentage.