implements
// @@protoc_insertion_point(builder_implements:envoy.service.ext_proc.v3.ProcessingResponse)
io.envoyproxy.envoy.service.ext_proc.v3.ProcessingResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.service.ext_proc.v3.ExternalProcessorProto.internal_static_envoy_service_ext_proc_v3_ProcessingResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.service.ext_proc.v3.ExternalProcessorProto.internal_static_envoy_service_ext_proc_v3_ProcessingResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.ext_proc.v3.ProcessingResponse.class, io.envoyproxy.envoy.service.ext_proc.v3.ProcessingResponse.Builder.class);
}
// Construct using io.envoyproxy.envoy.service.ext_proc.v3.ProcessingResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (dynamicMetadataBuilder_ == null) {
dynamicMetadata_ = null;
} else {
dynamicMetadata_ = null;
dynamicMetadataBuilder_ = null;
}
if (modeOverrideBuilder_ == null) {
modeOverride_ = null;
} else {
modeOverride_ = null;
modeOverrideBuilder_ = null;
}
if (overrideMessageTimeoutBuilder_ == null) {
overrideMessageTimeout_ = null;
} else {
overrideMessageTimeout_ = null;
overrideMessageTimeoutBuilder_ = null;
}
responseCase_ = 0;
response_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.service.ext_proc.v3.ExternalProcessorProto.internal_static_envoy_service_ext_proc_v3_ProcessingResponse_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.service.ext_proc.v3.ProcessingResponse getDefaultInstanceForType() {
return io.envoyproxy.envoy.service.ext_proc.v3.ProcessingResponse.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.service.ext_proc.v3.ProcessingResponse build() {
io.envoyproxy.envoy.service.ext_proc.v3.ProcessingResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.service.ext_proc.v3.ProcessingResponse buildPartial() {
io.envoyproxy.envoy.service.ext_proc.v3.ProcessingResponse result = new io.envoyproxy.envoy.service.ext_proc.v3.ProcessingResponse(this);
if (responseCase_ == 1) {
if (requestHeadersBuilder_ == null) {
result.response_ = response_;
} else {
result.response_ = requestHeadersBuilder_.build();
}
}
if (responseCase_ == 2) {
if (responseHeadersBuilder_ == null) {
result.response_ = response_;
} else {
result.response_ = responseHeadersBuilder_.build();
}
}
if (responseCase_ == 3) {
if (requestBodyBuilder_ == null) {
result.response_ = response_;
} else {
result.response_ = requestBodyBuilder_.build();
}
}
if (responseCase_ == 4) {
if (responseBodyBuilder_ == null) {
result.response_ = response_;
} else {
result.response_ = responseBodyBuilder_.build();
}
}
if (responseCase_ == 5) {
if (requestTrailersBuilder_ == null) {
result.response_ = response_;
} else {
result.response_ = requestTrailersBuilder_.build();
}
}
if (responseCase_ == 6) {
if (responseTrailersBuilder_ == null) {
result.response_ = response_;
} else {
result.response_ = responseTrailersBuilder_.build();
}
}
if (responseCase_ == 7) {
if (immediateResponseBuilder_ == null) {
result.response_ = response_;
} else {
result.response_ = immediateResponseBuilder_.build();
}
}
if (dynamicMetadataBuilder_ == null) {
result.dynamicMetadata_ = dynamicMetadata_;
} else {
result.dynamicMetadata_ = dynamicMetadataBuilder_.build();
}
if (modeOverrideBuilder_ == null) {
result.modeOverride_ = modeOverride_;
} else {
result.modeOverride_ = modeOverrideBuilder_.build();
}
if (overrideMessageTimeoutBuilder_ == null) {
result.overrideMessageTimeout_ = overrideMessageTimeout_;
} else {
result.overrideMessageTimeout_ = overrideMessageTimeoutBuilder_.build();
}
result.responseCase_ = responseCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.envoy.service.ext_proc.v3.ProcessingResponse) {
return mergeFrom((io.envoyproxy.envoy.service.ext_proc.v3.ProcessingResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.service.ext_proc.v3.ProcessingResponse other) {
if (other == io.envoyproxy.envoy.service.ext_proc.v3.ProcessingResponse.getDefaultInstance()) return this;
if (other.hasDynamicMetadata()) {
mergeDynamicMetadata(other.getDynamicMetadata());
}
if (other.hasModeOverride()) {
mergeModeOverride(other.getModeOverride());
}
if (other.hasOverrideMessageTimeout()) {
mergeOverrideMessageTimeout(other.getOverrideMessageTimeout());
}
switch (other.getResponseCase()) {
case REQUEST_HEADERS: {
mergeRequestHeaders(other.getRequestHeaders());
break;
}
case RESPONSE_HEADERS: {
mergeResponseHeaders(other.getResponseHeaders());
break;
}
case REQUEST_BODY: {
mergeRequestBody(other.getRequestBody());
break;
}
case RESPONSE_BODY: {
mergeResponseBody(other.getResponseBody());
break;
}
case REQUEST_TRAILERS: {
mergeRequestTrailers(other.getRequestTrailers());
break;
}
case RESPONSE_TRAILERS: {
mergeResponseTrailers(other.getResponseTrailers());
break;
}
case IMMEDIATE_RESPONSE: {
mergeImmediateResponse(other.getImmediateResponse());
break;
}
case RESPONSE_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.envoyproxy.envoy.service.ext_proc.v3.ProcessingResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.service.ext_proc.v3.ProcessingResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int responseCase_ = 0;
private java.lang.Object response_;
public ResponseCase
getResponseCase() {
return ResponseCase.forNumber(
responseCase_);
}
public Builder clearResponse() {
responseCase_ = 0;
response_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponse, io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponse.Builder, io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponseOrBuilder> requestHeadersBuilder_;
/**
*
* The server must send back this message in response to a message with the
* ``request_headers`` field set.
*
*
* .envoy.service.ext_proc.v3.HeadersResponse request_headers = 1;
* @return Whether the requestHeaders field is set.
*/
@java.lang.Override
public boolean hasRequestHeaders() {
return responseCase_ == 1;
}
/**
*
* The server must send back this message in response to a message with the
* ``request_headers`` field set.
*
*
* .envoy.service.ext_proc.v3.HeadersResponse request_headers = 1;
* @return The requestHeaders.
*/
@java.lang.Override
public io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponse getRequestHeaders() {
if (requestHeadersBuilder_ == null) {
if (responseCase_ == 1) {
return (io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponse) response_;
}
return io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponse.getDefaultInstance();
} else {
if (responseCase_ == 1) {
return requestHeadersBuilder_.getMessage();
}
return io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponse.getDefaultInstance();
}
}
/**
*
* The server must send back this message in response to a message with the
* ``request_headers`` field set.
*
*
* .envoy.service.ext_proc.v3.HeadersResponse request_headers = 1;
*/
public Builder setRequestHeaders(io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponse value) {
if (requestHeadersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
response_ = value;
onChanged();
} else {
requestHeadersBuilder_.setMessage(value);
}
responseCase_ = 1;
return this;
}
/**
*
* The server must send back this message in response to a message with the
* ``request_headers`` field set.
*
*
* .envoy.service.ext_proc.v3.HeadersResponse request_headers = 1;
*/
public Builder setRequestHeaders(
io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponse.Builder builderForValue) {
if (requestHeadersBuilder_ == null) {
response_ = builderForValue.build();
onChanged();
} else {
requestHeadersBuilder_.setMessage(builderForValue.build());
}
responseCase_ = 1;
return this;
}
/**
*
* The server must send back this message in response to a message with the
* ``request_headers`` field set.
*
*
* .envoy.service.ext_proc.v3.HeadersResponse request_headers = 1;
*/
public Builder mergeRequestHeaders(io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponse value) {
if (requestHeadersBuilder_ == null) {
if (responseCase_ == 1 &&
response_ != io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponse.getDefaultInstance()) {
response_ = io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponse.newBuilder((io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponse) response_)
.mergeFrom(value).buildPartial();
} else {
response_ = value;
}
onChanged();
} else {
if (responseCase_ == 1) {
requestHeadersBuilder_.mergeFrom(value);
} else {
requestHeadersBuilder_.setMessage(value);
}
}
responseCase_ = 1;
return this;
}
/**
*
* The server must send back this message in response to a message with the
* ``request_headers`` field set.
*
*
* .envoy.service.ext_proc.v3.HeadersResponse request_headers = 1;
*/
public Builder clearRequestHeaders() {
if (requestHeadersBuilder_ == null) {
if (responseCase_ == 1) {
responseCase_ = 0;
response_ = null;
onChanged();
}
} else {
if (responseCase_ == 1) {
responseCase_ = 0;
response_ = null;
}
requestHeadersBuilder_.clear();
}
return this;
}
/**
*
* The server must send back this message in response to a message with the
* ``request_headers`` field set.
*
*
* .envoy.service.ext_proc.v3.HeadersResponse request_headers = 1;
*/
public io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponse.Builder getRequestHeadersBuilder() {
return getRequestHeadersFieldBuilder().getBuilder();
}
/**
*
* The server must send back this message in response to a message with the
* ``request_headers`` field set.
*
*
* .envoy.service.ext_proc.v3.HeadersResponse request_headers = 1;
*/
@java.lang.Override
public io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponseOrBuilder getRequestHeadersOrBuilder() {
if ((responseCase_ == 1) && (requestHeadersBuilder_ != null)) {
return requestHeadersBuilder_.getMessageOrBuilder();
} else {
if (responseCase_ == 1) {
return (io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponse) response_;
}
return io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponse.getDefaultInstance();
}
}
/**
*
* The server must send back this message in response to a message with the
* ``request_headers`` field set.
*
*
* .envoy.service.ext_proc.v3.HeadersResponse request_headers = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponse, io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponse.Builder, io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponseOrBuilder>
getRequestHeadersFieldBuilder() {
if (requestHeadersBuilder_ == null) {
if (!(responseCase_ == 1)) {
response_ = io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponse.getDefaultInstance();
}
requestHeadersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponse, io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponse.Builder, io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponseOrBuilder>(
(io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponse) response_,
getParentForChildren(),
isClean());
response_ = null;
}
responseCase_ = 1;
onChanged();;
return requestHeadersBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponse, io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponse.Builder, io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponseOrBuilder> responseHeadersBuilder_;
/**
*
* The server must send back this message in response to a message with the
* ``response_headers`` field set.
*
*
* .envoy.service.ext_proc.v3.HeadersResponse response_headers = 2;
* @return Whether the responseHeaders field is set.
*/
@java.lang.Override
public boolean hasResponseHeaders() {
return responseCase_ == 2;
}
/**
*
* The server must send back this message in response to a message with the
* ``response_headers`` field set.
*
*
* .envoy.service.ext_proc.v3.HeadersResponse response_headers = 2;
* @return The responseHeaders.
*/
@java.lang.Override
public io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponse getResponseHeaders() {
if (responseHeadersBuilder_ == null) {
if (responseCase_ == 2) {
return (io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponse) response_;
}
return io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponse.getDefaultInstance();
} else {
if (responseCase_ == 2) {
return responseHeadersBuilder_.getMessage();
}
return io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponse.getDefaultInstance();
}
}
/**
*
* The server must send back this message in response to a message with the
* ``response_headers`` field set.
*
*
* .envoy.service.ext_proc.v3.HeadersResponse response_headers = 2;
*/
public Builder setResponseHeaders(io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponse value) {
if (responseHeadersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
response_ = value;
onChanged();
} else {
responseHeadersBuilder_.setMessage(value);
}
responseCase_ = 2;
return this;
}
/**
*
* The server must send back this message in response to a message with the
* ``response_headers`` field set.
*
*
* .envoy.service.ext_proc.v3.HeadersResponse response_headers = 2;
*/
public Builder setResponseHeaders(
io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponse.Builder builderForValue) {
if (responseHeadersBuilder_ == null) {
response_ = builderForValue.build();
onChanged();
} else {
responseHeadersBuilder_.setMessage(builderForValue.build());
}
responseCase_ = 2;
return this;
}
/**
*
* The server must send back this message in response to a message with the
* ``response_headers`` field set.
*
*
* .envoy.service.ext_proc.v3.HeadersResponse response_headers = 2;
*/
public Builder mergeResponseHeaders(io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponse value) {
if (responseHeadersBuilder_ == null) {
if (responseCase_ == 2 &&
response_ != io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponse.getDefaultInstance()) {
response_ = io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponse.newBuilder((io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponse) response_)
.mergeFrom(value).buildPartial();
} else {
response_ = value;
}
onChanged();
} else {
if (responseCase_ == 2) {
responseHeadersBuilder_.mergeFrom(value);
} else {
responseHeadersBuilder_.setMessage(value);
}
}
responseCase_ = 2;
return this;
}
/**
*
* The server must send back this message in response to a message with the
* ``response_headers`` field set.
*
*
* .envoy.service.ext_proc.v3.HeadersResponse response_headers = 2;
*/
public Builder clearResponseHeaders() {
if (responseHeadersBuilder_ == null) {
if (responseCase_ == 2) {
responseCase_ = 0;
response_ = null;
onChanged();
}
} else {
if (responseCase_ == 2) {
responseCase_ = 0;
response_ = null;
}
responseHeadersBuilder_.clear();
}
return this;
}
/**
*
* The server must send back this message in response to a message with the
* ``response_headers`` field set.
*
*
* .envoy.service.ext_proc.v3.HeadersResponse response_headers = 2;
*/
public io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponse.Builder getResponseHeadersBuilder() {
return getResponseHeadersFieldBuilder().getBuilder();
}
/**
*
* The server must send back this message in response to a message with the
* ``response_headers`` field set.
*
*
* .envoy.service.ext_proc.v3.HeadersResponse response_headers = 2;
*/
@java.lang.Override
public io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponseOrBuilder getResponseHeadersOrBuilder() {
if ((responseCase_ == 2) && (responseHeadersBuilder_ != null)) {
return responseHeadersBuilder_.getMessageOrBuilder();
} else {
if (responseCase_ == 2) {
return (io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponse) response_;
}
return io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponse.getDefaultInstance();
}
}
/**
*
* The server must send back this message in response to a message with the
* ``response_headers`` field set.
*
*
* .envoy.service.ext_proc.v3.HeadersResponse response_headers = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponse, io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponse.Builder, io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponseOrBuilder>
getResponseHeadersFieldBuilder() {
if (responseHeadersBuilder_ == null) {
if (!(responseCase_ == 2)) {
response_ = io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponse.getDefaultInstance();
}
responseHeadersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponse, io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponse.Builder, io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponseOrBuilder>(
(io.envoyproxy.envoy.service.ext_proc.v3.HeadersResponse) response_,
getParentForChildren(),
isClean());
response_ = null;
}
responseCase_ = 2;
onChanged();;
return responseHeadersBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.service.ext_proc.v3.BodyResponse, io.envoyproxy.envoy.service.ext_proc.v3.BodyResponse.Builder, io.envoyproxy.envoy.service.ext_proc.v3.BodyResponseOrBuilder> requestBodyBuilder_;
/**
*
* The server must send back this message in response to a message with
* the ``request_body`` field set.
*
*
* .envoy.service.ext_proc.v3.BodyResponse request_body = 3;
* @return Whether the requestBody field is set.
*/
@java.lang.Override
public boolean hasRequestBody() {
return responseCase_ == 3;
}
/**
*
* The server must send back this message in response to a message with
* the ``request_body`` field set.
*
*
* .envoy.service.ext_proc.v3.BodyResponse request_body = 3;
* @return The requestBody.
*/
@java.lang.Override
public io.envoyproxy.envoy.service.ext_proc.v3.BodyResponse getRequestBody() {
if (requestBodyBuilder_ == null) {
if (responseCase_ == 3) {
return (io.envoyproxy.envoy.service.ext_proc.v3.BodyResponse) response_;
}
return io.envoyproxy.envoy.service.ext_proc.v3.BodyResponse.getDefaultInstance();
} else {
if (responseCase_ == 3) {
return requestBodyBuilder_.getMessage();
}
return io.envoyproxy.envoy.service.ext_proc.v3.BodyResponse.getDefaultInstance();
}
}
/**
*
* The server must send back this message in response to a message with
* the ``request_body`` field set.
*
*
* .envoy.service.ext_proc.v3.BodyResponse request_body = 3;
*/
public Builder setRequestBody(io.envoyproxy.envoy.service.ext_proc.v3.BodyResponse value) {
if (requestBodyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
response_ = value;
onChanged();
} else {
requestBodyBuilder_.setMessage(value);
}
responseCase_ = 3;
return this;
}
/**
*
* The server must send back this message in response to a message with
* the ``request_body`` field set.
*
*
* .envoy.service.ext_proc.v3.BodyResponse request_body = 3;
*/
public Builder setRequestBody(
io.envoyproxy.envoy.service.ext_proc.v3.BodyResponse.Builder builderForValue) {
if (requestBodyBuilder_ == null) {
response_ = builderForValue.build();
onChanged();
} else {
requestBodyBuilder_.setMessage(builderForValue.build());
}
responseCase_ = 3;
return this;
}
/**
*
* The server must send back this message in response to a message with
* the ``request_body`` field set.
*
*
* .envoy.service.ext_proc.v3.BodyResponse request_body = 3;
*/
public Builder mergeRequestBody(io.envoyproxy.envoy.service.ext_proc.v3.BodyResponse value) {
if (requestBodyBuilder_ == null) {
if (responseCase_ == 3 &&
response_ != io.envoyproxy.envoy.service.ext_proc.v3.BodyResponse.getDefaultInstance()) {
response_ = io.envoyproxy.envoy.service.ext_proc.v3.BodyResponse.newBuilder((io.envoyproxy.envoy.service.ext_proc.v3.BodyResponse) response_)
.mergeFrom(value).buildPartial();
} else {
response_ = value;
}
onChanged();
} else {
if (responseCase_ == 3) {
requestBodyBuilder_.mergeFrom(value);
} else {
requestBodyBuilder_.setMessage(value);
}
}
responseCase_ = 3;
return this;
}
/**
*
* The server must send back this message in response to a message with
* the ``request_body`` field set.
*
*
* .envoy.service.ext_proc.v3.BodyResponse request_body = 3;
*/
public Builder clearRequestBody() {
if (requestBodyBuilder_ == null) {
if (responseCase_ == 3) {
responseCase_ = 0;
response_ = null;
onChanged();
}
} else {
if (responseCase_ == 3) {
responseCase_ = 0;
response_ = null;
}
requestBodyBuilder_.clear();
}
return this;
}
/**
*
* The server must send back this message in response to a message with
* the ``request_body`` field set.
*
*
* .envoy.service.ext_proc.v3.BodyResponse request_body = 3;
*/
public io.envoyproxy.envoy.service.ext_proc.v3.BodyResponse.Builder getRequestBodyBuilder() {
return getRequestBodyFieldBuilder().getBuilder();
}
/**
*
* The server must send back this message in response to a message with
* the ``request_body`` field set.
*
*
* .envoy.service.ext_proc.v3.BodyResponse request_body = 3;
*/
@java.lang.Override
public io.envoyproxy.envoy.service.ext_proc.v3.BodyResponseOrBuilder getRequestBodyOrBuilder() {
if ((responseCase_ == 3) && (requestBodyBuilder_ != null)) {
return requestBodyBuilder_.getMessageOrBuilder();
} else {
if (responseCase_ == 3) {
return (io.envoyproxy.envoy.service.ext_proc.v3.BodyResponse) response_;
}
return io.envoyproxy.envoy.service.ext_proc.v3.BodyResponse.getDefaultInstance();
}
}
/**
*
* The server must send back this message in response to a message with
* the ``request_body`` field set.
*
*
* .envoy.service.ext_proc.v3.BodyResponse request_body = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.service.ext_proc.v3.BodyResponse, io.envoyproxy.envoy.service.ext_proc.v3.BodyResponse.Builder, io.envoyproxy.envoy.service.ext_proc.v3.BodyResponseOrBuilder>
getRequestBodyFieldBuilder() {
if (requestBodyBuilder_ == null) {
if (!(responseCase_ == 3)) {
response_ = io.envoyproxy.envoy.service.ext_proc.v3.BodyResponse.getDefaultInstance();
}
requestBodyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.service.ext_proc.v3.BodyResponse, io.envoyproxy.envoy.service.ext_proc.v3.BodyResponse.Builder, io.envoyproxy.envoy.service.ext_proc.v3.BodyResponseOrBuilder>(
(io.envoyproxy.envoy.service.ext_proc.v3.BodyResponse) response_,
getParentForChildren(),
isClean());
response_ = null;
}
responseCase_ = 3;
onChanged();;
return requestBodyBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.service.ext_proc.v3.BodyResponse, io.envoyproxy.envoy.service.ext_proc.v3.BodyResponse.Builder, io.envoyproxy.envoy.service.ext_proc.v3.BodyResponseOrBuilder> responseBodyBuilder_;
/**
*
* The server must send back this message in response to a message with
* the ``response_body`` field set.
*
*
* .envoy.service.ext_proc.v3.BodyResponse response_body = 4;
* @return Whether the responseBody field is set.
*/
@java.lang.Override
public boolean hasResponseBody() {
return responseCase_ == 4;
}
/**
*
* The server must send back this message in response to a message with
* the ``response_body`` field set.
*
*
* .envoy.service.ext_proc.v3.BodyResponse response_body = 4;
* @return The responseBody.
*/
@java.lang.Override
public io.envoyproxy.envoy.service.ext_proc.v3.BodyResponse getResponseBody() {
if (responseBodyBuilder_ == null) {
if (responseCase_ == 4) {
return (io.envoyproxy.envoy.service.ext_proc.v3.BodyResponse) response_;
}
return io.envoyproxy.envoy.service.ext_proc.v3.BodyResponse.getDefaultInstance();
} else {
if (responseCase_ == 4) {
return responseBodyBuilder_.getMessage();
}
return io.envoyproxy.envoy.service.ext_proc.v3.BodyResponse.getDefaultInstance();
}
}
/**
*
* The server must send back this message in response to a message with
* the ``response_body`` field set.
*
*
* .envoy.service.ext_proc.v3.BodyResponse response_body = 4;
*/
public Builder setResponseBody(io.envoyproxy.envoy.service.ext_proc.v3.BodyResponse value) {
if (responseBodyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
response_ = value;
onChanged();
} else {
responseBodyBuilder_.setMessage(value);
}
responseCase_ = 4;
return this;
}
/**
*
* The server must send back this message in response to a message with
* the ``response_body`` field set.
*
*
* .envoy.service.ext_proc.v3.BodyResponse response_body = 4;
*/
public Builder setResponseBody(
io.envoyproxy.envoy.service.ext_proc.v3.BodyResponse.Builder builderForValue) {
if (responseBodyBuilder_ == null) {
response_ = builderForValue.build();
onChanged();
} else {
responseBodyBuilder_.setMessage(builderForValue.build());
}
responseCase_ = 4;
return this;
}
/**
*
* The server must send back this message in response to a message with
* the ``response_body`` field set.
*
*
* .envoy.service.ext_proc.v3.BodyResponse response_body = 4;
*/
public Builder mergeResponseBody(io.envoyproxy.envoy.service.ext_proc.v3.BodyResponse value) {
if (responseBodyBuilder_ == null) {
if (responseCase_ == 4 &&
response_ != io.envoyproxy.envoy.service.ext_proc.v3.BodyResponse.getDefaultInstance()) {
response_ = io.envoyproxy.envoy.service.ext_proc.v3.BodyResponse.newBuilder((io.envoyproxy.envoy.service.ext_proc.v3.BodyResponse) response_)
.mergeFrom(value).buildPartial();
} else {
response_ = value;
}
onChanged();
} else {
if (responseCase_ == 4) {
responseBodyBuilder_.mergeFrom(value);
} else {
responseBodyBuilder_.setMessage(value);
}
}
responseCase_ = 4;
return this;
}
/**
*
* The server must send back this message in response to a message with
* the ``response_body`` field set.
*
*
* .envoy.service.ext_proc.v3.BodyResponse response_body = 4;
*/
public Builder clearResponseBody() {
if (responseBodyBuilder_ == null) {
if (responseCase_ == 4) {
responseCase_ = 0;
response_ = null;
onChanged();
}
} else {
if (responseCase_ == 4) {
responseCase_ = 0;
response_ = null;
}
responseBodyBuilder_.clear();
}
return this;
}
/**
*
* The server must send back this message in response to a message with
* the ``response_body`` field set.
*
*
* .envoy.service.ext_proc.v3.BodyResponse response_body = 4;
*/
public io.envoyproxy.envoy.service.ext_proc.v3.BodyResponse.Builder getResponseBodyBuilder() {
return getResponseBodyFieldBuilder().getBuilder();
}
/**
*
* The server must send back this message in response to a message with
* the ``response_body`` field set.
*
*
* .envoy.service.ext_proc.v3.BodyResponse response_body = 4;
*/
@java.lang.Override
public io.envoyproxy.envoy.service.ext_proc.v3.BodyResponseOrBuilder getResponseBodyOrBuilder() {
if ((responseCase_ == 4) && (responseBodyBuilder_ != null)) {
return responseBodyBuilder_.getMessageOrBuilder();
} else {
if (responseCase_ == 4) {
return (io.envoyproxy.envoy.service.ext_proc.v3.BodyResponse) response_;
}
return io.envoyproxy.envoy.service.ext_proc.v3.BodyResponse.getDefaultInstance();
}
}
/**
*
* The server must send back this message in response to a message with
* the ``response_body`` field set.
*
*
* .envoy.service.ext_proc.v3.BodyResponse response_body = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.service.ext_proc.v3.BodyResponse, io.envoyproxy.envoy.service.ext_proc.v3.BodyResponse.Builder, io.envoyproxy.envoy.service.ext_proc.v3.BodyResponseOrBuilder>
getResponseBodyFieldBuilder() {
if (responseBodyBuilder_ == null) {
if (!(responseCase_ == 4)) {
response_ = io.envoyproxy.envoy.service.ext_proc.v3.BodyResponse.getDefaultInstance();
}
responseBodyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.service.ext_proc.v3.BodyResponse, io.envoyproxy.envoy.service.ext_proc.v3.BodyResponse.Builder, io.envoyproxy.envoy.service.ext_proc.v3.BodyResponseOrBuilder>(
(io.envoyproxy.envoy.service.ext_proc.v3.BodyResponse) response_,
getParentForChildren(),
isClean());
response_ = null;
}
responseCase_ = 4;
onChanged();;
return responseBodyBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponse, io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponse.Builder, io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponseOrBuilder> requestTrailersBuilder_;
/**
*
* The server must send back this message in response to a message with
* the ``request_trailers`` field set.
*
*
* .envoy.service.ext_proc.v3.TrailersResponse request_trailers = 5;
* @return Whether the requestTrailers field is set.
*/
@java.lang.Override
public boolean hasRequestTrailers() {
return responseCase_ == 5;
}
/**
*
* The server must send back this message in response to a message with
* the ``request_trailers`` field set.
*
*
* .envoy.service.ext_proc.v3.TrailersResponse request_trailers = 5;
* @return The requestTrailers.
*/
@java.lang.Override
public io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponse getRequestTrailers() {
if (requestTrailersBuilder_ == null) {
if (responseCase_ == 5) {
return (io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponse) response_;
}
return io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponse.getDefaultInstance();
} else {
if (responseCase_ == 5) {
return requestTrailersBuilder_.getMessage();
}
return io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponse.getDefaultInstance();
}
}
/**
*
* The server must send back this message in response to a message with
* the ``request_trailers`` field set.
*
*
* .envoy.service.ext_proc.v3.TrailersResponse request_trailers = 5;
*/
public Builder setRequestTrailers(io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponse value) {
if (requestTrailersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
response_ = value;
onChanged();
} else {
requestTrailersBuilder_.setMessage(value);
}
responseCase_ = 5;
return this;
}
/**
*
* The server must send back this message in response to a message with
* the ``request_trailers`` field set.
*
*
* .envoy.service.ext_proc.v3.TrailersResponse request_trailers = 5;
*/
public Builder setRequestTrailers(
io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponse.Builder builderForValue) {
if (requestTrailersBuilder_ == null) {
response_ = builderForValue.build();
onChanged();
} else {
requestTrailersBuilder_.setMessage(builderForValue.build());
}
responseCase_ = 5;
return this;
}
/**
*
* The server must send back this message in response to a message with
* the ``request_trailers`` field set.
*
*
* .envoy.service.ext_proc.v3.TrailersResponse request_trailers = 5;
*/
public Builder mergeRequestTrailers(io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponse value) {
if (requestTrailersBuilder_ == null) {
if (responseCase_ == 5 &&
response_ != io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponse.getDefaultInstance()) {
response_ = io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponse.newBuilder((io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponse) response_)
.mergeFrom(value).buildPartial();
} else {
response_ = value;
}
onChanged();
} else {
if (responseCase_ == 5) {
requestTrailersBuilder_.mergeFrom(value);
} else {
requestTrailersBuilder_.setMessage(value);
}
}
responseCase_ = 5;
return this;
}
/**
*
* The server must send back this message in response to a message with
* the ``request_trailers`` field set.
*
*
* .envoy.service.ext_proc.v3.TrailersResponse request_trailers = 5;
*/
public Builder clearRequestTrailers() {
if (requestTrailersBuilder_ == null) {
if (responseCase_ == 5) {
responseCase_ = 0;
response_ = null;
onChanged();
}
} else {
if (responseCase_ == 5) {
responseCase_ = 0;
response_ = null;
}
requestTrailersBuilder_.clear();
}
return this;
}
/**
*
* The server must send back this message in response to a message with
* the ``request_trailers`` field set.
*
*
* .envoy.service.ext_proc.v3.TrailersResponse request_trailers = 5;
*/
public io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponse.Builder getRequestTrailersBuilder() {
return getRequestTrailersFieldBuilder().getBuilder();
}
/**
*
* The server must send back this message in response to a message with
* the ``request_trailers`` field set.
*
*
* .envoy.service.ext_proc.v3.TrailersResponse request_trailers = 5;
*/
@java.lang.Override
public io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponseOrBuilder getRequestTrailersOrBuilder() {
if ((responseCase_ == 5) && (requestTrailersBuilder_ != null)) {
return requestTrailersBuilder_.getMessageOrBuilder();
} else {
if (responseCase_ == 5) {
return (io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponse) response_;
}
return io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponse.getDefaultInstance();
}
}
/**
*
* The server must send back this message in response to a message with
* the ``request_trailers`` field set.
*
*
* .envoy.service.ext_proc.v3.TrailersResponse request_trailers = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponse, io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponse.Builder, io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponseOrBuilder>
getRequestTrailersFieldBuilder() {
if (requestTrailersBuilder_ == null) {
if (!(responseCase_ == 5)) {
response_ = io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponse.getDefaultInstance();
}
requestTrailersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponse, io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponse.Builder, io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponseOrBuilder>(
(io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponse) response_,
getParentForChildren(),
isClean());
response_ = null;
}
responseCase_ = 5;
onChanged();;
return requestTrailersBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponse, io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponse.Builder, io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponseOrBuilder> responseTrailersBuilder_;
/**
*
* The server must send back this message in response to a message with
* the ``response_trailers`` field set.
*
*
* .envoy.service.ext_proc.v3.TrailersResponse response_trailers = 6;
* @return Whether the responseTrailers field is set.
*/
@java.lang.Override
public boolean hasResponseTrailers() {
return responseCase_ == 6;
}
/**
*
* The server must send back this message in response to a message with
* the ``response_trailers`` field set.
*
*
* .envoy.service.ext_proc.v3.TrailersResponse response_trailers = 6;
* @return The responseTrailers.
*/
@java.lang.Override
public io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponse getResponseTrailers() {
if (responseTrailersBuilder_ == null) {
if (responseCase_ == 6) {
return (io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponse) response_;
}
return io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponse.getDefaultInstance();
} else {
if (responseCase_ == 6) {
return responseTrailersBuilder_.getMessage();
}
return io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponse.getDefaultInstance();
}
}
/**
*
* The server must send back this message in response to a message with
* the ``response_trailers`` field set.
*
*
* .envoy.service.ext_proc.v3.TrailersResponse response_trailers = 6;
*/
public Builder setResponseTrailers(io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponse value) {
if (responseTrailersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
response_ = value;
onChanged();
} else {
responseTrailersBuilder_.setMessage(value);
}
responseCase_ = 6;
return this;
}
/**
*
* The server must send back this message in response to a message with
* the ``response_trailers`` field set.
*
*
* .envoy.service.ext_proc.v3.TrailersResponse response_trailers = 6;
*/
public Builder setResponseTrailers(
io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponse.Builder builderForValue) {
if (responseTrailersBuilder_ == null) {
response_ = builderForValue.build();
onChanged();
} else {
responseTrailersBuilder_.setMessage(builderForValue.build());
}
responseCase_ = 6;
return this;
}
/**
*
* The server must send back this message in response to a message with
* the ``response_trailers`` field set.
*
*
* .envoy.service.ext_proc.v3.TrailersResponse response_trailers = 6;
*/
public Builder mergeResponseTrailers(io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponse value) {
if (responseTrailersBuilder_ == null) {
if (responseCase_ == 6 &&
response_ != io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponse.getDefaultInstance()) {
response_ = io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponse.newBuilder((io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponse) response_)
.mergeFrom(value).buildPartial();
} else {
response_ = value;
}
onChanged();
} else {
if (responseCase_ == 6) {
responseTrailersBuilder_.mergeFrom(value);
} else {
responseTrailersBuilder_.setMessage(value);
}
}
responseCase_ = 6;
return this;
}
/**
*
* The server must send back this message in response to a message with
* the ``response_trailers`` field set.
*
*
* .envoy.service.ext_proc.v3.TrailersResponse response_trailers = 6;
*/
public Builder clearResponseTrailers() {
if (responseTrailersBuilder_ == null) {
if (responseCase_ == 6) {
responseCase_ = 0;
response_ = null;
onChanged();
}
} else {
if (responseCase_ == 6) {
responseCase_ = 0;
response_ = null;
}
responseTrailersBuilder_.clear();
}
return this;
}
/**
*
* The server must send back this message in response to a message with
* the ``response_trailers`` field set.
*
*
* .envoy.service.ext_proc.v3.TrailersResponse response_trailers = 6;
*/
public io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponse.Builder getResponseTrailersBuilder() {
return getResponseTrailersFieldBuilder().getBuilder();
}
/**
*
* The server must send back this message in response to a message with
* the ``response_trailers`` field set.
*
*
* .envoy.service.ext_proc.v3.TrailersResponse response_trailers = 6;
*/
@java.lang.Override
public io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponseOrBuilder getResponseTrailersOrBuilder() {
if ((responseCase_ == 6) && (responseTrailersBuilder_ != null)) {
return responseTrailersBuilder_.getMessageOrBuilder();
} else {
if (responseCase_ == 6) {
return (io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponse) response_;
}
return io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponse.getDefaultInstance();
}
}
/**
*
* The server must send back this message in response to a message with
* the ``response_trailers`` field set.
*
*
* .envoy.service.ext_proc.v3.TrailersResponse response_trailers = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponse, io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponse.Builder, io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponseOrBuilder>
getResponseTrailersFieldBuilder() {
if (responseTrailersBuilder_ == null) {
if (!(responseCase_ == 6)) {
response_ = io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponse.getDefaultInstance();
}
responseTrailersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponse, io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponse.Builder, io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponseOrBuilder>(
(io.envoyproxy.envoy.service.ext_proc.v3.TrailersResponse) response_,
getParentForChildren(),
isClean());
response_ = null;
}
responseCase_ = 6;
onChanged();;
return responseTrailersBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse, io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse.Builder, io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponseOrBuilder> immediateResponseBuilder_;
/**
*
* If specified, attempt to create a locally generated response, send it
* downstream, and stop processing additional filters and ignore any
* additional messages received from the remote server for this request or
* response. If a response has already started -- for example, if this
* message is sent response to a ``response_body`` message -- then
* this will either ship the reply directly to the downstream codec,
* or reset the stream.
*
*
* .envoy.service.ext_proc.v3.ImmediateResponse immediate_response = 7;
* @return Whether the immediateResponse field is set.
*/
@java.lang.Override
public boolean hasImmediateResponse() {
return responseCase_ == 7;
}
/**
*
* If specified, attempt to create a locally generated response, send it
* downstream, and stop processing additional filters and ignore any
* additional messages received from the remote server for this request or
* response. If a response has already started -- for example, if this
* message is sent response to a ``response_body`` message -- then
* this will either ship the reply directly to the downstream codec,
* or reset the stream.
*
*
* .envoy.service.ext_proc.v3.ImmediateResponse immediate_response = 7;
* @return The immediateResponse.
*/
@java.lang.Override
public io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse getImmediateResponse() {
if (immediateResponseBuilder_ == null) {
if (responseCase_ == 7) {
return (io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse) response_;
}
return io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse.getDefaultInstance();
} else {
if (responseCase_ == 7) {
return immediateResponseBuilder_.getMessage();
}
return io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse.getDefaultInstance();
}
}
/**
*
* If specified, attempt to create a locally generated response, send it
* downstream, and stop processing additional filters and ignore any
* additional messages received from the remote server for this request or
* response. If a response has already started -- for example, if this
* message is sent response to a ``response_body`` message -- then
* this will either ship the reply directly to the downstream codec,
* or reset the stream.
*
*
* .envoy.service.ext_proc.v3.ImmediateResponse immediate_response = 7;
*/
public Builder setImmediateResponse(io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse value) {
if (immediateResponseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
response_ = value;
onChanged();
} else {
immediateResponseBuilder_.setMessage(value);
}
responseCase_ = 7;
return this;
}
/**
*
* If specified, attempt to create a locally generated response, send it
* downstream, and stop processing additional filters and ignore any
* additional messages received from the remote server for this request or
* response. If a response has already started -- for example, if this
* message is sent response to a ``response_body`` message -- then
* this will either ship the reply directly to the downstream codec,
* or reset the stream.
*
*
* .envoy.service.ext_proc.v3.ImmediateResponse immediate_response = 7;
*/
public Builder setImmediateResponse(
io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse.Builder builderForValue) {
if (immediateResponseBuilder_ == null) {
response_ = builderForValue.build();
onChanged();
} else {
immediateResponseBuilder_.setMessage(builderForValue.build());
}
responseCase_ = 7;
return this;
}
/**
*
* If specified, attempt to create a locally generated response, send it
* downstream, and stop processing additional filters and ignore any
* additional messages received from the remote server for this request or
* response. If a response has already started -- for example, if this
* message is sent response to a ``response_body`` message -- then
* this will either ship the reply directly to the downstream codec,
* or reset the stream.
*
*
* .envoy.service.ext_proc.v3.ImmediateResponse immediate_response = 7;
*/
public Builder mergeImmediateResponse(io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse value) {
if (immediateResponseBuilder_ == null) {
if (responseCase_ == 7 &&
response_ != io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse.getDefaultInstance()) {
response_ = io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse.newBuilder((io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse) response_)
.mergeFrom(value).buildPartial();
} else {
response_ = value;
}
onChanged();
} else {
if (responseCase_ == 7) {
immediateResponseBuilder_.mergeFrom(value);
} else {
immediateResponseBuilder_.setMessage(value);
}
}
responseCase_ = 7;
return this;
}
/**
*
* If specified, attempt to create a locally generated response, send it
* downstream, and stop processing additional filters and ignore any
* additional messages received from the remote server for this request or
* response. If a response has already started -- for example, if this
* message is sent response to a ``response_body`` message -- then
* this will either ship the reply directly to the downstream codec,
* or reset the stream.
*
*
* .envoy.service.ext_proc.v3.ImmediateResponse immediate_response = 7;
*/
public Builder clearImmediateResponse() {
if (immediateResponseBuilder_ == null) {
if (responseCase_ == 7) {
responseCase_ = 0;
response_ = null;
onChanged();
}
} else {
if (responseCase_ == 7) {
responseCase_ = 0;
response_ = null;
}
immediateResponseBuilder_.clear();
}
return this;
}
/**
*
* If specified, attempt to create a locally generated response, send it
* downstream, and stop processing additional filters and ignore any
* additional messages received from the remote server for this request or
* response. If a response has already started -- for example, if this
* message is sent response to a ``response_body`` message -- then
* this will either ship the reply directly to the downstream codec,
* or reset the stream.
*
*
* .envoy.service.ext_proc.v3.ImmediateResponse immediate_response = 7;
*/
public io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse.Builder getImmediateResponseBuilder() {
return getImmediateResponseFieldBuilder().getBuilder();
}
/**
*
* If specified, attempt to create a locally generated response, send it
* downstream, and stop processing additional filters and ignore any
* additional messages received from the remote server for this request or
* response. If a response has already started -- for example, if this
* message is sent response to a ``response_body`` message -- then
* this will either ship the reply directly to the downstream codec,
* or reset the stream.
*
*
* .envoy.service.ext_proc.v3.ImmediateResponse immediate_response = 7;
*/
@java.lang.Override
public io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponseOrBuilder getImmediateResponseOrBuilder() {
if ((responseCase_ == 7) && (immediateResponseBuilder_ != null)) {
return immediateResponseBuilder_.getMessageOrBuilder();
} else {
if (responseCase_ == 7) {
return (io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse) response_;
}
return io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse.getDefaultInstance();
}
}
/**
*
* If specified, attempt to create a locally generated response, send it
* downstream, and stop processing additional filters and ignore any
* additional messages received from the remote server for this request or
* response. If a response has already started -- for example, if this
* message is sent response to a ``response_body`` message -- then
* this will either ship the reply directly to the downstream codec,
* or reset the stream.
*
*
* .envoy.service.ext_proc.v3.ImmediateResponse immediate_response = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse, io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse.Builder, io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponseOrBuilder>
getImmediateResponseFieldBuilder() {
if (immediateResponseBuilder_ == null) {
if (!(responseCase_ == 7)) {
response_ = io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse.getDefaultInstance();
}
immediateResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse, io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse.Builder, io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponseOrBuilder>(
(io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse) response_,
getParentForChildren(),
isClean());
response_ = null;
}
responseCase_ = 7;
onChanged();;
return immediateResponseBuilder_;
}
private com.google.protobuf.Struct dynamicMetadata_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> dynamicMetadataBuilder_;
/**
*
* [#not-implemented-hide:]
* Optional metadata that will be emitted as dynamic metadata to be consumed by the next
* filter. This metadata will be placed in the namespace ``envoy.filters.http.ext_proc``.
*
*
* .google.protobuf.Struct dynamic_metadata = 8;
* @return Whether the dynamicMetadata field is set.
*/
public boolean hasDynamicMetadata() {
return dynamicMetadataBuilder_ != null || dynamicMetadata_ != null;
}
/**
*
* [#not-implemented-hide:]
* Optional metadata that will be emitted as dynamic metadata to be consumed by the next
* filter. This metadata will be placed in the namespace ``envoy.filters.http.ext_proc``.
*
*
* .google.protobuf.Struct dynamic_metadata = 8;
* @return The dynamicMetadata.
*/
public com.google.protobuf.Struct getDynamicMetadata() {
if (dynamicMetadataBuilder_ == null) {
return dynamicMetadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : dynamicMetadata_;
} else {
return dynamicMetadataBuilder_.getMessage();
}
}
/**
*
* [#not-implemented-hide:]
* Optional metadata that will be emitted as dynamic metadata to be consumed by the next
* filter. This metadata will be placed in the namespace ``envoy.filters.http.ext_proc``.
*
*
* .google.protobuf.Struct dynamic_metadata = 8;
*/
public Builder setDynamicMetadata(com.google.protobuf.Struct value) {
if (dynamicMetadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
dynamicMetadata_ = value;
onChanged();
} else {
dynamicMetadataBuilder_.setMessage(value);
}
return this;
}
/**
*
* [#not-implemented-hide:]
* Optional metadata that will be emitted as dynamic metadata to be consumed by the next
* filter. This metadata will be placed in the namespace ``envoy.filters.http.ext_proc``.
*
*
* .google.protobuf.Struct dynamic_metadata = 8;
*/
public Builder setDynamicMetadata(
com.google.protobuf.Struct.Builder builderForValue) {
if (dynamicMetadataBuilder_ == null) {
dynamicMetadata_ = builderForValue.build();
onChanged();
} else {
dynamicMetadataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* [#not-implemented-hide:]
* Optional metadata that will be emitted as dynamic metadata to be consumed by the next
* filter. This metadata will be placed in the namespace ``envoy.filters.http.ext_proc``.
*
*
* .google.protobuf.Struct dynamic_metadata = 8;
*/
public Builder mergeDynamicMetadata(com.google.protobuf.Struct value) {
if (dynamicMetadataBuilder_ == null) {
if (dynamicMetadata_ != null) {
dynamicMetadata_ =
com.google.protobuf.Struct.newBuilder(dynamicMetadata_).mergeFrom(value).buildPartial();
} else {
dynamicMetadata_ = value;
}
onChanged();
} else {
dynamicMetadataBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* [#not-implemented-hide:]
* Optional metadata that will be emitted as dynamic metadata to be consumed by the next
* filter. This metadata will be placed in the namespace ``envoy.filters.http.ext_proc``.
*
*
* .google.protobuf.Struct dynamic_metadata = 8;
*/
public Builder clearDynamicMetadata() {
if (dynamicMetadataBuilder_ == null) {
dynamicMetadata_ = null;
onChanged();
} else {
dynamicMetadata_ = null;
dynamicMetadataBuilder_ = null;
}
return this;
}
/**
*
* [#not-implemented-hide:]
* Optional metadata that will be emitted as dynamic metadata to be consumed by the next
* filter. This metadata will be placed in the namespace ``envoy.filters.http.ext_proc``.
*
*
* .google.protobuf.Struct dynamic_metadata = 8;
*/
public com.google.protobuf.Struct.Builder getDynamicMetadataBuilder() {
onChanged();
return getDynamicMetadataFieldBuilder().getBuilder();
}
/**
*
* [#not-implemented-hide:]
* Optional metadata that will be emitted as dynamic metadata to be consumed by the next
* filter. This metadata will be placed in the namespace ``envoy.filters.http.ext_proc``.
*
*
* .google.protobuf.Struct dynamic_metadata = 8;
*/
public com.google.protobuf.StructOrBuilder getDynamicMetadataOrBuilder() {
if (dynamicMetadataBuilder_ != null) {
return dynamicMetadataBuilder_.getMessageOrBuilder();
} else {
return dynamicMetadata_ == null ?
com.google.protobuf.Struct.getDefaultInstance() : dynamicMetadata_;
}
}
/**
*
* [#not-implemented-hide:]
* Optional metadata that will be emitted as dynamic metadata to be consumed by the next
* filter. This metadata will be placed in the namespace ``envoy.filters.http.ext_proc``.
*
*
* .google.protobuf.Struct dynamic_metadata = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>
getDynamicMetadataFieldBuilder() {
if (dynamicMetadataBuilder_ == null) {
dynamicMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
getDynamicMetadata(),
getParentForChildren(),
isClean());
dynamicMetadata_ = null;
}
return dynamicMetadataBuilder_;
}
private io.envoyproxy.envoy.extensions.filters.http.ext_proc.v3.ProcessingMode modeOverride_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.extensions.filters.http.ext_proc.v3.ProcessingMode, io.envoyproxy.envoy.extensions.filters.http.ext_proc.v3.ProcessingMode.Builder, io.envoyproxy.envoy.extensions.filters.http.ext_proc.v3.ProcessingModeOrBuilder> modeOverrideBuilder_;
/**
*
* Override how parts of the HTTP request and response are processed
* for the duration of this particular request/response only. Servers
* may use this to intelligently control how requests are processed
* based on the headers and other metadata that they see.
* This field is ignored by Envoy when the ext_proc filter config
* :ref:`allow_mode_override
* <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.allow_mode_override>`
* is set to false.
*
*
* .envoy.extensions.filters.http.ext_proc.v3.ProcessingMode mode_override = 9;
* @return Whether the modeOverride field is set.
*/
public boolean hasModeOverride() {
return modeOverrideBuilder_ != null || modeOverride_ != null;
}
/**
*
* Override how parts of the HTTP request and response are processed
* for the duration of this particular request/response only. Servers
* may use this to intelligently control how requests are processed
* based on the headers and other metadata that they see.
* This field is ignored by Envoy when the ext_proc filter config
* :ref:`allow_mode_override
* <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.allow_mode_override>`
* is set to false.
*
*
* .envoy.extensions.filters.http.ext_proc.v3.ProcessingMode mode_override = 9;
* @return The modeOverride.
*/
public io.envoyproxy.envoy.extensions.filters.http.ext_proc.v3.ProcessingMode getModeOverride() {
if (modeOverrideBuilder_ == null) {
return modeOverride_ == null ? io.envoyproxy.envoy.extensions.filters.http.ext_proc.v3.ProcessingMode.getDefaultInstance() : modeOverride_;
} else {
return modeOverrideBuilder_.getMessage();
}
}
/**
*
* Override how parts of the HTTP request and response are processed
* for the duration of this particular request/response only. Servers
* may use this to intelligently control how requests are processed
* based on the headers and other metadata that they see.
* This field is ignored by Envoy when the ext_proc filter config
* :ref:`allow_mode_override
* <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.allow_mode_override>`
* is set to false.
*
*
* .envoy.extensions.filters.http.ext_proc.v3.ProcessingMode mode_override = 9;
*/
public Builder setModeOverride(io.envoyproxy.envoy.extensions.filters.http.ext_proc.v3.ProcessingMode value) {
if (modeOverrideBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
modeOverride_ = value;
onChanged();
} else {
modeOverrideBuilder_.setMessage(value);
}
return this;
}
/**
*
* Override how parts of the HTTP request and response are processed
* for the duration of this particular request/response only. Servers
* may use this to intelligently control how requests are processed
* based on the headers and other metadata that they see.
* This field is ignored by Envoy when the ext_proc filter config
* :ref:`allow_mode_override
* <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.allow_mode_override>`
* is set to false.
*
*
* .envoy.extensions.filters.http.ext_proc.v3.ProcessingMode mode_override = 9;
*/
public Builder setModeOverride(
io.envoyproxy.envoy.extensions.filters.http.ext_proc.v3.ProcessingMode.Builder builderForValue) {
if (modeOverrideBuilder_ == null) {
modeOverride_ = builderForValue.build();
onChanged();
} else {
modeOverrideBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Override how parts of the HTTP request and response are processed
* for the duration of this particular request/response only. Servers
* may use this to intelligently control how requests are processed
* based on the headers and other metadata that they see.
* This field is ignored by Envoy when the ext_proc filter config
* :ref:`allow_mode_override
* <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.allow_mode_override>`
* is set to false.
*
*
* .envoy.extensions.filters.http.ext_proc.v3.ProcessingMode mode_override = 9;
*/
public Builder mergeModeOverride(io.envoyproxy.envoy.extensions.filters.http.ext_proc.v3.ProcessingMode value) {
if (modeOverrideBuilder_ == null) {
if (modeOverride_ != null) {
modeOverride_ =
io.envoyproxy.envoy.extensions.filters.http.ext_proc.v3.ProcessingMode.newBuilder(modeOverride_).mergeFrom(value).buildPartial();
} else {
modeOverride_ = value;
}
onChanged();
} else {
modeOverrideBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Override how parts of the HTTP request and response are processed
* for the duration of this particular request/response only. Servers
* may use this to intelligently control how requests are processed
* based on the headers and other metadata that they see.
* This field is ignored by Envoy when the ext_proc filter config
* :ref:`allow_mode_override
* <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.allow_mode_override>`
* is set to false.
*
*
* .envoy.extensions.filters.http.ext_proc.v3.ProcessingMode mode_override = 9;
*/
public Builder clearModeOverride() {
if (modeOverrideBuilder_ == null) {
modeOverride_ = null;
onChanged();
} else {
modeOverride_ = null;
modeOverrideBuilder_ = null;
}
return this;
}
/**
*
* Override how parts of the HTTP request and response are processed
* for the duration of this particular request/response only. Servers
* may use this to intelligently control how requests are processed
* based on the headers and other metadata that they see.
* This field is ignored by Envoy when the ext_proc filter config
* :ref:`allow_mode_override
* <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.allow_mode_override>`
* is set to false.
*
*
* .envoy.extensions.filters.http.ext_proc.v3.ProcessingMode mode_override = 9;
*/
public io.envoyproxy.envoy.extensions.filters.http.ext_proc.v3.ProcessingMode.Builder getModeOverrideBuilder() {
onChanged();
return getModeOverrideFieldBuilder().getBuilder();
}
/**
*
* Override how parts of the HTTP request and response are processed
* for the duration of this particular request/response only. Servers
* may use this to intelligently control how requests are processed
* based on the headers and other metadata that they see.
* This field is ignored by Envoy when the ext_proc filter config
* :ref:`allow_mode_override
* <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.allow_mode_override>`
* is set to false.
*
*
* .envoy.extensions.filters.http.ext_proc.v3.ProcessingMode mode_override = 9;
*/
public io.envoyproxy.envoy.extensions.filters.http.ext_proc.v3.ProcessingModeOrBuilder getModeOverrideOrBuilder() {
if (modeOverrideBuilder_ != null) {
return modeOverrideBuilder_.getMessageOrBuilder();
} else {
return modeOverride_ == null ?
io.envoyproxy.envoy.extensions.filters.http.ext_proc.v3.ProcessingMode.getDefaultInstance() : modeOverride_;
}
}
/**
*
* Override how parts of the HTTP request and response are processed
* for the duration of this particular request/response only. Servers
* may use this to intelligently control how requests are processed
* based on the headers and other metadata that they see.
* This field is ignored by Envoy when the ext_proc filter config
* :ref:`allow_mode_override
* <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.allow_mode_override>`
* is set to false.
*
*
* .envoy.extensions.filters.http.ext_proc.v3.ProcessingMode mode_override = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.extensions.filters.http.ext_proc.v3.ProcessingMode, io.envoyproxy.envoy.extensions.filters.http.ext_proc.v3.ProcessingMode.Builder, io.envoyproxy.envoy.extensions.filters.http.ext_proc.v3.ProcessingModeOrBuilder>
getModeOverrideFieldBuilder() {
if (modeOverrideBuilder_ == null) {
modeOverrideBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.extensions.filters.http.ext_proc.v3.ProcessingMode, io.envoyproxy.envoy.extensions.filters.http.ext_proc.v3.ProcessingMode.Builder, io.envoyproxy.envoy.extensions.filters.http.ext_proc.v3.ProcessingModeOrBuilder>(
getModeOverride(),
getParentForChildren(),
isClean());
modeOverride_ = null;
}
return modeOverrideBuilder_;
}
private com.google.protobuf.Duration overrideMessageTimeout_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> overrideMessageTimeoutBuilder_;
/**
*
* When ext_proc server receives a request message, in case it needs more
* time to process the message, it sends back a ProcessingResponse message
* with a new timeout value. When Envoy receives this response message,
* it ignores other fields in the response, just stop the original timer,
* which has the timeout value specified in
* :ref:`message_timeout
* <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.message_timeout>`
* and start a new timer with this ``override_message_timeout`` value and keep the
* Envoy ext_proc filter state machine intact.
* Has to be >= 1ms and <=
* :ref:`max_message_timeout <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.max_message_timeout>`
* Such message can be sent at most once in a particular Envoy ext_proc filter processing state.
* To enable this API, one has to set ``max_message_timeout`` to a number >= 1ms.
*
*
* .google.protobuf.Duration override_message_timeout = 10;
* @return Whether the overrideMessageTimeout field is set.
*/
public boolean hasOverrideMessageTimeout() {
return overrideMessageTimeoutBuilder_ != null || overrideMessageTimeout_ != null;
}
/**
*
* When ext_proc server receives a request message, in case it needs more
* time to process the message, it sends back a ProcessingResponse message
* with a new timeout value. When Envoy receives this response message,
* it ignores other fields in the response, just stop the original timer,
* which has the timeout value specified in
* :ref:`message_timeout
* <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.message_timeout>`
* and start a new timer with this ``override_message_timeout`` value and keep the
* Envoy ext_proc filter state machine intact.
* Has to be >= 1ms and <=
* :ref:`max_message_timeout <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.max_message_timeout>`
* Such message can be sent at most once in a particular Envoy ext_proc filter processing state.
* To enable this API, one has to set ``max_message_timeout`` to a number >= 1ms.
*
*
* .google.protobuf.Duration override_message_timeout = 10;
* @return The overrideMessageTimeout.
*/
public com.google.protobuf.Duration getOverrideMessageTimeout() {
if (overrideMessageTimeoutBuilder_ == null) {
return overrideMessageTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : overrideMessageTimeout_;
} else {
return overrideMessageTimeoutBuilder_.getMessage();
}
}
/**
*
* When ext_proc server receives a request message, in case it needs more
* time to process the message, it sends back a ProcessingResponse message
* with a new timeout value. When Envoy receives this response message,
* it ignores other fields in the response, just stop the original timer,
* which has the timeout value specified in
* :ref:`message_timeout
* <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.message_timeout>`
* and start a new timer with this ``override_message_timeout`` value and keep the
* Envoy ext_proc filter state machine intact.
* Has to be >= 1ms and <=
* :ref:`max_message_timeout <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.max_message_timeout>`
* Such message can be sent at most once in a particular Envoy ext_proc filter processing state.
* To enable this API, one has to set ``max_message_timeout`` to a number >= 1ms.
*
*
* .google.protobuf.Duration override_message_timeout = 10;
*/
public Builder setOverrideMessageTimeout(com.google.protobuf.Duration value) {
if (overrideMessageTimeoutBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
overrideMessageTimeout_ = value;
onChanged();
} else {
overrideMessageTimeoutBuilder_.setMessage(value);
}
return this;
}
/**
*
* When ext_proc server receives a request message, in case it needs more
* time to process the message, it sends back a ProcessingResponse message
* with a new timeout value. When Envoy receives this response message,
* it ignores other fields in the response, just stop the original timer,
* which has the timeout value specified in
* :ref:`message_timeout
* <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.message_timeout>`
* and start a new timer with this ``override_message_timeout`` value and keep the
* Envoy ext_proc filter state machine intact.
* Has to be >= 1ms and <=
* :ref:`max_message_timeout <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.max_message_timeout>`
* Such message can be sent at most once in a particular Envoy ext_proc filter processing state.
* To enable this API, one has to set ``max_message_timeout`` to a number >= 1ms.
*
*
* .google.protobuf.Duration override_message_timeout = 10;
*/
public Builder setOverrideMessageTimeout(
com.google.protobuf.Duration.Builder builderForValue) {
if (overrideMessageTimeoutBuilder_ == null) {
overrideMessageTimeout_ = builderForValue.build();
onChanged();
} else {
overrideMessageTimeoutBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* When ext_proc server receives a request message, in case it needs more
* time to process the message, it sends back a ProcessingResponse message
* with a new timeout value. When Envoy receives this response message,
* it ignores other fields in the response, just stop the original timer,
* which has the timeout value specified in
* :ref:`message_timeout
* <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.message_timeout>`
* and start a new timer with this ``override_message_timeout`` value and keep the
* Envoy ext_proc filter state machine intact.
* Has to be >= 1ms and <=
* :ref:`max_message_timeout <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.max_message_timeout>`
* Such message can be sent at most once in a particular Envoy ext_proc filter processing state.
* To enable this API, one has to set ``max_message_timeout`` to a number >= 1ms.
*
*
* .google.protobuf.Duration override_message_timeout = 10;
*/
public Builder mergeOverrideMessageTimeout(com.google.protobuf.Duration value) {
if (overrideMessageTimeoutBuilder_ == null) {
if (overrideMessageTimeout_ != null) {
overrideMessageTimeout_ =
com.google.protobuf.Duration.newBuilder(overrideMessageTimeout_).mergeFrom(value).buildPartial();
} else {
overrideMessageTimeout_ = value;
}
onChanged();
} else {
overrideMessageTimeoutBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* When ext_proc server receives a request message, in case it needs more
* time to process the message, it sends back a ProcessingResponse message
* with a new timeout value. When Envoy receives this response message,
* it ignores other fields in the response, just stop the original timer,
* which has the timeout value specified in
* :ref:`message_timeout
* <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.message_timeout>`
* and start a new timer with this ``override_message_timeout`` value and keep the
* Envoy ext_proc filter state machine intact.
* Has to be >= 1ms and <=
* :ref:`max_message_timeout <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.max_message_timeout>`
* Such message can be sent at most once in a particular Envoy ext_proc filter processing state.
* To enable this API, one has to set ``max_message_timeout`` to a number >= 1ms.
*
*
* .google.protobuf.Duration override_message_timeout = 10;
*/
public Builder clearOverrideMessageTimeout() {
if (overrideMessageTimeoutBuilder_ == null) {
overrideMessageTimeout_ = null;
onChanged();
} else {
overrideMessageTimeout_ = null;
overrideMessageTimeoutBuilder_ = null;
}
return this;
}
/**
*
* When ext_proc server receives a request message, in case it needs more
* time to process the message, it sends back a ProcessingResponse message
* with a new timeout value. When Envoy receives this response message,
* it ignores other fields in the response, just stop the original timer,
* which has the timeout value specified in
* :ref:`message_timeout
* <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.message_timeout>`
* and start a new timer with this ``override_message_timeout`` value and keep the
* Envoy ext_proc filter state machine intact.
* Has to be >= 1ms and <=
* :ref:`max_message_timeout <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.max_message_timeout>`
* Such message can be sent at most once in a particular Envoy ext_proc filter processing state.
* To enable this API, one has to set ``max_message_timeout`` to a number >= 1ms.
*
*
* .google.protobuf.Duration override_message_timeout = 10;
*/
public com.google.protobuf.Duration.Builder getOverrideMessageTimeoutBuilder() {
onChanged();
return getOverrideMessageTimeoutFieldBuilder().getBuilder();
}
/**
*
* When ext_proc server receives a request message, in case it needs more
* time to process the message, it sends back a ProcessingResponse message
* with a new timeout value. When Envoy receives this response message,
* it ignores other fields in the response, just stop the original timer,
* which has the timeout value specified in
* :ref:`message_timeout
* <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.message_timeout>`
* and start a new timer with this ``override_message_timeout`` value and keep the
* Envoy ext_proc filter state machine intact.
* Has to be >= 1ms and <=
* :ref:`max_message_timeout <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.max_message_timeout>`
* Such message can be sent at most once in a particular Envoy ext_proc filter processing state.
* To enable this API, one has to set ``max_message_timeout`` to a number >= 1ms.
*
*
* .google.protobuf.Duration override_message_timeout = 10;
*/
public com.google.protobuf.DurationOrBuilder getOverrideMessageTimeoutOrBuilder() {
if (overrideMessageTimeoutBuilder_ != null) {
return overrideMessageTimeoutBuilder_.getMessageOrBuilder();
} else {
return overrideMessageTimeout_ == null ?
com.google.protobuf.Duration.getDefaultInstance() : overrideMessageTimeout_;
}
}
/**
*
* When ext_proc server receives a request message, in case it needs more
* time to process the message, it sends back a ProcessingResponse message
* with a new timeout value. When Envoy receives this response message,
* it ignores other fields in the response, just stop the original timer,
* which has the timeout value specified in
* :ref:`message_timeout
* <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.message_timeout>`
* and start a new timer with this ``override_message_timeout`` value and keep the
* Envoy ext_proc filter state machine intact.
* Has to be >= 1ms and <=
* :ref:`max_message_timeout <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.max_message_timeout>`
* Such message can be sent at most once in a particular Envoy ext_proc filter processing state.
* To enable this API, one has to set ``max_message_timeout`` to a number >= 1ms.
*
*
* .google.protobuf.Duration override_message_timeout = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getOverrideMessageTimeoutFieldBuilder() {
if (overrideMessageTimeoutBuilder_ == null) {
overrideMessageTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getOverrideMessageTimeout(),
getParentForChildren(),
isClean());
overrideMessageTimeout_ = null;
}
return overrideMessageTimeoutBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:envoy.service.ext_proc.v3.ProcessingResponse)
}
// @@protoc_insertion_point(class_scope:envoy.service.ext_proc.v3.ProcessingResponse)
private static final io.envoyproxy.envoy.service.ext_proc.v3.ProcessingResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.ext_proc.v3.ProcessingResponse();
}
public static io.envoyproxy.envoy.service.ext_proc.v3.ProcessingResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ProcessingResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProcessingResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.envoyproxy.envoy.service.ext_proc.v3.ProcessingResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}