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 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.FlightDescriptor.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.FlightDescriptor.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.FlightDescriptor.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

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

      public int getTypeValue()
      .arrow.flight.protocol.FlightDescriptor.DescriptorType type = 1;
      Specified by:
      getTypeValue in interface Flight.FlightDescriptorOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public Flight.FlightDescriptor.Builder setTypeValue(int value)
      .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 interface Flight.FlightDescriptorOrBuilder
      Returns:
      The type.
    • setType

      .arrow.flight.protocol.FlightDescriptor.DescriptorType type = 1;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public Flight.FlightDescriptor.Builder 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 interface Flight.FlightDescriptorOrBuilder
      Returns:
      The cmd.
    • setCmd

      public Flight.FlightDescriptor.Builder setCmd(com.google.protobuf.ByteString value)
      
       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 interface Flight.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 interface Flight.FlightDescriptorOrBuilder
      Returns:
      The count of path.
    • getPath

      public String getPath(int index)
      
       List of strings identifying a particular dataset. Should only be defined
       when type = PATH.
       
      repeated string path = 3;
      Specified by:
      getPath in interface Flight.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 interface Flight.FlightDescriptorOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the path at the given index.
    • setPath

      public Flight.FlightDescriptor.Builder setPath(int index, String value)
      
       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

      public Flight.FlightDescriptor.Builder addPath(String value)
      
       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

      public Flight.FlightDescriptor.Builder addAllPath(Iterable<String> values)
      
       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

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

      public Flight.FlightDescriptor.Builder addPathBytes(com.google.protobuf.ByteString value)
      
       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 interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Flight.FlightDescriptor.Builder>
    • mergeUnknownFields

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