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.GeneratedMessageV3.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.GeneratedMessageV3.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.addRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
clearCmd()
Opaque value used to express a command.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) List of strings identifying a particular dataset..arrow.flight.protocol.FlightDescriptor.DescriptorType type = 1;
clone()
com.google.protobuf.ByteString
getCmd()
Opaque value used to express a command.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getPath
(int index) List of strings identifying a particular dataset.com.google.protobuf.ByteString
getPathBytes
(int index) List of strings identifying a particular dataset.int
List of strings identifying a particular dataset.com.google.protobuf.ProtocolStringList
List 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.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(Flight.FlightDescriptor other) mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setCmd
(com.google.protobuf.ByteString value) Opaque value used to express a command.List of strings identifying a particular dataset.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) .arrow.flight.protocol.FlightDescriptor.DescriptorType type = 1;
setTypeValue
(int value) .arrow.flight.protocol.FlightDescriptor.DescriptorType type = 1;
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.FlightDescriptor.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.FlightDescriptor.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.FlightDescriptor.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.FlightDescriptor.Builder>
-
setField
public Flight.FlightDescriptor.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.FlightDescriptor.Builder>
-
clearField
public Flight.FlightDescriptor.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Flight.FlightDescriptor.Builder>
-
clearOneof
public Flight.FlightDescriptor.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Flight.FlightDescriptor.Builder>
-
setRepeatedField
public Flight.FlightDescriptor.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.FlightDescriptor.Builder>
-
addRepeatedField
public Flight.FlightDescriptor.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.FlightDescriptor.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Flight.FlightDescriptor.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Flight.FlightDescriptor.Builder>
-
mergeFrom
public Flight.FlightDescriptor.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.FlightDescriptor.Builder>
- Throws:
IOException
-
getTypeValue
public int getTypeValue().arrow.flight.protocol.FlightDescriptor.DescriptorType type = 1;
- Specified by:
getTypeValue
in 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:
getType
in 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:
getCmd
in 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:
getPathList
in 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:
getPathCount
in 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:
getPath
in 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:
getPathBytes
in 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.
-
setUnknownFields
public final Flight.FlightDescriptor.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.FlightDescriptor.Builder>
-
mergeUnknownFields
public final Flight.FlightDescriptor.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.FlightDescriptor.Builder>
-