public static final class DirectResponseAction.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DirectResponseAction.Builder> implements DirectResponseActionOrBuilder
envoy.config.route.v3.DirectResponseAction| Modifier and Type | Method and Description |
|---|---|
DirectResponseAction.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
DirectResponseAction |
build() |
DirectResponseAction |
buildPartial() |
DirectResponseAction.Builder |
clear() |
DirectResponseAction.Builder |
clearBody()
Specifies the content of the response body.
|
DirectResponseAction.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
DirectResponseAction.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
DirectResponseAction.Builder |
clearStatus()
Specifies the HTTP response status to be returned.
|
DirectResponseAction.Builder |
clone() |
DataSource |
getBody()
Specifies the content of the response body.
|
DataSource.Builder |
getBodyBuilder()
Specifies the content of the response body.
|
DataSourceOrBuilder |
getBodyOrBuilder()
Specifies the content of the response body.
|
DirectResponseAction |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getStatus()
Specifies the HTTP response status to be returned.
|
boolean |
hasBody()
Specifies the content of the response body.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
DirectResponseAction.Builder |
mergeBody(DataSource value)
Specifies the content of the response body.
|
DirectResponseAction.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
DirectResponseAction.Builder |
mergeFrom(DirectResponseAction other) |
DirectResponseAction.Builder |
mergeFrom(com.google.protobuf.Message other) |
DirectResponseAction.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
DirectResponseAction.Builder |
setBody(DataSource.Builder builderForValue)
Specifies the content of the response body.
|
DirectResponseAction.Builder |
setBody(DataSource value)
Specifies the content of the response body.
|
DirectResponseAction.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
DirectResponseAction.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
DirectResponseAction.Builder |
setStatus(int value)
Specifies the HTTP response status to be returned.
|
DirectResponseAction.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<DirectResponseAction.Builder>public DirectResponseAction.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<DirectResponseAction.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<DirectResponseAction.Builder>public DirectResponseAction getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic DirectResponseAction build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic DirectResponseAction buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic DirectResponseAction.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<DirectResponseAction.Builder>public DirectResponseAction.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<DirectResponseAction.Builder>public DirectResponseAction.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<DirectResponseAction.Builder>public DirectResponseAction.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<DirectResponseAction.Builder>public DirectResponseAction.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DirectResponseAction.Builder>public DirectResponseAction.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DirectResponseAction.Builder>public DirectResponseAction.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<DirectResponseAction.Builder>public DirectResponseAction.Builder mergeFrom(DirectResponseAction other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<DirectResponseAction.Builder>public DirectResponseAction.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<DirectResponseAction.Builder>IOExceptionpublic int getStatus()
Specifies the HTTP response status to be returned.
uint32 status = 1 [(.validate.rules) = { ... }getStatus in interface DirectResponseActionOrBuilderpublic DirectResponseAction.Builder setStatus(int value)
Specifies the HTTP response status to be returned.
uint32 status = 1 [(.validate.rules) = { ... }public DirectResponseAction.Builder clearStatus()
Specifies the HTTP response status to be returned.
uint32 status = 1 [(.validate.rules) = { ... }public 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_api_msg_config.route.v3.Route`, :ref:`envoy_api_msg_config.route.v3.RouteConfiguration` or :ref:`envoy_api_msg_config.route.v3.VirtualHost`.
.envoy.config.core.v3.DataSource body = 2;hasBody in interface DirectResponseActionOrBuilderpublic 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_api_msg_config.route.v3.Route`, :ref:`envoy_api_msg_config.route.v3.RouteConfiguration` or :ref:`envoy_api_msg_config.route.v3.VirtualHost`.
.envoy.config.core.v3.DataSource body = 2;getBody in interface DirectResponseActionOrBuilderpublic DirectResponseAction.Builder setBody(DataSource value)
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_api_msg_config.route.v3.Route`, :ref:`envoy_api_msg_config.route.v3.RouteConfiguration` or :ref:`envoy_api_msg_config.route.v3.VirtualHost`.
.envoy.config.core.v3.DataSource body = 2;public DirectResponseAction.Builder setBody(DataSource.Builder builderForValue)
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_api_msg_config.route.v3.Route`, :ref:`envoy_api_msg_config.route.v3.RouteConfiguration` or :ref:`envoy_api_msg_config.route.v3.VirtualHost`.
.envoy.config.core.v3.DataSource body = 2;public DirectResponseAction.Builder mergeBody(DataSource value)
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_api_msg_config.route.v3.Route`, :ref:`envoy_api_msg_config.route.v3.RouteConfiguration` or :ref:`envoy_api_msg_config.route.v3.VirtualHost`.
.envoy.config.core.v3.DataSource body = 2;public DirectResponseAction.Builder clearBody()
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_api_msg_config.route.v3.Route`, :ref:`envoy_api_msg_config.route.v3.RouteConfiguration` or :ref:`envoy_api_msg_config.route.v3.VirtualHost`.
.envoy.config.core.v3.DataSource body = 2;public DataSource.Builder getBodyBuilder()
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_api_msg_config.route.v3.Route`, :ref:`envoy_api_msg_config.route.v3.RouteConfiguration` or :ref:`envoy_api_msg_config.route.v3.VirtualHost`.
.envoy.config.core.v3.DataSource body = 2;public 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_api_msg_config.route.v3.Route`, :ref:`envoy_api_msg_config.route.v3.RouteConfiguration` or :ref:`envoy_api_msg_config.route.v3.VirtualHost`.
.envoy.config.core.v3.DataSource body = 2;getBodyOrBuilder in interface DirectResponseActionOrBuilderpublic final DirectResponseAction.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DirectResponseAction.Builder>public final DirectResponseAction.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DirectResponseAction.Builder>Copyright © 2018–2021 The Envoy Project. All rights reserved.