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

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

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: envoy/service/ext_proc/v3/external_processor.proto

// Protobuf Java Version: 3.25.1
package io.envoyproxy.envoy.service.ext_proc.v3;

/**
 * 
 * This message specifies the filter protocol configurations which will be sent to the ext_proc
 * server in a :ref:`ProcessingRequest <envoy_v3_api_msg_service.ext_proc.v3.ProcessingRequest>`.
 * If the server does not support these protocol configurations, it may choose to close the gRPC stream.
 * If the server supports these protocol configurations, it should respond based on the API specifications.
 * 
* * Protobuf type {@code envoy.service.ext_proc.v3.ProtocolConfiguration} */ public final class ProtocolConfiguration extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.service.ext_proc.v3.ProtocolConfiguration) ProtocolConfigurationOrBuilder { private static final long serialVersionUID = 0L; // Use ProtocolConfiguration.newBuilder() to construct. private ProtocolConfiguration(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ProtocolConfiguration() { requestBodyMode_ = 0; responseBodyMode_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ProtocolConfiguration(); } 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_ProtocolConfiguration_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_ProtocolConfiguration_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.ext_proc.v3.ProtocolConfiguration.class, io.envoyproxy.envoy.service.ext_proc.v3.ProtocolConfiguration.Builder.class); } public static final int REQUEST_BODY_MODE_FIELD_NUMBER = 1; private int requestBodyMode_ = 0; /** *
   * Specify the filter configuration :ref:`request_body_mode
   * <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ProcessingMode.request_body_mode>`
   * 
* * .envoy.extensions.filters.http.ext_proc.v3.ProcessingMode.BodySendMode request_body_mode = 1 [(.validate.rules) = { ... } * @return The enum numeric value on the wire for requestBodyMode. */ @java.lang.Override public int getRequestBodyModeValue() { return requestBodyMode_; } /** *
   * Specify the filter configuration :ref:`request_body_mode
   * <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ProcessingMode.request_body_mode>`
   * 
* * .envoy.extensions.filters.http.ext_proc.v3.ProcessingMode.BodySendMode request_body_mode = 1 [(.validate.rules) = { ... } * @return The requestBodyMode. */ @java.lang.Override public io.envoyproxy.envoy.extensions.filters.http.ext_proc.v3.ProcessingMode.BodySendMode getRequestBodyMode() { io.envoyproxy.envoy.extensions.filters.http.ext_proc.v3.ProcessingMode.BodySendMode result = io.envoyproxy.envoy.extensions.filters.http.ext_proc.v3.ProcessingMode.BodySendMode.forNumber(requestBodyMode_); return result == null ? io.envoyproxy.envoy.extensions.filters.http.ext_proc.v3.ProcessingMode.BodySendMode.UNRECOGNIZED : result; } public static final int RESPONSE_BODY_MODE_FIELD_NUMBER = 2; private int responseBodyMode_ = 0; /** *
   * Specify the filter configuration :ref:`response_body_mode
   * <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ProcessingMode.response_body_mode>`
   * 
* * .envoy.extensions.filters.http.ext_proc.v3.ProcessingMode.BodySendMode response_body_mode = 2 [(.validate.rules) = { ... } * @return The enum numeric value on the wire for responseBodyMode. */ @java.lang.Override public int getResponseBodyModeValue() { return responseBodyMode_; } /** *
   * Specify the filter configuration :ref:`response_body_mode
   * <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ProcessingMode.response_body_mode>`
   * 
* * .envoy.extensions.filters.http.ext_proc.v3.ProcessingMode.BodySendMode response_body_mode = 2 [(.validate.rules) = { ... } * @return The responseBodyMode. */ @java.lang.Override public io.envoyproxy.envoy.extensions.filters.http.ext_proc.v3.ProcessingMode.BodySendMode getResponseBodyMode() { io.envoyproxy.envoy.extensions.filters.http.ext_proc.v3.ProcessingMode.BodySendMode result = io.envoyproxy.envoy.extensions.filters.http.ext_proc.v3.ProcessingMode.BodySendMode.forNumber(responseBodyMode_); return result == null ? io.envoyproxy.envoy.extensions.filters.http.ext_proc.v3.ProcessingMode.BodySendMode.UNRECOGNIZED : result; } public static final int SEND_BODY_WITHOUT_WAITING_FOR_HEADER_RESPONSE_FIELD_NUMBER = 3; private boolean sendBodyWithoutWaitingForHeaderResponse_ = false; /** *
   * Specify the filter configuration :ref:`send_body_without_waiting_for_header_response
   * <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.send_body_without_waiting_for_header_response>`
   * If the client is waiting for a header response from the server, setting ``true`` means the client will send body to the server
   * as they arrive. Setting ``false`` means the client will buffer the arrived data and not send it to the server immediately.
   * 
* * bool send_body_without_waiting_for_header_response = 3; * @return The sendBodyWithoutWaitingForHeaderResponse. */ @java.lang.Override public boolean getSendBodyWithoutWaitingForHeaderResponse() { return sendBodyWithoutWaitingForHeaderResponse_; } 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 (requestBodyMode_ != io.envoyproxy.envoy.extensions.filters.http.ext_proc.v3.ProcessingMode.BodySendMode.NONE.getNumber()) { output.writeEnum(1, requestBodyMode_); } if (responseBodyMode_ != io.envoyproxy.envoy.extensions.filters.http.ext_proc.v3.ProcessingMode.BodySendMode.NONE.getNumber()) { output.writeEnum(2, responseBodyMode_); } if (sendBodyWithoutWaitingForHeaderResponse_ != false) { output.writeBool(3, sendBodyWithoutWaitingForHeaderResponse_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (requestBodyMode_ != io.envoyproxy.envoy.extensions.filters.http.ext_proc.v3.ProcessingMode.BodySendMode.NONE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, requestBodyMode_); } if (responseBodyMode_ != io.envoyproxy.envoy.extensions.filters.http.ext_proc.v3.ProcessingMode.BodySendMode.NONE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, responseBodyMode_); } if (sendBodyWithoutWaitingForHeaderResponse_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, sendBodyWithoutWaitingForHeaderResponse_); } size += getUnknownFields().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.ProtocolConfiguration)) { return super.equals(obj); } io.envoyproxy.envoy.service.ext_proc.v3.ProtocolConfiguration other = (io.envoyproxy.envoy.service.ext_proc.v3.ProtocolConfiguration) obj; if (requestBodyMode_ != other.requestBodyMode_) return false; if (responseBodyMode_ != other.responseBodyMode_) return false; if (getSendBodyWithoutWaitingForHeaderResponse() != other.getSendBodyWithoutWaitingForHeaderResponse()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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) + REQUEST_BODY_MODE_FIELD_NUMBER; hash = (53 * hash) + requestBodyMode_; hash = (37 * hash) + RESPONSE_BODY_MODE_FIELD_NUMBER; hash = (53 * hash) + responseBodyMode_; hash = (37 * hash) + SEND_BODY_WITHOUT_WAITING_FOR_HEADER_RESPONSE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getSendBodyWithoutWaitingForHeaderResponse()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.service.ext_proc.v3.ProtocolConfiguration parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.ext_proc.v3.ProtocolConfiguration 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.ProtocolConfiguration parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.ext_proc.v3.ProtocolConfiguration 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.ProtocolConfiguration parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.ext_proc.v3.ProtocolConfiguration 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.ProtocolConfiguration 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.ProtocolConfiguration 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.ProtocolConfiguration 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.ProtocolConfiguration 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.ProtocolConfiguration 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.ProtocolConfiguration 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.ProtocolConfiguration 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 specifies the filter protocol configurations which will be sent to the ext_proc
   * server in a :ref:`ProcessingRequest <envoy_v3_api_msg_service.ext_proc.v3.ProcessingRequest>`.
   * If the server does not support these protocol configurations, it may choose to close the gRPC stream.
   * If the server supports these protocol configurations, it should respond based on the API specifications.
   * 
