Class Flight.FlightData.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Flight.FlightData.Builder>
org.apache.arrow.flight.impl.Flight.FlightData.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Flight.FlightDataOrBuilder
Enclosing class:
Flight.FlightData

public static final class Flight.FlightData.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Flight.FlightData.Builder> implements Flight.FlightDataOrBuilder

 A batch of Arrow data as part of a stream of batches.
 
Protobuf type arrow.flight.protocol.FlightData
  • 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<Flight.FlightData.Builder>
    • clear

      public Flight.FlightData.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<Flight.FlightData.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<Flight.FlightData.Builder>
    • getDefaultInstanceForType

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

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

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

      public Flight.FlightData.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<Flight.FlightData.Builder>
    • setField

      public Flight.FlightData.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<Flight.FlightData.Builder>
    • clearField

      public Flight.FlightData.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<Flight.FlightData.Builder>
    • clearOneof

      public Flight.FlightData.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<Flight.FlightData.Builder>
    • setRepeatedField

      public Flight.FlightData.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<Flight.FlightData.Builder>
    • addRepeatedField

      public Flight.FlightData.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<Flight.FlightData.Builder>
    • mergeFrom

      public Flight.FlightData.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<Flight.FlightData.Builder>
    • mergeFrom

      public Flight.FlightData.Builder mergeFrom(Flight.FlightData other)
    • isInitialized

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

      public Flight.FlightData.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<Flight.FlightData.Builder>
      Throws:
      IOException
    • hasFlightDescriptor

      public boolean hasFlightDescriptor()
      
       The descriptor of the data. This is only relevant when a client is
       starting a new DoPut stream.
       
      .arrow.flight.protocol.FlightDescriptor flight_descriptor = 1;
      Specified by:
      hasFlightDescriptor in interface Flight.FlightDataOrBuilder
      Returns:
      Whether the flightDescriptor field is set.
    • getFlightDescriptor

      public Flight.FlightDescriptor getFlightDescriptor()
      
       The descriptor of the data. This is only relevant when a client is
       starting a new DoPut stream.
       
      .arrow.flight.protocol.FlightDescriptor flight_descriptor = 1;
      Specified by:
      getFlightDescriptor in interface Flight.FlightDataOrBuilder
      Returns:
      The flightDescriptor.
    • setFlightDescriptor

      public Flight.FlightData.Builder setFlightDescriptor(Flight.FlightDescriptor value)
      
       The descriptor of the data. This is only relevant when a client is
       starting a new DoPut stream.
       
      .arrow.flight.protocol.FlightDescriptor flight_descriptor = 1;
    • setFlightDescriptor

      public Flight.FlightData.Builder setFlightDescriptor(Flight.FlightDescriptor.Builder builderForValue)
      
       The descriptor of the data. This is only relevant when a client is
       starting a new DoPut stream.
       
      .arrow.flight.protocol.FlightDescriptor flight_descriptor = 1;
    • mergeFlightDescriptor

      public Flight.FlightData.Builder mergeFlightDescriptor(Flight.FlightDescriptor value)
      
       The descriptor of the data. This is only relevant when a client is
       starting a new DoPut stream.
       
      .arrow.flight.protocol.FlightDescriptor flight_descriptor = 1;
    • clearFlightDescriptor

      public Flight.FlightData.Builder clearFlightDescriptor()
      
       The descriptor of the data. This is only relevant when a client is
       starting a new DoPut stream.
       
      .arrow.flight.protocol.FlightDescriptor flight_descriptor = 1;
    • getFlightDescriptorBuilder

      public Flight.FlightDescriptor.Builder getFlightDescriptorBuilder()
      
       The descriptor of the data. This is only relevant when a client is
       starting a new DoPut stream.
       
      .arrow.flight.protocol.FlightDescriptor flight_descriptor = 1;
    • getFlightDescriptorOrBuilder

      public Flight.FlightDescriptorOrBuilder getFlightDescriptorOrBuilder()
      
       The descriptor of the data. This is only relevant when a client is
       starting a new DoPut stream.
       
      .arrow.flight.protocol.FlightDescriptor flight_descriptor = 1;
      Specified by:
      getFlightDescriptorOrBuilder in interface Flight.FlightDataOrBuilder
    • getDataHeader

      public com.google.protobuf.ByteString getDataHeader()
      
       Header for message data as described in Message.fbs::Message.
       
      bytes data_header = 2;
      Specified by:
      getDataHeader in interface Flight.FlightDataOrBuilder
      Returns:
      The dataHeader.
    • setDataHeader

      public Flight.FlightData.Builder setDataHeader(com.google.protobuf.ByteString value)
      
       Header for message data as described in Message.fbs::Message.
       
      bytes data_header = 2;
      Parameters:
      value - The dataHeader to set.
      Returns:
      This builder for chaining.
    • clearDataHeader

      public Flight.FlightData.Builder clearDataHeader()
      
       Header for message data as described in Message.fbs::Message.
       
      bytes data_header = 2;
      Returns:
      This builder for chaining.
    • getAppMetadata

      public com.google.protobuf.ByteString getAppMetadata()
      
       Application-defined metadata.
       
      bytes app_metadata = 3;
      Specified by:
      getAppMetadata in interface Flight.FlightDataOrBuilder
      Returns:
      The appMetadata.
    • setAppMetadata

      public Flight.FlightData.Builder setAppMetadata(com.google.protobuf.ByteString value)
      
       Application-defined metadata.
       
      bytes app_metadata = 3;
      Parameters:
      value - The appMetadata to set.
      Returns:
      This builder for chaining.
    • clearAppMetadata

      public Flight.FlightData.Builder clearAppMetadata()
      
       Application-defined metadata.
       
      bytes app_metadata = 3;
      Returns:
      This builder for chaining.
    • getDataBody

      public com.google.protobuf.ByteString getDataBody()
      
       The actual batch of Arrow data. Preferably handled with minimal-copies
       coming last in the definition to help with sidecar patterns (it is
       expected that some implementations will fetch this field off the wire
       with specialized code to avoid extra memory copies).
       
      bytes data_body = 1000;
      Specified by:
      getDataBody in interface Flight.FlightDataOrBuilder
      Returns:
      The dataBody.
    • setDataBody

      public Flight.FlightData.Builder setDataBody(com.google.protobuf.ByteString value)
      
       The actual batch of Arrow data. Preferably handled with minimal-copies
       coming last in the definition to help with sidecar patterns (it is
       expected that some implementations will fetch this field off the wire
       with specialized code to avoid extra memory copies).
       
      bytes data_body = 1000;
      Parameters:
      value - The dataBody to set.
      Returns:
      This builder for chaining.
    • clearDataBody

      public Flight.FlightData.Builder clearDataBody()
      
       The actual batch of Arrow data. Preferably handled with minimal-copies
       coming last in the definition to help with sidecar patterns (it is
       expected that some implementations will fetch this field off the wire
       with specialized code to avoid extra memory copies).
       
      bytes data_body = 1000;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final Flight.FlightData.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<Flight.FlightData.Builder>
    • mergeUnknownFields

      public final Flight.FlightData.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<Flight.FlightData.Builder>