Module org.apache.arrow.flight.core
Package org.apache.arrow.flight.impl
Class Flight.FlightDescriptor.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Flight.FlightDescriptor.Builder>
org.apache.arrow.flight.impl.Flight.FlightDescriptor.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Flight.FlightDescriptorOrBuilder
- Enclosing class:
- Flight.FlightDescriptor
public static final class Flight.FlightDescriptor.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Flight.FlightDescriptor.Builder>
implements Flight.FlightDescriptorOrBuilder
The name or tag for a Flight. May be used as a way to retrieve or generate a flight or be used to expose a set of previously defined flights.Protobuf type
arrow.flight.protocol.FlightDescriptor-
Method Summary
Modifier and TypeMethodDescriptionaddAllPath(Iterable<String> values) List of strings identifying a particular dataset.List of strings identifying a particular dataset.addPathBytes(com.google.protobuf.ByteString value) List of strings identifying a particular dataset.build()clear()clearCmd()Opaque value used to express a command.List of strings identifying a particular dataset..arrow.flight.protocol.FlightDescriptor.DescriptorType type = 1;com.google.protobuf.ByteStringgetCmd()Opaque value used to express a command.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetPath(int index) List of strings identifying a particular dataset.com.google.protobuf.ByteStringgetPathBytes(int index) List of strings identifying a particular dataset.intList of strings identifying a particular dataset.com.google.protobuf.ProtocolStringListList of strings identifying a particular dataset.getType().arrow.flight.protocol.FlightDescriptor.DescriptorType type = 1;int.arrow.flight.protocol.FlightDescriptor.DescriptorType type = 1;protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Flight.FlightDescriptor other) setCmd(com.google.protobuf.ByteString value) Opaque value used to express a command.List of strings identifying a particular dataset..arrow.flight.protocol.FlightDescriptor.DescriptorType type = 1;setTypeValue(int value) .arrow.flight.protocol.FlightDescriptor.DescriptorType type = 1;Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Flight.FlightDescriptor.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Flight.FlightDescriptor.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Flight.FlightDescriptor.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Flight.FlightDescriptor.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Flight.FlightDescriptor.Builder>
-
mergeFrom
public Flight.FlightDescriptor.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Flight.FlightDescriptor.Builder>- Throws:
IOException
-
getTypeValue
public int getTypeValue().arrow.flight.protocol.FlightDescriptor.DescriptorType type = 1;- Specified by:
getTypeValuein interfaceFlight.FlightDescriptorOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
.arrow.flight.protocol.FlightDescriptor.DescriptorType type = 1;- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
.arrow.flight.protocol.FlightDescriptor.DescriptorType type = 1;- Specified by:
getTypein interfaceFlight.FlightDescriptorOrBuilder- Returns:
- The type.
-
setType
.arrow.flight.protocol.FlightDescriptor.DescriptorType type = 1;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
.arrow.flight.protocol.FlightDescriptor.DescriptorType type = 1;- Returns:
- This builder for chaining.
-
getCmd
public com.google.protobuf.ByteString getCmd()Opaque value used to express a command. Should only be defined when type = CMD.
bytes cmd = 2;- Specified by:
getCmdin interfaceFlight.FlightDescriptorOrBuilder- Returns:
- The cmd.
-
setCmd
Opaque value used to express a command. Should only be defined when type = CMD.
bytes cmd = 2;- Parameters:
value- The cmd to set.- Returns:
- This builder for chaining.
-
clearCmd
Opaque value used to express a command. Should only be defined when type = CMD.
bytes cmd = 2;- Returns:
- This builder for chaining.
-
getPathList
public com.google.protobuf.ProtocolStringList getPathList()List of strings identifying a particular dataset. Should only be defined when type = PATH.
repeated string path = 3;- Specified by:
getPathListin interfaceFlight.FlightDescriptorOrBuilder- Returns:
- A list containing the path.
-
getPathCount
public int getPathCount()List of strings identifying a particular dataset. Should only be defined when type = PATH.
repeated string path = 3;- Specified by:
getPathCountin interfaceFlight.FlightDescriptorOrBuilder- Returns:
- The count of path.
-
getPath
List of strings identifying a particular dataset. Should only be defined when type = PATH.
repeated string path = 3;- Specified by:
getPathin interfaceFlight.FlightDescriptorOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The path at the given index.
-
getPathBytes
public com.google.protobuf.ByteString getPathBytes(int index) List of strings identifying a particular dataset. Should only be defined when type = PATH.
repeated string path = 3;- Specified by:
getPathBytesin interfaceFlight.FlightDescriptorOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the path at the given index.
-
setPath
List of strings identifying a particular dataset. Should only be defined when type = PATH.
repeated string path = 3;- Parameters:
index- The index to set the value at.value- The path to set.- Returns:
- This builder for chaining.
-
addPath
List of strings identifying a particular dataset. Should only be defined when type = PATH.
repeated string path = 3;- Parameters:
value- The path to add.- Returns:
- This builder for chaining.
-
addAllPath
List of strings identifying a particular dataset. Should only be defined when type = PATH.
repeated string path = 3;- Parameters:
values- The path to add.- Returns:
- This builder for chaining.
-
clearPath
List of strings identifying a particular dataset. Should only be defined when type = PATH.
repeated string path = 3;- Returns:
- This builder for chaining.
-
addPathBytes
List of strings identifying a particular dataset. Should only be defined when type = PATH.
repeated string path = 3;- Parameters:
value- The bytes of the path to add.- Returns:
- This builder for chaining.
-