All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.envoyproxy.envoy.service.ext_proc.v3.CommonResponse Maven / Gradle / Ivy

There is a newer version: 1.0.46
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: envoy/service/ext_proc/v3/external_processor.proto

package io.envoyproxy.envoy.service.ext_proc.v3;

/**
 * 
 * This message contains common fields between header and body responses.
 * [#next-free-field: 6]
 * 
* * Protobuf type {@code envoy.service.ext_proc.v3.CommonResponse} */ public final class CommonResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.service.ext_proc.v3.CommonResponse) CommonResponseOrBuilder { private static final long serialVersionUID = 0L; // Use CommonResponse.newBuilder() to construct. private CommonResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CommonResponse() { status_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CommonResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CommonResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int rawValue = input.readEnum(); status_ = rawValue; break; } case 18: { io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation.Builder subBuilder = null; if (headerMutation_ != null) { subBuilder = headerMutation_.toBuilder(); } headerMutation_ = input.readMessage(io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(headerMutation_); headerMutation_ = subBuilder.buildPartial(); } break; } case 26: { io.envoyproxy.envoy.service.ext_proc.v3.BodyMutation.Builder subBuilder = null; if (bodyMutation_ != null) { subBuilder = bodyMutation_.toBuilder(); } bodyMutation_ = input.readMessage(io.envoyproxy.envoy.service.ext_proc.v3.BodyMutation.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(bodyMutation_); bodyMutation_ = subBuilder.buildPartial(); } break; } case 34: { io.envoyproxy.envoy.config.core.v3.HeaderMap.Builder subBuilder = null; if (trailers_ != null) { subBuilder = trailers_.toBuilder(); } trailers_ = input.readMessage(io.envoyproxy.envoy.config.core.v3.HeaderMap.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(trailers_); trailers_ = subBuilder.buildPartial(); } break; } case 40: { clearRouteCache_ = input.readBool(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } 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); } /** * Protobuf enum {@code envoy.service.ext_proc.v3.CommonResponse.ResponseStatus} */ public enum ResponseStatus implements com.google.protobuf.ProtocolMessageEnum { /** *
     * Apply the mutation instructions in this message to the
     * request or response, and then continue processing the filter
     * stream as normal. This is the default.
     * 
* * CONTINUE = 0; */ CONTINUE(0), /** *
     * Apply the specified header mutation, replace the body with the body
     * specified in the body mutation (if present), and do not send any
     * further messages for this request or response even if the processing
     * mode is configured to do so.
     * When used in response to a request_headers or response_headers message,
     * this status makes it possible to either completely replace the body
     * while discarding the original body, or to add a body to a message that
     * formerly did not have one.
     * In other words, this response makes it possible to turn an HTTP GET
     * into a POST, PUT, or PATCH.
     * 
* * CONTINUE_AND_REPLACE = 1; */ CONTINUE_AND_REPLACE(1), UNRECOGNIZED(-1), ; /** *
     * Apply the mutation instructions in this message to the
     * request or response, and then continue processing the filter
     * stream as normal. This is the default.
     * 
* * CONTINUE = 0; */ public static final int CONTINUE_VALUE = 0; /** *
     * Apply the specified header mutation, replace the body with the body
     * specified in the body mutation (if present), and do not send any
     * further messages for this request or response even if the processing
     * mode is configured to do so.
     * When used in response to a request_headers or response_headers message,
     * this status makes it possible to either completely replace the body
     * while discarding the original body, or to add a body to a message that
     * formerly did not have one.
     * In other words, this response makes it possible to turn an HTTP GET
     * into a POST, PUT, or PATCH.
     * 
* * CONTINUE_AND_REPLACE = 1; */ public static final int CONTINUE_AND_REPLACE_VALUE = 1; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ResponseStatus valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static ResponseStatus forNumber(int value) { switch (value) { case 0: return CONTINUE; case 1: return CONTINUE_AND_REPLACE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< ResponseStatus> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ResponseStatus findValueByNumber(int number) { return ResponseStatus.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return io.envoyproxy.envoy.service.ext_proc.v3.CommonResponse.getDescriptor().getEnumTypes().get(0); } private static final ResponseStatus[] VALUES = values(); public static ResponseStatus valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private ResponseStatus(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:envoy.service.ext_proc.v3.CommonResponse.ResponseStatus) } public static final int STATUS_FIELD_NUMBER = 1; private int 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) = { ... } * @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) = { ... } * @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; } public static final int HEADER_MUTATION_FIELD_NUMBER = 2; private io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation 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; * @return Whether the headerMutation field is set. */ @java.lang.Override public boolean hasHeaderMutation() { return 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. */ @java.lang.Override public io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation getHeaderMutation() { 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; */ @java.lang.Override public io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutationOrBuilder getHeaderMutationOrBuilder() { return getHeaderMutation(); } public static final int BODY_MUTATION_FIELD_NUMBER = 3; private io.envoyproxy.envoy.service.ext_proc.v3.BodyMutation 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; * @return Whether the bodyMutation field is set. */ @java.lang.Override public boolean hasBodyMutation() { return 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. */ @java.lang.Override public io.envoyproxy.envoy.service.ext_proc.v3.BodyMutation getBodyMutation() { 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; */ @java.lang.Override public io.envoyproxy.envoy.service.ext_proc.v3.BodyMutationOrBuilder getBodyMutationOrBuilder() { return getBodyMutation(); } public static final int TRAILERS_FIELD_NUMBER = 4; private io.envoyproxy.envoy.config.core.v3.HeaderMap 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; * @return Whether the trailers field is set. */ @java.lang.Override public boolean hasTrailers() { return 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. */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.HeaderMap getTrailers() { 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; */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.HeaderMapOrBuilder getTrailersOrBuilder() { return getTrailers(); } public static final int CLEAR_ROUTE_CACHE_FIELD_NUMBER = 5; 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_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (status_ != io.envoyproxy.envoy.service.ext_proc.v3.CommonResponse.ResponseStatus.CONTINUE.getNumber()) { output.writeEnum(1, status_); } if (headerMutation_ != null) { output.writeMessage(2, getHeaderMutation()); } if (bodyMutation_ != null) { output.writeMessage(3, getBodyMutation()); } if (trailers_ != null) { output.writeMessage(4, getTrailers()); } if (clearRouteCache_ != false) { output.writeBool(5, clearRouteCache_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (status_ != io.envoyproxy.envoy.service.ext_proc.v3.CommonResponse.ResponseStatus.CONTINUE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, status_); } if (headerMutation_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getHeaderMutation()); } if (bodyMutation_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getBodyMutation()); } if (trailers_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getTrailers()); } if (clearRouteCache_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, clearRouteCache_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.envoyproxy.envoy.service.ext_proc.v3.CommonResponse)) { return super.equals(obj); } io.envoyproxy.envoy.service.ext_proc.v3.CommonResponse other = (io.envoyproxy.envoy.service.ext_proc.v3.CommonResponse) obj; if (status_ != other.status_) return false; if (hasHeaderMutation() != other.hasHeaderMutation()) return false; if (hasHeaderMutation()) { if (!getHeaderMutation() .equals(other.getHeaderMutation())) return false; } if (hasBodyMutation() != other.hasBodyMutation()) return false; if (hasBodyMutation()) { if (!getBodyMutation() .equals(other.getBodyMutation())) return false; } if (hasTrailers() != other.hasTrailers()) return false; if (hasTrailers()) { if (!getTrailers() .equals(other.getTrailers())) return false; } if (getClearRouteCache() != other.getClearRouteCache()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; if (hasHeaderMutation()) { hash = (37 * hash) + HEADER_MUTATION_FIELD_NUMBER; hash = (53 * hash) + getHeaderMutation().hashCode(); } if (hasBodyMutation()) { hash = (37 * hash) + BODY_MUTATION_FIELD_NUMBER; hash = (53 * hash) + getBodyMutation().hashCode(); } if (hasTrailers()) { hash = (37 * hash) + TRAILERS_FIELD_NUMBER; hash = (53 * hash) + getTrailers().hashCode(); } hash = (37 * hash) + CLEAR_ROUTE_CACHE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getClearRouteCache()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.service.ext_proc.v3.CommonResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.ext_proc.v3.CommonResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.ext_proc.v3.CommonResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.ext_proc.v3.CommonResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.ext_proc.v3.CommonResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.ext_proc.v3.CommonResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.ext_proc.v3.CommonResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.ext_proc.v3.CommonResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.envoyproxy.envoy.service.ext_proc.v3.CommonResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.ext_proc.v3.CommonResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.envoyproxy.envoy.service.ext_proc.v3.CommonResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.ext_proc.v3.CommonResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.envoyproxy.envoy.service.ext_proc.v3.CommonResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * This message contains common fields between header and body responses.
   * [#next-free-field: 6]
   * 
* * Protobuf type {@code envoy.service.ext_proc.v3.CommonResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder 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; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy