Interface ImmediateResponseOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    ImmediateResponse, ImmediateResponse.Builder

    public interface ImmediateResponseOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String getBody()
      The message body to return with the response which is sent using the text/plain content type, or encoded in the grpc-message header.
      com.google.protobuf.ByteString getBodyBytes()
      The message body to return with the response which is sent using the text/plain content type, or encoded in the grpc-message header.
      String getDetails()
      A string detailing why this local reply was sent, which may be included in log and debug output (e.g. this populates the %RESPONSE_CODE_DETAILS% command operator field for use in access logging).
      com.google.protobuf.ByteString getDetailsBytes()
      A string detailing why this local reply was sent, which may be included in log and debug output (e.g. this populates the %RESPONSE_CODE_DETAILS% command operator field for use in access logging).
      GrpcStatus getGrpcStatus()
      If set, then include a gRPC status trailer.
      GrpcStatusOrBuilder getGrpcStatusOrBuilder()
      If set, then include a gRPC status trailer.
      HeaderMutation getHeaders()
      Apply changes to the default headers, which will include content-type.
      HeaderMutationOrBuilder getHeadersOrBuilder()
      Apply changes to the default headers, which will include content-type.
      HttpStatus getStatus()
      The response code to return
      HttpStatusOrBuilder getStatusOrBuilder()
      The response code to return
      boolean hasGrpcStatus()
      If set, then include a gRPC status trailer.
      boolean hasHeaders()
      Apply changes to the default headers, which will include content-type.
      boolean hasStatus()
      The response code to return
      • 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 Detail

      • hasStatus

        boolean hasStatus()
         The response code to return
         
        .envoy.type.v3.HttpStatus status = 1 [(.validate.rules) = { ... }
        Returns:
        Whether the status field is set.
      • getStatus

        HttpStatus getStatus()
         The response code to return
         
        .envoy.type.v3.HttpStatus status = 1 [(.validate.rules) = { ... }
        Returns:
        The status.
      • getStatusOrBuilder

        HttpStatusOrBuilder getStatusOrBuilder()
         The response code to return
         
        .envoy.type.v3.HttpStatus status = 1 [(.validate.rules) = { ... }
      • hasHeaders

        boolean hasHeaders()
         Apply changes to the default headers, which will include content-type.
         
        .envoy.service.ext_proc.v3.HeaderMutation headers = 2;
        Returns:
        Whether the headers field is set.
      • getHeaders

        HeaderMutation getHeaders()
         Apply changes to the default headers, which will include content-type.
         
        .envoy.service.ext_proc.v3.HeaderMutation headers = 2;
        Returns:
        The headers.
      • getHeadersOrBuilder

        HeaderMutationOrBuilder getHeadersOrBuilder()
         Apply changes to the default headers, which will include content-type.
         
        .envoy.service.ext_proc.v3.HeaderMutation headers = 2;
      • getBody

        String getBody()
         The message body to return with the response which is sent using the
         text/plain content type, or encoded in the grpc-message header.
         
        string body = 3;
        Returns:
        The body.
      • getBodyBytes

        com.google.protobuf.ByteString getBodyBytes()
         The message body to return with the response which is sent using the
         text/plain content type, or encoded in the grpc-message header.
         
        string body = 3;
        Returns:
        The bytes for body.
      • hasGrpcStatus

        boolean hasGrpcStatus()
         If set, then include a gRPC status trailer.
         
        .envoy.service.ext_proc.v3.GrpcStatus grpc_status = 4;
        Returns:
        Whether the grpcStatus field is set.
      • getGrpcStatus

        GrpcStatus getGrpcStatus()
         If set, then include a gRPC status trailer.
         
        .envoy.service.ext_proc.v3.GrpcStatus grpc_status = 4;
        Returns:
        The grpcStatus.
      • getGrpcStatusOrBuilder

        GrpcStatusOrBuilder getGrpcStatusOrBuilder()
         If set, then include a gRPC status trailer.
         
        .envoy.service.ext_proc.v3.GrpcStatus grpc_status = 4;
      • getDetails

        String getDetails()
         A string detailing why this local reply was sent, which may be included
         in log and debug output (e.g. this populates the %RESPONSE_CODE_DETAILS%
         command operator field for use in access logging).
         
        string details = 5;
        Returns:
        The details.
      • getDetailsBytes

        com.google.protobuf.ByteString getDetailsBytes()
         A string detailing why this local reply was sent, which may be included
         in log and debug output (e.g. this populates the %RESPONSE_CODE_DETAILS%
         command operator field for use in access logging).
         
        string details = 5;
        Returns:
        The bytes for details.