* * Protobuf type {@code envoy.service.ext_proc.v3.ProtocolConfiguration} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.service.ext_proc.v3.ProtocolConfiguration) io.envoyproxy.envoy.service.ext_proc.v3.ProtocolConfigurationOrBuilder { 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_ProtocolConfiguration_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_ProtocolConfiguration_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.ext_proc.v3.ProtocolConfiguration.class, io.envoyproxy.envoy.service.ext_proc.v3.ProtocolConfiguration.Builder.class); } // Construct using io.envoyproxy.envoy.service.ext_proc.v3.ProtocolConfiguration.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; requestBodyMode_ = 0; responseBodyMode_ = 0; sendBodyWithoutWaitingForHeaderResponse_ = 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_ProtocolConfiguration_descriptor; } @java.lang.Override public io.envoyproxy.envoy.service.ext_proc.v3.ProtocolConfiguration getDefaultInstanceForType() { return io.envoyproxy.envoy.service.ext_proc.v3.ProtocolConfiguration.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.service.ext_proc.v3.ProtocolConfiguration build() { io.envoyproxy.envoy.service.ext_proc.v3.ProtocolConfiguration result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.service.ext_proc.v3.ProtocolConfiguration buildPartial() { io.envoyproxy.envoy.service.ext_proc.v3.ProtocolConfiguration result = new io.envoyproxy.envoy.service.ext_proc.v3.ProtocolConfiguration(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.envoyproxy.envoy.service.ext_proc.v3.ProtocolConfiguration result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.requestBodyMode_ = requestBodyMode_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.responseBodyMode_ = responseBodyMode_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.sendBodyWithoutWaitingForHeaderResponse_ = sendBodyWithoutWaitingForHeaderResponse_; } } @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.ProtocolConfiguration) { return mergeFrom((io.envoyproxy.envoy.service.ext_proc.v3.ProtocolConfiguration)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.service.ext_proc.v3.ProtocolConfiguration other) { if (other == io.envoyproxy.envoy.service.ext_proc.v3.ProtocolConfiguration.getDefaultInstance()) return this; if (other.requestBodyMode_ != 0) { setRequestBodyModeValue(other.getRequestBodyModeValue()); } if (other.responseBodyMode_ != 0) { setResponseBodyModeValue(other.getResponseBodyModeValue()); } if (other.getSendBodyWithoutWaitingForHeaderResponse() != false) { setSendBodyWithoutWaitingForHeaderResponse(other.getSendBodyWithoutWaitingForHeaderResponse()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { requestBodyMode_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { responseBodyMode_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { sendBodyWithoutWaitingForHeaderResponse_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int requestBodyMode_ = 0; /** *
     * Specify the filter configuration :ref:`request_body_mode
     * <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ProcessingMode.request_body_mode>`
     * 
