@@ -10,8 +10,8 @@ pub struct HandshakeRequest {
1010 pub protocol_version : u64 ,
1111 ///
1212 /// Arbitrary auth/handshake info.
13- #[ prost( bytes, tag = "2" ) ]
14- pub payload : std :: vec:: Vec < u8 > ,
13+ #[ prost( bytes = "vec" , tag = "2" ) ]
14+ pub payload : :: prost :: alloc :: vec:: Vec < u8 > ,
1515}
1616#[ derive( Clone , PartialEq , :: prost:: Message ) ]
1717pub struct HandshakeResponse {
@@ -21,17 +21,17 @@ pub struct HandshakeResponse {
2121 pub protocol_version : u64 ,
2222 ///
2323 /// Arbitrary auth/handshake info.
24- #[ prost( bytes, tag = "2" ) ]
25- pub payload : std :: vec:: Vec < u8 > ,
24+ #[ prost( bytes = "vec" , tag = "2" ) ]
25+ pub payload : :: prost :: alloc :: vec:: Vec < u8 > ,
2626}
2727///
2828/// A message for doing simple auth.
2929#[ derive( Clone , PartialEq , :: prost:: Message ) ]
3030pub struct BasicAuth {
3131 #[ prost( string, tag = "2" ) ]
32- pub username : std :: string:: String ,
32+ pub username : :: prost :: alloc :: string:: String ,
3333 #[ prost( string, tag = "3" ) ]
34- pub password : std :: string:: String ,
34+ pub password : :: prost :: alloc :: string:: String ,
3535}
3636#[ derive( Clone , PartialEq , :: prost:: Message ) ]
3737pub struct Empty { }
@@ -41,41 +41,41 @@ pub struct Empty {}
4141#[ derive( Clone , PartialEq , :: prost:: Message ) ]
4242pub struct ActionType {
4343 #[ prost( string, tag = "1" ) ]
44- pub r#type : std :: string:: String ,
44+ pub r#type : :: prost :: alloc :: string:: String ,
4545 #[ prost( string, tag = "2" ) ]
46- pub description : std :: string:: String ,
46+ pub description : :: prost :: alloc :: string:: String ,
4747}
4848///
4949/// A service specific expression that can be used to return a limited set
5050/// of available Arrow Flight streams.
5151#[ derive( Clone , PartialEq , :: prost:: Message ) ]
5252pub struct Criteria {
53- #[ prost( bytes, tag = "1" ) ]
54- pub expression : std :: vec:: Vec < u8 > ,
53+ #[ prost( bytes = "vec" , tag = "1" ) ]
54+ pub expression : :: prost :: alloc :: vec:: Vec < u8 > ,
5555}
5656///
5757/// An opaque action specific for the service.
5858#[ derive( Clone , PartialEq , :: prost:: Message ) ]
5959pub struct Action {
6060 #[ prost( string, tag = "1" ) ]
61- pub r#type : std :: string:: String ,
62- #[ prost( bytes, tag = "2" ) ]
63- pub body : std :: vec:: Vec < u8 > ,
61+ pub r#type : :: prost :: alloc :: string:: String ,
62+ #[ prost( bytes = "vec" , tag = "2" ) ]
63+ pub body : :: prost :: alloc :: vec:: Vec < u8 > ,
6464}
6565///
6666/// An opaque result returned after executing an action.
6767#[ derive( Clone , PartialEq , :: prost:: Message ) ]
6868pub struct Result {
69- #[ prost( bytes, tag = "1" ) ]
70- pub body : std :: vec:: Vec < u8 > ,
69+ #[ prost( bytes = "vec" , tag = "1" ) ]
70+ pub body : :: prost :: alloc :: vec:: Vec < u8 > ,
7171}
7272///
7373/// Wrap the result of a getSchema call
7474#[ derive( Clone , PartialEq , :: prost:: Message ) ]
7575pub struct SchemaResult {
7676 /// schema of the dataset as described in Schema.fbs::Schema.
77- #[ prost( bytes, tag = "1" ) ]
78- pub schema : std :: vec:: Vec < u8 > ,
77+ #[ prost( bytes = "vec" , tag = "1" ) ]
78+ pub schema : :: prost :: alloc :: vec:: Vec < u8 > ,
7979}
8080///
8181/// The name or tag for a Flight. May be used as a way to retrieve or generate
@@ -87,14 +87,15 @@ pub struct FlightDescriptor {
8787 ///
8888 /// Opaque value used to express a command. Should only be defined when
8989 /// type = CMD.
90- #[ prost( bytes, tag = "2" ) ]
91- pub cmd : std :: vec:: Vec < u8 > ,
90+ #[ prost( bytes = "vec" , tag = "2" ) ]
91+ pub cmd : :: prost :: alloc :: vec:: Vec < u8 > ,
9292 ///
9393 /// List of strings identifying a particular dataset. Should only be defined
9494 /// when type = PATH.
9595 #[ prost( string, repeated, tag = "3" ) ]
96- pub path : :: std :: vec:: Vec < std :: string:: String > ,
96+ pub path : :: prost :: alloc :: vec:: Vec < :: prost :: alloc :: string:: String > ,
9797}
98+ /// Nested message and enum types in `FlightDescriptor`.
9899pub mod flight_descriptor {
99100 ///
100101 /// Describes what type of descriptor is defined.
@@ -121,17 +122,17 @@ pub mod flight_descriptor {
121122#[ derive( Clone , PartialEq , :: prost:: Message ) ]
122123pub struct FlightInfo {
123124 /// schema of the dataset as described in Schema.fbs::Schema.
124- #[ prost( bytes, tag = "1" ) ]
125- pub schema : std :: vec:: Vec < u8 > ,
125+ #[ prost( bytes = "vec" , tag = "1" ) ]
126+ pub schema : :: prost :: alloc :: vec:: Vec < u8 > ,
126127 ///
127128 /// The descriptor associated with this info.
128129 #[ prost( message, optional, tag = "2" ) ]
129- pub flight_descriptor : :: std :: option:: Option < FlightDescriptor > ,
130+ pub flight_descriptor : :: core :: option:: Option < FlightDescriptor > ,
130131 ///
131132 /// A list of endpoints associated with the flight. To consume the whole
132133 /// flight, all endpoints must be consumed.
133134 #[ prost( message, repeated, tag = "3" ) ]
134- pub endpoint : :: std :: vec:: Vec < FlightEndpoint > ,
135+ pub endpoint : :: prost :: alloc :: vec:: Vec < FlightEndpoint > ,
135136 /// Set these to -1 if unknown.
136137 #[ prost( int64, tag = "4" ) ]
137138 pub total_records : i64 ,
@@ -145,29 +146,29 @@ pub struct FlightEndpoint {
145146 ///
146147 /// Token used to retrieve this stream.
147148 #[ prost( message, optional, tag = "1" ) ]
148- pub ticket : :: std :: option:: Option < Ticket > ,
149+ pub ticket : :: core :: option:: Option < Ticket > ,
149150 ///
150151 /// A list of URIs where this ticket can be redeemed. If the list is
151152 /// empty, the expectation is that the ticket can only be redeemed on the
152153 /// current service where the ticket was generated.
153154 #[ prost( message, repeated, tag = "2" ) ]
154- pub location : :: std :: vec:: Vec < Location > ,
155+ pub location : :: prost :: alloc :: vec:: Vec < Location > ,
155156}
156157///
157158/// A location where a Flight service will accept retrieval of a particular
158159/// stream given a ticket.
159160#[ derive( Clone , PartialEq , :: prost:: Message ) ]
160161pub struct Location {
161162 #[ prost( string, tag = "1" ) ]
162- pub uri : std :: string:: String ,
163+ pub uri : :: prost :: alloc :: string:: String ,
163164}
164165///
165166/// An opaque identifier that the service can use to retrieve a particular
166167/// portion of a stream.
167168#[ derive( Clone , PartialEq , :: prost:: Message ) ]
168169pub struct Ticket {
169- #[ prost( bytes, tag = "1" ) ]
170- pub ticket : std :: vec:: Vec < u8 > ,
170+ #[ prost( bytes = "vec" , tag = "1" ) ]
171+ pub ticket : :: prost :: alloc :: vec:: Vec < u8 > ,
171172}
172173///
173174/// A batch of Arrow data as part of a stream of batches.
@@ -177,29 +178,29 @@ pub struct FlightData {
177178 /// The descriptor of the data. This is only relevant when a client is
178179 /// starting a new DoPut stream.
179180 #[ prost( message, optional, tag = "1" ) ]
180- pub flight_descriptor : :: std :: option:: Option < FlightDescriptor > ,
181+ pub flight_descriptor : :: core :: option:: Option < FlightDescriptor > ,
181182 ///
182183 /// Header for message data as described in Message.fbs::Message.
183- #[ prost( bytes, tag = "2" ) ]
184- pub data_header : std :: vec:: Vec < u8 > ,
184+ #[ prost( bytes = "vec" , tag = "2" ) ]
185+ pub data_header : :: prost :: alloc :: vec:: Vec < u8 > ,
185186 ///
186187 /// Application-defined metadata.
187- #[ prost( bytes, tag = "3" ) ]
188- pub app_metadata : std :: vec:: Vec < u8 > ,
188+ #[ prost( bytes = "vec" , tag = "3" ) ]
189+ pub app_metadata : :: prost :: alloc :: vec:: Vec < u8 > ,
189190 ///
190191 /// The actual batch of Arrow data. Preferably handled with minimal-copies
191192 /// coming last in the definition to help with sidecar patterns (it is
192193 /// expected that some implementations will fetch this field off the wire
193194 /// with specialized code to avoid extra memory copies).
194- #[ prost( bytes, tag = "1000" ) ]
195- pub data_body : std :: vec:: Vec < u8 > ,
195+ #[ prost( bytes = "vec" , tag = "1000" ) ]
196+ pub data_body : :: prost :: alloc :: vec:: Vec < u8 > ,
196197}
197198///*
198199/// The response message associated with the submission of a DoPut.
199200#[ derive( Clone , PartialEq , :: prost:: Message ) ]
200201pub struct PutResult {
201- #[ prost( bytes, tag = "1" ) ]
202- pub app_metadata : std :: vec:: Vec < u8 > ,
202+ #[ prost( bytes = "vec" , tag = "1" ) ]
203+ pub app_metadata : :: prost :: alloc :: vec:: Vec < u8 > ,
203204}
204205#[ doc = r" Generated client implementations." ]
205206pub mod flight_service_client {
@@ -1010,6 +1011,7 @@ pub mod flight_service_server {
10101011 Ok ( http:: Response :: builder ( )
10111012 . status ( 200 )
10121013 . header ( "grpc-status" , "12" )
1014+ . header ( "content-type" , "application/grpc" )
10131015 . body ( tonic:: body:: BoxBody :: empty ( ) )
10141016 . unwrap ( ) )
10151017 } ) ,
0 commit comments