Package org.apache.arrow.flight.impl
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 Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
Application-defined metadata.The actual batch of Arrow data.Header for message data as described in Message.fbs::Message.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) The descriptor of the data.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()
com.google.protobuf.ByteString
Application-defined metadata.com.google.protobuf.ByteString
The actual batch of Arrow data.com.google.protobuf.ByteString
Header for message data as described in Message.fbs::Message.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
The descriptor of the data.The descriptor of the data.The descriptor of the data.boolean
The descriptor of the data.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
The descriptor of the data.mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(Flight.FlightData other) mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setAppMetadata
(com.google.protobuf.ByteString value) Application-defined metadata.setDataBody
(com.google.protobuf.ByteString value) The actual batch of Arrow data.setDataHeader
(com.google.protobuf.ByteString value) Header for message data as described in Message.fbs::Message.The descriptor of the data.setFlightDescriptor
(Flight.FlightDescriptor.Builder builderForValue) The descriptor of the data.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Flight.FlightData.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Flight.FlightData.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Flight.FlightData.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Flight.FlightData.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Flight.FlightData.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Flight.FlightData.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Flight.FlightData.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.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 interfaceFlight.FlightDataOrBuilder
- Returns:
- Whether the flightDescriptor field is set.
-
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 interfaceFlight.FlightDataOrBuilder
- Returns:
- The flightDescriptor.
-
setFlightDescriptor
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
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
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
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
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 interfaceFlight.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 interfaceFlight.FlightDataOrBuilder
- Returns:
- The dataHeader.
-
setDataHeader
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
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 interfaceFlight.FlightDataOrBuilder
- Returns:
- The appMetadata.
-
setAppMetadata
Application-defined metadata.
bytes app_metadata = 3;
- Parameters:
value
- The appMetadata to set.- Returns:
- This builder for chaining.
-
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 interfaceFlight.FlightDataOrBuilder
- Returns:
- The dataBody.
-
setDataBody
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
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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Flight.FlightData.Builder>
-
mergeUnknownFields
public final Flight.FlightData.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Flight.FlightData.Builder>
-