* * .envoy.extensions.filters.http.ext_proc.v3.ProcessingMode.BodySendMode request_body_mode = 1 [(.validate.rules) = { ... } * @return The enum numeric value on the wire for requestBodyMode. */ @java.lang.Override public int getRequestBodyModeValue() { return requestBodyMode_; } /** *
     * Specify the filter configuration :ref:`request_body_mode
     * <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ProcessingMode.request_body_mode>`
     * 
* * .envoy.extensions.filters.http.ext_proc.v3.ProcessingMode.BodySendMode request_body_mode = 1 [(.validate.rules) = { ... } * @param value The enum numeric value on the wire for requestBodyMode to set. * @return This builder for chaining. */ public Builder setRequestBodyModeValue(int value) { requestBodyMode_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Specify the filter configuration :ref:`request_body_mode
     * <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ProcessingMode.request_body_mode>`
     * 
* * .envoy.extensions.filters.http.ext_proc.v3.ProcessingMode.BodySendMode request_body_mode = 1 [(.validate.rules) = { ... } * @return The requestBodyMode. */ @java.lang.Override public io.envoyproxy.envoy.extensions.filters.http.ext_proc.v3.ProcessingMode.BodySendMode getRequestBodyMode() { io.envoyproxy.envoy.extensions.filters.http.ext_proc.v3.ProcessingMode.BodySendMode result = io.envoyproxy.envoy.extensions.filters.http.ext_proc.v3.ProcessingMode.BodySendMode.forNumber(requestBodyMode_); return result == null ? io.envoyproxy.envoy.extensions.filters.http.ext_proc.v3.ProcessingMode.BodySendMode.UNRECOGNIZED : result; } /** *
     * Specify the filter configuration :ref:`request_body_mode
     * <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ProcessingMode.request_body_mode>`
     * 
* * .envoy.extensions.filters.http.ext_proc.v3.ProcessingMode.BodySendMode request_body_mode = 1 [(.validate.rules) = { ... } * @param value The requestBodyMode to set. * @return This builder for chaining. */ public Builder setRequestBodyMode(io.envoyproxy.envoy.extensions.filters.http.ext_proc.v3.ProcessingMode.BodySendMode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; requestBodyMode_ = value.getNumber(); onChanged(); return this; } /** *
     * Specify the filter configuration :ref:`request_body_mode
     * <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ProcessingMode.request_body_mode>`
     * 
* * .envoy.extensions.filters.http.ext_proc.v3.ProcessingMode.BodySendMode request_body_mode = 1 [(.validate.rules) = { ... } * @return This builder for chaining. */ public Builder clearRequestBodyMode() { bitField0_ = (bitField0_ & ~0x00000001); requestBodyMode_ = 0; onChanged(); return this; } private int responseBodyMode_ = 0; /** *
     * Specify the filter configuration :ref:`response_body_mode
     * <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ProcessingMode.response_body_mode>`
     * 
* * .envoy.extensions.filters.http.ext_proc.v3.ProcessingMode.BodySendMode response_body_mode = 2 [(.validate.rules) = { ... } * @return The enum numeric value on the wire for responseBodyMode. */ @java.lang.Override public int getResponseBodyModeValue() { return responseBodyMode_; } /** *
     * Specify the filter configuration :ref:`response_body_mode
     * <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ProcessingMode.response_body_mode>`
     * 
* * .envoy.extensions.filters.http.ext_proc.v3.ProcessingMode.BodySendMode response_body_mode = 2 [(.validate.rules) = { ... } * @param value The enum numeric value on the wire for responseBodyMode to set. * @return This builder for chaining. */ public Builder setResponseBodyModeValue(int value) { responseBodyMode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Specify the filter configuration :ref:`response_body_mode
     * <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ProcessingMode.response_body_mode>`
     * 
* * .envoy.extensions.filters.http.ext_proc.v3.ProcessingMode.BodySendMode response_body_mode = 2 [(.validate.rules) = { ... } * @return The responseBodyMode. */ @java.lang.Override public io.envoyproxy.envoy.extensions.filters.http.ext_proc.v3.ProcessingMode.BodySendMode getResponseBodyMode() { io.envoyproxy.envoy.extensions.filters.http.ext_proc.v3.ProcessingMode.BodySendMode result = io.envoyproxy.envoy.extensions.filters.http.ext_proc.v3.ProcessingMode.BodySendMode.forNumber(responseBodyMode_); return result == null ? io.envoyproxy.envoy.extensions.filters.http.ext_proc.v3.ProcessingMode.BodySendMode.UNRECOGNIZED : result; } /** *
     * Specify the filter configuration :ref:`response_body_mode
     * <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ProcessingMode.response_body_mode>`
     * 
* * .envoy.extensions.filters.http.ext_proc.v3.ProcessingMode.BodySendMode response_body_mode = 2 [(.validate.rules) = { ... } * @param value The responseBodyMode to set. * @return This builder for chaining. */ public Builder setResponseBodyMode(io.envoyproxy.envoy.extensions.filters.http.ext_proc.v3.ProcessingMode.BodySendMode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; responseBodyMode_ = value.getNumber(); onChanged(); return this; } /** *
     * Specify the filter configuration :ref:`response_body_mode
     * <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ProcessingMode.response_body_mode>`
     * 
* * .envoy.extensions.filters.http.ext_proc.v3.ProcessingMode.BodySendMode response_body_mode = 2 [(.validate.rules) = { ... } * @return This builder for chaining. */ public Builder clearResponseBodyMode() { bitField0_ = (bitField0_ & ~0x00000002); responseBodyMode_ = 0; onChanged(); return this; } private boolean sendBodyWithoutWaitingForHeaderResponse_ ; /** *
     * Specify the filter configuration :ref:`send_body_without_waiting_for_header_response
     * <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.send_body_without_waiting_for_header_response>`
     * If the client is waiting for a header response from the server, setting ``true`` means the client will send body to the server
     * as they arrive. Setting ``false`` means the client will buffer the arrived data and not send it to the server immediately.
     * 
* * bool send_body_without_waiting_for_header_response = 3; * @return The sendBodyWithoutWaitingForHeaderResponse. */ @java.lang.Override public boolean getSendBodyWithoutWaitingForHeaderResponse() { return sendBodyWithoutWaitingForHeaderResponse_; } /** *
     * Specify the filter configuration :ref:`send_body_without_waiting_for_header_response
     * <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.send_body_without_waiting_for_header_response>`
     * If the client is waiting for a header response from the server, setting ``true`` means the client will send body to the server
     * as they arrive. Setting ``false`` means the client will buffer the arrived data and not send it to the server immediately.
     * 
* * bool send_body_without_waiting_for_header_response = 3; * @param value The sendBodyWithoutWaitingForHeaderResponse to set. * @return This builder for chaining. */ public Builder setSendBodyWithoutWaitingForHeaderResponse(boolean value) { sendBodyWithoutWaitingForHeaderResponse_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Specify the filter configuration :ref:`send_body_without_waiting_for_header_response
     * <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.send_body_without_waiting_for_header_response>`
     * If the client is waiting for a header response from the server, setting ``true`` means the client will send body to the server
     * as they arrive. Setting ``false`` means the client will buffer the arrived data and not send it to the server immediately.
     * 
* * bool send_body_without_waiting_for_header_response = 3; * @return This builder for chaining. */ public Builder clearSendBodyWithoutWaitingForHeaderResponse() { bitField0_ = (bitField0_ & ~0x00000004); sendBodyWithoutWaitingForHeaderResponse_ = 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.ProtocolConfiguration) } // @@protoc_insertion_point(class_scope:envoy.service.ext_proc.v3.ProtocolConfiguration) private static final io.envoyproxy.envoy.service.ext_proc.v3.ProtocolConfiguration DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.ext_proc.v3.ProtocolConfiguration(); } public static io.envoyproxy.envoy.service.ext_proc.v3.ProtocolConfiguration getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ProtocolConfiguration parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.ProtocolConfiguration getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy