implements
// @@protoc_insertion_point(builder_implements:envoy.service.ext_proc.v3.CommonResponse)
io.envoyproxy.envoy.service.ext_proc.v3.CommonResponseOrBuilder {
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_CommonResponse_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_CommonResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.ext_proc.v3.CommonResponse.class, io.envoyproxy.envoy.service.ext_proc.v3.CommonResponse.Builder.class);
}
// Construct using io.envoyproxy.envoy.service.ext_proc.v3.CommonResponse.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();
status_ = 0;
if (headerMutationBuilder_ == null) {
headerMutation_ = null;
} else {
headerMutation_ = null;
headerMutationBuilder_ = null;
}
if (bodyMutationBuilder_ == null) {
bodyMutation_ = null;
} else {
bodyMutation_ = null;
bodyMutationBuilder_ = null;
}
if (trailersBuilder_ == null) {
trailers_ = null;
} else {
trailers_ = null;
trailersBuilder_ = null;
}
clearRouteCache_ = false;
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_CommonResponse_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.service.ext_proc.v3.CommonResponse getDefaultInstanceForType() {
return io.envoyproxy.envoy.service.ext_proc.v3.CommonResponse.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.service.ext_proc.v3.CommonResponse build() {
io.envoyproxy.envoy.service.ext_proc.v3.CommonResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.service.ext_proc.v3.CommonResponse buildPartial() {
io.envoyproxy.envoy.service.ext_proc.v3.CommonResponse result = new io.envoyproxy.envoy.service.ext_proc.v3.CommonResponse(this);
result.status_ = status_;
if (headerMutationBuilder_ == null) {
result.headerMutation_ = headerMutation_;
} else {
result.headerMutation_ = headerMutationBuilder_.build();
}
if (bodyMutationBuilder_ == null) {
result.bodyMutation_ = bodyMutation_;
} else {
result.bodyMutation_ = bodyMutationBuilder_.build();
}
if (trailersBuilder_ == null) {
result.trailers_ = trailers_;
} else {
result.trailers_ = trailersBuilder_.build();
}
result.clearRouteCache_ = clearRouteCache_;
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.CommonResponse) {
return mergeFrom((io.envoyproxy.envoy.service.ext_proc.v3.CommonResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.service.ext_proc.v3.CommonResponse other) {
if (other == io.envoyproxy.envoy.service.ext_proc.v3.CommonResponse.getDefaultInstance()) return this;
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
if (other.hasHeaderMutation()) {
mergeHeaderMutation(other.getHeaderMutation());
}
if (other.hasBodyMutation()) {
mergeBodyMutation(other.getBodyMutation());
}
if (other.hasTrailers()) {
mergeTrailers(other.getTrailers());
}
if (other.getClearRouteCache() != false) {
setClearRouteCache(other.getClearRouteCache());
}
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.CommonResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.service.ext_proc.v3.CommonResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int status_ = 0;
/**
*
* If set, provide additional direction on how the Envoy proxy should
* handle the rest of the HTTP filter chain.
*
*
* .envoy.service.ext_proc.v3.CommonResponse.ResponseStatus status = 1 [(.validate.rules) = { ... }
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* If set, provide additional direction on how the Envoy proxy should
* handle the rest of the HTTP filter chain.
*
*
* .envoy.service.ext_proc.v3.CommonResponse.ResponseStatus status = 1 [(.validate.rules) = { ... }
* @param value The enum numeric value on the wire for status to set.
* @return This builder for chaining.
*/
public Builder setStatusValue(int value) {
status_ = value;
onChanged();
return this;
}
/**
*
* If set, provide additional direction on how the Envoy proxy should
* handle the rest of the HTTP filter chain.
*
*
* .envoy.service.ext_proc.v3.CommonResponse.ResponseStatus status = 1 [(.validate.rules) = { ... }
* @return The status.
*/
@java.lang.Override
public io.envoyproxy.envoy.service.ext_proc.v3.CommonResponse.ResponseStatus getStatus() {
@SuppressWarnings("deprecation")
io.envoyproxy.envoy.service.ext_proc.v3.CommonResponse.ResponseStatus result = io.envoyproxy.envoy.service.ext_proc.v3.CommonResponse.ResponseStatus.valueOf(status_);
return result == null ? io.envoyproxy.envoy.service.ext_proc.v3.CommonResponse.ResponseStatus.UNRECOGNIZED : result;
}
/**
*
* If set, provide additional direction on how the Envoy proxy should
* handle the rest of the HTTP filter chain.
*
*
* .envoy.service.ext_proc.v3.CommonResponse.ResponseStatus status = 1 [(.validate.rules) = { ... }
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(io.envoyproxy.envoy.service.ext_proc.v3.CommonResponse.ResponseStatus value) {
if (value == null) {
throw new NullPointerException();
}
status_ = value.getNumber();
onChanged();
return this;
}
/**
*
* If set, provide additional direction on how the Envoy proxy should
* handle the rest of the HTTP filter chain.
*
*
* .envoy.service.ext_proc.v3.CommonResponse.ResponseStatus status = 1 [(.validate.rules) = { ... }
* @return This builder for chaining.
*/
public Builder clearStatus() {
status_ = 0;
onChanged();
return this;
}
private io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation headerMutation_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation, io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation.Builder, io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutationOrBuilder> headerMutationBuilder_;
/**
*
* Instructions on how to manipulate the headers. When responding to an
* HttpBody request, header mutations will only take effect if
* the current processing mode for the body is BUFFERED.
*
*
* .envoy.service.ext_proc.v3.HeaderMutation header_mutation = 2;
* @return Whether the headerMutation field is set.
*/
public boolean hasHeaderMutation() {
return headerMutationBuilder_ != null || headerMutation_ != null;
}
/**
*
* Instructions on how to manipulate the headers. When responding to an
* HttpBody request, header mutations will only take effect if
* the current processing mode for the body is BUFFERED.
*
*
* .envoy.service.ext_proc.v3.HeaderMutation header_mutation = 2;
* @return The headerMutation.
*/
public io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation getHeaderMutation() {
if (headerMutationBuilder_ == null) {
return headerMutation_ == null ? io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation.getDefaultInstance() : headerMutation_;
} else {
return headerMutationBuilder_.getMessage();
}
}
/**
*
* Instructions on how to manipulate the headers. When responding to an
* HttpBody request, header mutations will only take effect if
* the current processing mode for the body is BUFFERED.
*
*
* .envoy.service.ext_proc.v3.HeaderMutation header_mutation = 2;
*/
public Builder setHeaderMutation(io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation value) {
if (headerMutationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
headerMutation_ = value;
onChanged();
} else {
headerMutationBuilder_.setMessage(value);
}
return this;
}
/**
*
* Instructions on how to manipulate the headers. When responding to an
* HttpBody request, header mutations will only take effect if
* the current processing mode for the body is BUFFERED.
*
*
* .envoy.service.ext_proc.v3.HeaderMutation header_mutation = 2;
*/
public Builder setHeaderMutation(
io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation.Builder builderForValue) {
if (headerMutationBuilder_ == null) {
headerMutation_ = builderForValue.build();
onChanged();
} else {
headerMutationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Instructions on how to manipulate the headers. When responding to an
* HttpBody request, header mutations will only take effect if
* the current processing mode for the body is BUFFERED.
*
*
* .envoy.service.ext_proc.v3.HeaderMutation header_mutation = 2;
*/
public Builder mergeHeaderMutation(io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation value) {
if (headerMutationBuilder_ == null) {
if (headerMutation_ != null) {
headerMutation_ =
io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation.newBuilder(headerMutation_).mergeFrom(value).buildPartial();
} else {
headerMutation_ = value;
}
onChanged();
} else {
headerMutationBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Instructions on how to manipulate the headers. When responding to an
* HttpBody request, header mutations will only take effect if
* the current processing mode for the body is BUFFERED.
*
*
* .envoy.service.ext_proc.v3.HeaderMutation header_mutation = 2;
*/
public Builder clearHeaderMutation() {
if (headerMutationBuilder_ == null) {
headerMutation_ = null;
onChanged();
} else {
headerMutation_ = null;
headerMutationBuilder_ = null;
}
return this;
}
/**
*
* Instructions on how to manipulate the headers. When responding to an
* HttpBody request, header mutations will only take effect if
* the current processing mode for the body is BUFFERED.
*
*
* .envoy.service.ext_proc.v3.HeaderMutation header_mutation = 2;
*/
public io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation.Builder getHeaderMutationBuilder() {
onChanged();
return getHeaderMutationFieldBuilder().getBuilder();
}
/**
*
* Instructions on how to manipulate the headers. When responding to an
* HttpBody request, header mutations will only take effect if
* the current processing mode for the body is BUFFERED.
*
*
* .envoy.service.ext_proc.v3.HeaderMutation header_mutation = 2;
*/
public io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutationOrBuilder getHeaderMutationOrBuilder() {
if (headerMutationBuilder_ != null) {
return headerMutationBuilder_.getMessageOrBuilder();
} else {
return headerMutation_ == null ?
io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation.getDefaultInstance() : headerMutation_;
}
}
/**
*
* Instructions on how to manipulate the headers. When responding to an
* HttpBody request, header mutations will only take effect if
* the current processing mode for the body is BUFFERED.
*
*
* .envoy.service.ext_proc.v3.HeaderMutation header_mutation = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation, io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation.Builder, io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutationOrBuilder>
getHeaderMutationFieldBuilder() {
if (headerMutationBuilder_ == null) {
headerMutationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation, io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation.Builder, io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutationOrBuilder>(
getHeaderMutation(),
getParentForChildren(),
isClean());
headerMutation_ = null;
}
return headerMutationBuilder_;
}
private io.envoyproxy.envoy.service.ext_proc.v3.BodyMutation bodyMutation_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.service.ext_proc.v3.BodyMutation, io.envoyproxy.envoy.service.ext_proc.v3.BodyMutation.Builder, io.envoyproxy.envoy.service.ext_proc.v3.BodyMutationOrBuilder> bodyMutationBuilder_;
/**
*
* Replace the body of the last message sent to the remote server on this
* stream. If responding to an HttpBody request, simply replace or clear
* the body chunk that was sent with that request. Body mutations may take
* effect in response either to ``header`` or ``body`` messages. When it is
* in response to ``header`` messages, it only take effect if the
* :ref:`status <envoy_v3_api_field_service.ext_proc.v3.CommonResponse.status>`
* is set to CONTINUE_AND_REPLACE.
*
*
* .envoy.service.ext_proc.v3.BodyMutation body_mutation = 3;
* @return Whether the bodyMutation field is set.
*/
public boolean hasBodyMutation() {
return bodyMutationBuilder_ != null || bodyMutation_ != null;
}
/**
*
* Replace the body of the last message sent to the remote server on this
* stream. If responding to an HttpBody request, simply replace or clear
* the body chunk that was sent with that request. Body mutations may take
* effect in response either to ``header`` or ``body`` messages. When it is
* in response to ``header`` messages, it only take effect if the
* :ref:`status <envoy_v3_api_field_service.ext_proc.v3.CommonResponse.status>`
* is set to CONTINUE_AND_REPLACE.
*
*
* .envoy.service.ext_proc.v3.BodyMutation body_mutation = 3;
* @return The bodyMutation.
*/
public io.envoyproxy.envoy.service.ext_proc.v3.BodyMutation getBodyMutation() {
if (bodyMutationBuilder_ == null) {
return bodyMutation_ == null ? io.envoyproxy.envoy.service.ext_proc.v3.BodyMutation.getDefaultInstance() : bodyMutation_;
} else {
return bodyMutationBuilder_.getMessage();
}
}
/**
*
* Replace the body of the last message sent to the remote server on this
* stream. If responding to an HttpBody request, simply replace or clear
* the body chunk that was sent with that request. Body mutations may take
* effect in response either to ``header`` or ``body`` messages. When it is
* in response to ``header`` messages, it only take effect if the
* :ref:`status <envoy_v3_api_field_service.ext_proc.v3.CommonResponse.status>`
* is set to CONTINUE_AND_REPLACE.
*
*
* .envoy.service.ext_proc.v3.BodyMutation body_mutation = 3;
*/
public Builder setBodyMutation(io.envoyproxy.envoy.service.ext_proc.v3.BodyMutation value) {
if (bodyMutationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
bodyMutation_ = value;
onChanged();
} else {
bodyMutationBuilder_.setMessage(value);
}
return this;
}
/**
*
* Replace the body of the last message sent to the remote server on this
* stream. If responding to an HttpBody request, simply replace or clear
* the body chunk that was sent with that request. Body mutations may take
* effect in response either to ``header`` or ``body`` messages. When it is
* in response to ``header`` messages, it only take effect if the
* :ref:`status <envoy_v3_api_field_service.ext_proc.v3.CommonResponse.status>`
* is set to CONTINUE_AND_REPLACE.
*
*
* .envoy.service.ext_proc.v3.BodyMutation body_mutation = 3;
*/
public Builder setBodyMutation(
io.envoyproxy.envoy.service.ext_proc.v3.BodyMutation.Builder builderForValue) {
if (bodyMutationBuilder_ == null) {
bodyMutation_ = builderForValue.build();
onChanged();
} else {
bodyMutationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Replace the body of the last message sent to the remote server on this
* stream. If responding to an HttpBody request, simply replace or clear
* the body chunk that was sent with that request. Body mutations may take
* effect in response either to ``header`` or ``body`` messages. When it is
* in response to ``header`` messages, it only take effect if the
* :ref:`status <envoy_v3_api_field_service.ext_proc.v3.CommonResponse.status>`
* is set to CONTINUE_AND_REPLACE.
*
*
* .envoy.service.ext_proc.v3.BodyMutation body_mutation = 3;
*/
public Builder mergeBodyMutation(io.envoyproxy.envoy.service.ext_proc.v3.BodyMutation value) {
if (bodyMutationBuilder_ == null) {
if (bodyMutation_ != null) {
bodyMutation_ =
io.envoyproxy.envoy.service.ext_proc.v3.BodyMutation.newBuilder(bodyMutation_).mergeFrom(value).buildPartial();
} else {
bodyMutation_ = value;
}
onChanged();
} else {
bodyMutationBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Replace the body of the last message sent to the remote server on this
* stream. If responding to an HttpBody request, simply replace or clear
* the body chunk that was sent with that request. Body mutations may take
* effect in response either to ``header`` or ``body`` messages. When it is
* in response to ``header`` messages, it only take effect if the
* :ref:`status <envoy_v3_api_field_service.ext_proc.v3.CommonResponse.status>`
* is set to CONTINUE_AND_REPLACE.
*
*
* .envoy.service.ext_proc.v3.BodyMutation body_mutation = 3;
*/
public Builder clearBodyMutation() {
if (bodyMutationBuilder_ == null) {
bodyMutation_ = null;
onChanged();
} else {
bodyMutation_ = null;
bodyMutationBuilder_ = null;
}
return this;
}
/**
*
* Replace the body of the last message sent to the remote server on this
* stream. If responding to an HttpBody request, simply replace or clear
* the body chunk that was sent with that request. Body mutations may take
* effect in response either to ``header`` or ``body`` messages. When it is
* in response to ``header`` messages, it only take effect if the
* :ref:`status <envoy_v3_api_field_service.ext_proc.v3.CommonResponse.status>`
* is set to CONTINUE_AND_REPLACE.
*
*
* .envoy.service.ext_proc.v3.BodyMutation body_mutation = 3;
*/
public io.envoyproxy.envoy.service.ext_proc.v3.BodyMutation.Builder getBodyMutationBuilder() {
onChanged();
return getBodyMutationFieldBuilder().getBuilder();
}
/**
*
* Replace the body of the last message sent to the remote server on this
* stream. If responding to an HttpBody request, simply replace or clear
* the body chunk that was sent with that request. Body mutations may take
* effect in response either to ``header`` or ``body`` messages. When it is
* in response to ``header`` messages, it only take effect if the
* :ref:`status <envoy_v3_api_field_service.ext_proc.v3.CommonResponse.status>`
* is set to CONTINUE_AND_REPLACE.
*
*
* .envoy.service.ext_proc.v3.BodyMutation body_mutation = 3;
*/
public io.envoyproxy.envoy.service.ext_proc.v3.BodyMutationOrBuilder getBodyMutationOrBuilder() {
if (bodyMutationBuilder_ != null) {
return bodyMutationBuilder_.getMessageOrBuilder();
} else {
return bodyMutation_ == null ?
io.envoyproxy.envoy.service.ext_proc.v3.BodyMutation.getDefaultInstance() : bodyMutation_;
}
}
/**
*
* Replace the body of the last message sent to the remote server on this
* stream. If responding to an HttpBody request, simply replace or clear
* the body chunk that was sent with that request. Body mutations may take
* effect in response either to ``header`` or ``body`` messages. When it is
* in response to ``header`` messages, it only take effect if the
* :ref:`status <envoy_v3_api_field_service.ext_proc.v3.CommonResponse.status>`
* is set to CONTINUE_AND_REPLACE.
*
*
* .envoy.service.ext_proc.v3.BodyMutation body_mutation = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.service.ext_proc.v3.BodyMutation, io.envoyproxy.envoy.service.ext_proc.v3.BodyMutation.Builder, io.envoyproxy.envoy.service.ext_proc.v3.BodyMutationOrBuilder>
getBodyMutationFieldBuilder() {
if (bodyMutationBuilder_ == null) {
bodyMutationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.service.ext_proc.v3.BodyMutation, io.envoyproxy.envoy.service.ext_proc.v3.BodyMutation.Builder, io.envoyproxy.envoy.service.ext_proc.v3.BodyMutationOrBuilder>(
getBodyMutation(),
getParentForChildren(),
isClean());
bodyMutation_ = null;
}
return bodyMutationBuilder_;
}
private io.envoyproxy.envoy.config.core.v3.HeaderMap trailers_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.HeaderMap, io.envoyproxy.envoy.config.core.v3.HeaderMap.Builder, io.envoyproxy.envoy.config.core.v3.HeaderMapOrBuilder> trailersBuilder_;
/**
*
* [#not-implemented-hide:]
* Add new trailers to the message. This may be used when responding to either a
* HttpHeaders or HttpBody message, but only if this message is returned
* along with the CONTINUE_AND_REPLACE status.
* The ``trailers`` encoding is based on the runtime guard
* envoy_reloadable_features_send_header_raw_value setting.
* When it is true, the header value is encoded in the
* :ref:`raw_value <envoy_v3_api_field_config.core.v3.HeaderValue.raw_value>` field.
* When it is false, the header value is encoded in the
* :ref:`value <envoy_v3_api_field_config.core.v3.HeaderValue.value>` field.
*
*
* .envoy.config.core.v3.HeaderMap trailers = 4;
* @return Whether the trailers field is set.
*/
public boolean hasTrailers() {
return trailersBuilder_ != null || trailers_ != null;
}
/**
*
* [#not-implemented-hide:]
* Add new trailers to the message. This may be used when responding to either a
* HttpHeaders or HttpBody message, but only if this message is returned
* along with the CONTINUE_AND_REPLACE status.
* The ``trailers`` encoding is based on the runtime guard
* envoy_reloadable_features_send_header_raw_value setting.
* When it is true, the header value is encoded in the
* :ref:`raw_value <envoy_v3_api_field_config.core.v3.HeaderValue.raw_value>` field.
* When it is false, the header value is encoded in the
* :ref:`value <envoy_v3_api_field_config.core.v3.HeaderValue.value>` field.
*
*
* .envoy.config.core.v3.HeaderMap trailers = 4;
* @return The trailers.
*/
public io.envoyproxy.envoy.config.core.v3.HeaderMap getTrailers() {
if (trailersBuilder_ == null) {
return trailers_ == null ? io.envoyproxy.envoy.config.core.v3.HeaderMap.getDefaultInstance() : trailers_;
} else {
return trailersBuilder_.getMessage();
}
}
/**
*
* [#not-implemented-hide:]
* Add new trailers to the message. This may be used when responding to either a
* HttpHeaders or HttpBody message, but only if this message is returned
* along with the CONTINUE_AND_REPLACE status.
* The ``trailers`` encoding is based on the runtime guard
* envoy_reloadable_features_send_header_raw_value setting.
* When it is true, the header value is encoded in the
* :ref:`raw_value <envoy_v3_api_field_config.core.v3.HeaderValue.raw_value>` field.
* When it is false, the header value is encoded in the
* :ref:`value <envoy_v3_api_field_config.core.v3.HeaderValue.value>` field.
*
*
* .envoy.config.core.v3.HeaderMap trailers = 4;
*/
public Builder setTrailers(io.envoyproxy.envoy.config.core.v3.HeaderMap value) {
if (trailersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
trailers_ = value;
onChanged();
} else {
trailersBuilder_.setMessage(value);
}
return this;
}
/**
*
* [#not-implemented-hide:]
* Add new trailers to the message. This may be used when responding to either a
* HttpHeaders or HttpBody message, but only if this message is returned
* along with the CONTINUE_AND_REPLACE status.
* The ``trailers`` encoding is based on the runtime guard
* envoy_reloadable_features_send_header_raw_value setting.
* When it is true, the header value is encoded in the
* :ref:`raw_value <envoy_v3_api_field_config.core.v3.HeaderValue.raw_value>` field.
* When it is false, the header value is encoded in the
* :ref:`value <envoy_v3_api_field_config.core.v3.HeaderValue.value>` field.
*
*
* .envoy.config.core.v3.HeaderMap trailers = 4;
*/
public Builder setTrailers(
io.envoyproxy.envoy.config.core.v3.HeaderMap.Builder builderForValue) {
if (trailersBuilder_ == null) {
trailers_ = builderForValue.build();
onChanged();
} else {
trailersBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* [#not-implemented-hide:]
* Add new trailers to the message. This may be used when responding to either a
* HttpHeaders or HttpBody message, but only if this message is returned
* along with the CONTINUE_AND_REPLACE status.
* The ``trailers`` encoding is based on the runtime guard
* envoy_reloadable_features_send_header_raw_value setting.
* When it is true, the header value is encoded in the
* :ref:`raw_value <envoy_v3_api_field_config.core.v3.HeaderValue.raw_value>` field.
* When it is false, the header value is encoded in the
* :ref:`value <envoy_v3_api_field_config.core.v3.HeaderValue.value>` field.
*
*
* .envoy.config.core.v3.HeaderMap trailers = 4;
*/
public Builder mergeTrailers(io.envoyproxy.envoy.config.core.v3.HeaderMap value) {
if (trailersBuilder_ == null) {
if (trailers_ != null) {
trailers_ =
io.envoyproxy.envoy.config.core.v3.HeaderMap.newBuilder(trailers_).mergeFrom(value).buildPartial();
} else {
trailers_ = value;
}
onChanged();
} else {
trailersBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* [#not-implemented-hide:]
* Add new trailers to the message. This may be used when responding to either a
* HttpHeaders or HttpBody message, but only if this message is returned
* along with the CONTINUE_AND_REPLACE status.
* The ``trailers`` encoding is based on the runtime guard
* envoy_reloadable_features_send_header_raw_value setting.
* When it is true, the header value is encoded in the
* :ref:`raw_value <envoy_v3_api_field_config.core.v3.HeaderValue.raw_value>` field.
* When it is false, the header value is encoded in the
* :ref:`value <envoy_v3_api_field_config.core.v3.HeaderValue.value>` field.
*
*
* .envoy.config.core.v3.HeaderMap trailers = 4;
*/
public Builder clearTrailers() {
if (trailersBuilder_ == null) {
trailers_ = null;
onChanged();
} else {
trailers_ = null;
trailersBuilder_ = null;
}
return this;
}
/**
*
* [#not-implemented-hide:]
* Add new trailers to the message. This may be used when responding to either a
* HttpHeaders or HttpBody message, but only if this message is returned
* along with the CONTINUE_AND_REPLACE status.
* The ``trailers`` encoding is based on the runtime guard
* envoy_reloadable_features_send_header_raw_value setting.
* When it is true, the header value is encoded in the
* :ref:`raw_value <envoy_v3_api_field_config.core.v3.HeaderValue.raw_value>` field.
* When it is false, the header value is encoded in the
* :ref:`value <envoy_v3_api_field_config.core.v3.HeaderValue.value>` field.
*
*
* .envoy.config.core.v3.HeaderMap trailers = 4;
*/
public io.envoyproxy.envoy.config.core.v3.HeaderMap.Builder getTrailersBuilder() {
onChanged();
return getTrailersFieldBuilder().getBuilder();
}
/**
*
* [#not-implemented-hide:]
* Add new trailers to the message. This may be used when responding to either a
* HttpHeaders or HttpBody message, but only if this message is returned
* along with the CONTINUE_AND_REPLACE status.
* The ``trailers`` encoding is based on the runtime guard
* envoy_reloadable_features_send_header_raw_value setting.
* When it is true, the header value is encoded in the
* :ref:`raw_value <envoy_v3_api_field_config.core.v3.HeaderValue.raw_value>` field.
* When it is false, the header value is encoded in the
* :ref:`value <envoy_v3_api_field_config.core.v3.HeaderValue.value>` field.
*
*
* .envoy.config.core.v3.HeaderMap trailers = 4;
*/
public io.envoyproxy.envoy.config.core.v3.HeaderMapOrBuilder getTrailersOrBuilder() {
if (trailersBuilder_ != null) {
return trailersBuilder_.getMessageOrBuilder();
} else {
return trailers_ == null ?
io.envoyproxy.envoy.config.core.v3.HeaderMap.getDefaultInstance() : trailers_;
}
}
/**
*
* [#not-implemented-hide:]
* Add new trailers to the message. This may be used when responding to either a
* HttpHeaders or HttpBody message, but only if this message is returned
* along with the CONTINUE_AND_REPLACE status.
* The ``trailers`` encoding is based on the runtime guard
* envoy_reloadable_features_send_header_raw_value setting.
* When it is true, the header value is encoded in the
* :ref:`raw_value <envoy_v3_api_field_config.core.v3.HeaderValue.raw_value>` field.
* When it is false, the header value is encoded in the
* :ref:`value <envoy_v3_api_field_config.core.v3.HeaderValue.value>` field.
*
*
* .envoy.config.core.v3.HeaderMap trailers = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.HeaderMap, io.envoyproxy.envoy.config.core.v3.HeaderMap.Builder, io.envoyproxy.envoy.config.core.v3.HeaderMapOrBuilder>
getTrailersFieldBuilder() {
if (trailersBuilder_ == null) {
trailersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.HeaderMap, io.envoyproxy.envoy.config.core.v3.HeaderMap.Builder, io.envoyproxy.envoy.config.core.v3.HeaderMapOrBuilder>(
getTrailers(),
getParentForChildren(),
isClean());
trailers_ = null;
}
return trailersBuilder_;
}
private boolean clearRouteCache_ ;
/**
*
* Clear the route cache for the current client request. This is necessary
* if the remote server modified headers that are used to calculate the route.
* This field is ignored in the response direction.
*
*
* bool clear_route_cache = 5;
* @return The clearRouteCache.
*/
@java.lang.Override
public boolean getClearRouteCache() {
return clearRouteCache_;
}
/**
*
* Clear the route cache for the current client request. This is necessary
* if the remote server modified headers that are used to calculate the route.
* This field is ignored in the response direction.
*
*
* bool clear_route_cache = 5;
* @param value The clearRouteCache to set.
* @return This builder for chaining.
*/
public Builder setClearRouteCache(boolean value) {
clearRouteCache_ = value;
onChanged();
return this;
}
/**
*
* Clear the route cache for the current client request. This is necessary
* if the remote server modified headers that are used to calculate the route.
* This field is ignored in the response direction.
*
*
* bool clear_route_cache = 5;
* @return This builder for chaining.
*/
public Builder clearClearRouteCache() {
clearRouteCache_ = false;
onChanged();
return this;
}
@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.CommonResponse)
}
// @@protoc_insertion_point(class_scope:envoy.service.ext_proc.v3.CommonResponse)
private static final io.envoyproxy.envoy.service.ext_proc.v3.CommonResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.ext_proc.v3.CommonResponse();
}
public static io.envoyproxy.envoy.service.ext_proc.v3.CommonResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CommonResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CommonResponse(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.CommonResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}