Interface DirectResponseActionOrBuilder

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

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

    Modifier and Type
    Method
    Description
    Specifies the content of the response body.
    Specifies the content of the response body.
    int
    Specifies the HTTP response status to be returned.
    boolean
    Specifies the content of the response body.

    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

    • getStatus

      int getStatus()
       Specifies the HTTP response status to be returned.
       
      uint32 status = 1 [(.validate.rules) = { ... }
      Returns:
      The status.
    • hasBody

      boolean hasBody()
       Specifies the content of the response body. If this setting is omitted,
       no body is included in the generated response.
      
       .. note::
      
       Headers can be specified using ``response_headers_to_add`` in the enclosing
       :ref:`envoy_v3_api_msg_config.route.v3.Route`, :ref:`envoy_v3_api_msg_config.route.v3.RouteConfiguration` or
       :ref:`envoy_v3_api_msg_config.route.v3.VirtualHost`.
       
      .envoy.config.core.v3.DataSource body = 2;
      Returns:
      Whether the body field is set.
    • getBody

      DataSource getBody()
       Specifies the content of the response body. If this setting is omitted,
       no body is included in the generated response.
      
       .. note::
      
       Headers can be specified using ``response_headers_to_add`` in the enclosing
       :ref:`envoy_v3_api_msg_config.route.v3.Route`, :ref:`envoy_v3_api_msg_config.route.v3.RouteConfiguration` or
       :ref:`envoy_v3_api_msg_config.route.v3.VirtualHost`.
       
      .envoy.config.core.v3.DataSource body = 2;
      Returns:
      The body.
    • getBodyOrBuilder

      DataSourceOrBuilder getBodyOrBuilder()
       Specifies the content of the response body. If this setting is omitted,
       no body is included in the generated response.
      
       .. note::
      
       Headers can be specified using ``response_headers_to_add`` in the enclosing
       :ref:`envoy_v3_api_msg_config.route.v3.Route`, :ref:`envoy_v3_api_msg_config.route.v3.RouteConfiguration` or
       :ref:`envoy_v3_api_msg_config.route.v3.VirtualHost`.
       
      .envoy.config.core.v3.DataSource body = 2;