Class ProcessingResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ProcessingResponse.Builder>
io.envoyproxy.envoy.service.network_ext_proc.v3.ProcessingResponse.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ProcessingResponseOrBuilder, Cloneable
Enclosing class:
ProcessingResponse

public static final class ProcessingResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ProcessingResponse.Builder> implements ProcessingResponseOrBuilder
 ProcessingResponse contains the response from the external processing server to Envoy.
 Each response corresponds to a ProcessingRequest and indicates how the network
 traffic should be handled.
 [#next-free-field: 6]
 
Protobuf type envoy.service.network_ext_proc.v3.ProcessingResponse
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ProcessingResponse.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<ProcessingResponse.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ProcessingResponse.Builder>
    • getDefaultInstanceForType

      public ProcessingResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ProcessingResponse build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ProcessingResponse buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<ProcessingResponse.Builder>
    • setField

      public ProcessingResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<ProcessingResponse.Builder>
    • clearField

      public ProcessingResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ProcessingResponse.Builder>
    • clearOneof

      public ProcessingResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ProcessingResponse.Builder>
    • setRepeatedField

      public ProcessingResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ProcessingResponse.Builder>
    • addRepeatedField

      public ProcessingResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ProcessingResponse.Builder>
    • mergeFrom

      public ProcessingResponse.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ProcessingResponse.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ProcessingResponse.Builder>
    • mergeFrom

      public ProcessingResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ProcessingResponse.Builder>
      Throws:
      IOException
    • hasReadData

      public boolean hasReadData()
       The processed ReadData containing potentially modified data for the request path.
       This should be sent in response to a ProcessingRequest with read_data, and the
       previous data in ProcessingRequest will be replaced by the new data in Envoy's data plane.
       If this is set, write_data should not be set.
       
      .envoy.service.network_ext_proc.v3.Data read_data = 1;
      Specified by:
      hasReadData in interface ProcessingResponseOrBuilder
      Returns:
      Whether the readData field is set.
    • getReadData

      public Data getReadData()
       The processed ReadData containing potentially modified data for the request path.
       This should be sent in response to a ProcessingRequest with read_data, and the
       previous data in ProcessingRequest will be replaced by the new data in Envoy's data plane.
       If this is set, write_data should not be set.
       
      .envoy.service.network_ext_proc.v3.Data read_data = 1;
      Specified by:
      getReadData in interface ProcessingResponseOrBuilder
      Returns:
      The readData.
    • setReadData

      public ProcessingResponse.Builder setReadData(Data value)
       The processed ReadData containing potentially modified data for the request path.
       This should be sent in response to a ProcessingRequest with read_data, and the
       previous data in ProcessingRequest will be replaced by the new data in Envoy's data plane.
       If this is set, write_data should not be set.
       
      .envoy.service.network_ext_proc.v3.Data read_data = 1;
    • setReadData

      public ProcessingResponse.Builder setReadData(Data.Builder builderForValue)
       The processed ReadData containing potentially modified data for the request path.
       This should be sent in response to a ProcessingRequest with read_data, and the
       previous data in ProcessingRequest will be replaced by the new data in Envoy's data plane.
       If this is set, write_data should not be set.
       
      .envoy.service.network_ext_proc.v3.Data read_data = 1;
    • mergeReadData

      public ProcessingResponse.Builder mergeReadData(Data value)
       The processed ReadData containing potentially modified data for the request path.
       This should be sent in response to a ProcessingRequest with read_data, and the
       previous data in ProcessingRequest will be replaced by the new data in Envoy's data plane.
       If this is set, write_data should not be set.
       
      .envoy.service.network_ext_proc.v3.Data read_data = 1;
    • clearReadData

      public ProcessingResponse.Builder clearReadData()
       The processed ReadData containing potentially modified data for the request path.
       This should be sent in response to a ProcessingRequest with read_data, and the
       previous data in ProcessingRequest will be replaced by the new data in Envoy's data plane.
       If this is set, write_data should not be set.
       
      .envoy.service.network_ext_proc.v3.Data read_data = 1;
    • getReadDataBuilder

      public Data.Builder getReadDataBuilder()
       The processed ReadData containing potentially modified data for the request path.
       This should be sent in response to a ProcessingRequest with read_data, and the
       previous data in ProcessingRequest will be replaced by the new data in Envoy's data plane.
       If this is set, write_data should not be set.
       
      .envoy.service.network_ext_proc.v3.Data read_data = 1;
    • getReadDataOrBuilder

      public DataOrBuilder getReadDataOrBuilder()
       The processed ReadData containing potentially modified data for the request path.
       This should be sent in response to a ProcessingRequest with read_data, and the
       previous data in ProcessingRequest will be replaced by the new data in Envoy's data plane.
       If this is set, write_data should not be set.
       
      .envoy.service.network_ext_proc.v3.Data read_data = 1;
      Specified by:
      getReadDataOrBuilder in interface ProcessingResponseOrBuilder
    • hasWriteData

      public boolean hasWriteData()
       The processed WriteData containing potentially modified data for the response path.
       This should be sent in response to a ProcessingRequest with write_data, and the
       previous data in ProcessingRequest will be replaced by the new data in Envoy's data plane.
       If this is set, read_data should not be set.
       
      .envoy.service.network_ext_proc.v3.Data write_data = 2;
      Specified by:
      hasWriteData in interface ProcessingResponseOrBuilder
      Returns:
      Whether the writeData field is set.
    • getWriteData

      public Data getWriteData()
       The processed WriteData containing potentially modified data for the response path.
       This should be sent in response to a ProcessingRequest with write_data, and the
       previous data in ProcessingRequest will be replaced by the new data in Envoy's data plane.
       If this is set, read_data should not be set.
       
      .envoy.service.network_ext_proc.v3.Data write_data = 2;
      Specified by:
      getWriteData in interface ProcessingResponseOrBuilder
      Returns:
      The writeData.
    • setWriteData

      public ProcessingResponse.Builder setWriteData(Data value)
       The processed WriteData containing potentially modified data for the response path.
       This should be sent in response to a ProcessingRequest with write_data, and the
       previous data in ProcessingRequest will be replaced by the new data in Envoy's data plane.
       If this is set, read_data should not be set.
       
      .envoy.service.network_ext_proc.v3.Data write_data = 2;
    • setWriteData

      public ProcessingResponse.Builder setWriteData(Data.Builder builderForValue)
       The processed WriteData containing potentially modified data for the response path.
       This should be sent in response to a ProcessingRequest with write_data, and the
       previous data in ProcessingRequest will be replaced by the new data in Envoy's data plane.
       If this is set, read_data should not be set.
       
      .envoy.service.network_ext_proc.v3.Data write_data = 2;
    • mergeWriteData

      public ProcessingResponse.Builder mergeWriteData(Data value)
       The processed WriteData containing potentially modified data for the response path.
       This should be sent in response to a ProcessingRequest with write_data, and the
       previous data in ProcessingRequest will be replaced by the new data in Envoy's data plane.
       If this is set, read_data should not be set.
       
      .envoy.service.network_ext_proc.v3.Data write_data = 2;
    • clearWriteData

      public ProcessingResponse.Builder clearWriteData()
       The processed WriteData containing potentially modified data for the response path.
       This should be sent in response to a ProcessingRequest with write_data, and the
       previous data in ProcessingRequest will be replaced by the new data in Envoy's data plane.
       If this is set, read_data should not be set.
       
      .envoy.service.network_ext_proc.v3.Data write_data = 2;
    • getWriteDataBuilder

      public Data.Builder getWriteDataBuilder()
       The processed WriteData containing potentially modified data for the response path.
       This should be sent in response to a ProcessingRequest with write_data, and the
       previous data in ProcessingRequest will be replaced by the new data in Envoy's data plane.
       If this is set, read_data should not be set.
       
      .envoy.service.network_ext_proc.v3.Data write_data = 2;
    • getWriteDataOrBuilder

      public DataOrBuilder getWriteDataOrBuilder()
       The processed WriteData containing potentially modified data for the response path.
       This should be sent in response to a ProcessingRequest with write_data, and the
       previous data in ProcessingRequest will be replaced by the new data in Envoy's data plane.
       If this is set, read_data should not be set.
       
      .envoy.service.network_ext_proc.v3.Data write_data = 2;
      Specified by:
      getWriteDataOrBuilder in interface ProcessingResponseOrBuilder
    • getDataProcessingStatusValue

      public int getDataProcessingStatusValue()
       Indicates whether the data was modified or not.
       This is mandatory and tells Envoy whether to use the original or modified data.
       
      .envoy.service.network_ext_proc.v3.ProcessingResponse.DataProcessedStatus data_processing_status = 3;
      Specified by:
      getDataProcessingStatusValue in interface ProcessingResponseOrBuilder
      Returns:
      The enum numeric value on the wire for dataProcessingStatus.
    • setDataProcessingStatusValue

      public ProcessingResponse.Builder setDataProcessingStatusValue(int value)
       Indicates whether the data was modified or not.
       This is mandatory and tells Envoy whether to use the original or modified data.
       
      .envoy.service.network_ext_proc.v3.ProcessingResponse.DataProcessedStatus data_processing_status = 3;
      Parameters:
      value - The enum numeric value on the wire for dataProcessingStatus to set.
      Returns:
      This builder for chaining.
    • getDataProcessingStatus

      public ProcessingResponse.DataProcessedStatus getDataProcessingStatus()
       Indicates whether the data was modified or not.
       This is mandatory and tells Envoy whether to use the original or modified data.
       
      .envoy.service.network_ext_proc.v3.ProcessingResponse.DataProcessedStatus data_processing_status = 3;
      Specified by:
      getDataProcessingStatus in interface ProcessingResponseOrBuilder
      Returns:
      The dataProcessingStatus.
    • setDataProcessingStatus

       Indicates whether the data was modified or not.
       This is mandatory and tells Envoy whether to use the original or modified data.
       
      .envoy.service.network_ext_proc.v3.ProcessingResponse.DataProcessedStatus data_processing_status = 3;
      Parameters:
      value - The dataProcessingStatus to set.
      Returns:
      This builder for chaining.
    • clearDataProcessingStatus

      public ProcessingResponse.Builder clearDataProcessingStatus()
       Indicates whether the data was modified or not.
       This is mandatory and tells Envoy whether to use the original or modified data.
       
      .envoy.service.network_ext_proc.v3.ProcessingResponse.DataProcessedStatus data_processing_status = 3;
      Returns:
      This builder for chaining.
    • getConnectionStatusValue

      public int getConnectionStatusValue()
       Optional: Determines the connection behavior after processing.
       If not specified, CONTINUE is assumed, and the connection proceeds normally.
       Use CLOSE or CLOSE_RST to terminate the connection based on processing results.
       
      .envoy.service.network_ext_proc.v3.ProcessingResponse.ConnectionStatus connection_status = 4;
      Specified by:
      getConnectionStatusValue in interface ProcessingResponseOrBuilder
      Returns:
      The enum numeric value on the wire for connectionStatus.
    • setConnectionStatusValue

      public ProcessingResponse.Builder setConnectionStatusValue(int value)
       Optional: Determines the connection behavior after processing.
       If not specified, CONTINUE is assumed, and the connection proceeds normally.
       Use CLOSE or CLOSE_RST to terminate the connection based on processing results.
       
      .envoy.service.network_ext_proc.v3.ProcessingResponse.ConnectionStatus connection_status = 4;
      Parameters:
      value - The enum numeric value on the wire for connectionStatus to set.
      Returns:
      This builder for chaining.
    • getConnectionStatus

      public ProcessingResponse.ConnectionStatus getConnectionStatus()
       Optional: Determines the connection behavior after processing.
       If not specified, CONTINUE is assumed, and the connection proceeds normally.
       Use CLOSE or CLOSE_RST to terminate the connection based on processing results.
       
      .envoy.service.network_ext_proc.v3.ProcessingResponse.ConnectionStatus connection_status = 4;
      Specified by:
      getConnectionStatus in interface ProcessingResponseOrBuilder
      Returns:
      The connectionStatus.
    • setConnectionStatus

       Optional: Determines the connection behavior after processing.
       If not specified, CONTINUE is assumed, and the connection proceeds normally.
       Use CLOSE or CLOSE_RST to terminate the connection based on processing results.
       
      .envoy.service.network_ext_proc.v3.ProcessingResponse.ConnectionStatus connection_status = 4;
      Parameters:
      value - The connectionStatus to set.
      Returns:
      This builder for chaining.
    • clearConnectionStatus

      public ProcessingResponse.Builder clearConnectionStatus()
       Optional: Determines the connection behavior after processing.
       If not specified, CONTINUE is assumed, and the connection proceeds normally.
       Use CLOSE or CLOSE_RST to terminate the connection based on processing results.
       
      .envoy.service.network_ext_proc.v3.ProcessingResponse.ConnectionStatus connection_status = 4;
      Returns:
      This builder for chaining.
    • hasDynamicMetadata

      public boolean hasDynamicMetadata()
       Optional metadata associated with the request.
       This can include connection properties, filter configuration, and any other
       contextual information that might be useful for processing decisions.
      
       The metadata is not automatically propagated from request to response.
       The external processor must include any needed metadata in its response.
       
      .google.protobuf.Struct dynamic_metadata = 5;
      Specified by:
      hasDynamicMetadata in interface ProcessingResponseOrBuilder
      Returns:
      Whether the dynamicMetadata field is set.
    • getDynamicMetadata

      public com.google.protobuf.Struct getDynamicMetadata()
       Optional metadata associated with the request.
       This can include connection properties, filter configuration, and any other
       contextual information that might be useful for processing decisions.
      
       The metadata is not automatically propagated from request to response.
       The external processor must include any needed metadata in its response.
       
      .google.protobuf.Struct dynamic_metadata = 5;
      Specified by:
      getDynamicMetadata in interface ProcessingResponseOrBuilder
      Returns:
      The dynamicMetadata.
    • setDynamicMetadata

      public ProcessingResponse.Builder setDynamicMetadata(com.google.protobuf.Struct value)
       Optional metadata associated with the request.
       This can include connection properties, filter configuration, and any other
       contextual information that might be useful for processing decisions.
      
       The metadata is not automatically propagated from request to response.
       The external processor must include any needed metadata in its response.
       
      .google.protobuf.Struct dynamic_metadata = 5;
    • setDynamicMetadata

      public ProcessingResponse.Builder setDynamicMetadata(com.google.protobuf.Struct.Builder builderForValue)
       Optional metadata associated with the request.
       This can include connection properties, filter configuration, and any other
       contextual information that might be useful for processing decisions.
      
       The metadata is not automatically propagated from request to response.
       The external processor must include any needed metadata in its response.
       
      .google.protobuf.Struct dynamic_metadata = 5;
    • mergeDynamicMetadata

      public ProcessingResponse.Builder mergeDynamicMetadata(com.google.protobuf.Struct value)
       Optional metadata associated with the request.
       This can include connection properties, filter configuration, and any other
       contextual information that might be useful for processing decisions.
      
       The metadata is not automatically propagated from request to response.
       The external processor must include any needed metadata in its response.
       
      .google.protobuf.Struct dynamic_metadata = 5;
    • clearDynamicMetadata

      public ProcessingResponse.Builder clearDynamicMetadata()
       Optional metadata associated with the request.
       This can include connection properties, filter configuration, and any other
       contextual information that might be useful for processing decisions.
      
       The metadata is not automatically propagated from request to response.
       The external processor must include any needed metadata in its response.
       
      .google.protobuf.Struct dynamic_metadata = 5;
    • getDynamicMetadataBuilder

      public com.google.protobuf.Struct.Builder getDynamicMetadataBuilder()
       Optional metadata associated with the request.
       This can include connection properties, filter configuration, and any other
       contextual information that might be useful for processing decisions.
      
       The metadata is not automatically propagated from request to response.
       The external processor must include any needed metadata in its response.
       
      .google.protobuf.Struct dynamic_metadata = 5;
    • getDynamicMetadataOrBuilder

      public com.google.protobuf.StructOrBuilder getDynamicMetadataOrBuilder()
       Optional metadata associated with the request.
       This can include connection properties, filter configuration, and any other
       contextual information that might be useful for processing decisions.
      
       The metadata is not automatically propagated from request to response.
       The external processor must include any needed metadata in its response.
       
      .google.protobuf.Struct dynamic_metadata = 5;
      Specified by:
      getDynamicMetadataOrBuilder in interface ProcessingResponseOrBuilder
    • setUnknownFields

      public final ProcessingResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ProcessingResponse.Builder>
    • mergeUnknownFields

      public final ProcessingResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ProcessingResponse.Builder>