io.envoyproxy.envoy.config.route.v3.DirectResponseActionOrBuilder Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/config/route/v3/route_components.proto
package io.envoyproxy.envoy.config.route.v3;
public interface DirectResponseActionOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.config.route.v3.DirectResponseAction)
com.google.protobuf.MessageOrBuilder {
/**
*
* Specifies the HTTP response status to be returned.
*
*
* uint32 status = 1 [(.validate.rules) = { ... }
* @return The status.
*/
int getStatus();
/**
*
* 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;
* @return Whether the body field is set.
*/
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;
* @return The body.
*/
io.envoyproxy.envoy.config.core.v3.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;
*/
io.envoyproxy.envoy.config.core.v3.DataSourceOrBuilder getBodyOrBuilder();
}