chalk-client 0.1.0

Rust client SDK for the Chalk feature store
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
// This file is @generated by prost-build.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChalkException {
    /// The name of the class of the exception.
    #[prost(string, tag = "1")]
    pub kind: ::prost::alloc::string::String,
    /// The message taken from the exception.
    #[prost(string, tag = "2")]
    pub message: ::prost::alloc::string::String,
    /// The stacktrace produced by the code.
    #[prost(string, tag = "3")]
    pub stacktrace: ::prost::alloc::string::String,
    /// The stacktrace produced by the code, full detail.
    #[prost(string, tag = "4")]
    pub internal_stacktrace: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChalkError {
    #[prost(enumeration = "ErrorCode", tag = "1")]
    pub code: i32,
    #[prost(enumeration = "ErrorCodeCategory", tag = "2")]
    pub category: i32,
    /// A readable description of the error message.
    #[prost(string, tag = "3")]
    pub message: ::prost::alloc::string::String,
    /// A human-readable hint that can be used to identify the entity that this error is associated with.
    #[prost(string, optional, tag = "101")]
    pub display_primary_key: ::core::option::Option<::prost::alloc::string::String>,
    /// If provided, can be used to add additional context to 'display_primary_key'.
    #[prost(string, optional, tag = "102")]
    pub display_primary_key_fqn: ::core::option::Option<::prost::alloc::string::String>,
    /// The exception that caused the failure, if applicable.
    #[prost(message, optional, tag = "103")]
    pub exception: ::core::option::Option<ChalkException>,
    /// The fully qualified name of the failing feature, e.g. `user.identity.has_voip_phone`.
    #[prost(string, optional, tag = "104")]
    pub feature: ::core::option::Option<::prost::alloc::string::String>,
    /// The fully qualified name of the failing resolver, e.g. `my.project.get_fraud_score`.
    #[prost(string, optional, tag = "105")]
    pub resolver: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ErrorCode {
    /// An unspecified error occurred.
    InternalServerErrorUnspecified = 0,
    /// The query contained features that do not exist
    ParseFailed = 1,
    ///
    /// A resolver was required as part of running the dependency
    /// graph that could not be found.
    ResolverNotFound = 2,
    ///
    /// The query is invalid. All supplied features need to be
    /// rooted in the same top-level entity.
    InvalidQuery = 3,
    ///
    /// A feature value did not match the expected schema
    /// (e.g. `incompatible type "int"; expected "str"`)
    ValidationFailed = 4,
    /// The resolver for a feature errored.
    ResolverFailed = 5,
    /// The resolver for a feature timed out.
    ResolverTimedOut = 6,
    ///
    /// A crash in a resolver that was to produce an input for
    /// the resolver crashed, and so the resolver could not run
    /// crashed, and so the resolver could not run.
    UpstreamFailed = 7,
    /// The request was submitted with an invalid authentication header.
    Unauthenticated = 8,
    /// The supplied credentials do not provide the right authorization to execute the request.
    Unauthorized = 9,
    /// The operation was cancelled, typically by the caller.
    Cancelled = 10,
    /// The deadline expired before the operation could complete.
    DeadlineExceeded = 11,
}
impl ErrorCode {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::InternalServerErrorUnspecified => {
                "ERROR_CODE_INTERNAL_SERVER_ERROR_UNSPECIFIED"
            }
            Self::ParseFailed => "ERROR_CODE_PARSE_FAILED",
            Self::ResolverNotFound => "ERROR_CODE_RESOLVER_NOT_FOUND",
            Self::InvalidQuery => "ERROR_CODE_INVALID_QUERY",
            Self::ValidationFailed => "ERROR_CODE_VALIDATION_FAILED",
            Self::ResolverFailed => "ERROR_CODE_RESOLVER_FAILED",
            Self::ResolverTimedOut => "ERROR_CODE_RESOLVER_TIMED_OUT",
            Self::UpstreamFailed => "ERROR_CODE_UPSTREAM_FAILED",
            Self::Unauthenticated => "ERROR_CODE_UNAUTHENTICATED",
            Self::Unauthorized => "ERROR_CODE_UNAUTHORIZED",
            Self::Cancelled => "ERROR_CODE_CANCELLED",
            Self::DeadlineExceeded => "ERROR_CODE_DEADLINE_EXCEEDED",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "ERROR_CODE_INTERNAL_SERVER_ERROR_UNSPECIFIED" => {
                Some(Self::InternalServerErrorUnspecified)
            }
            "ERROR_CODE_PARSE_FAILED" => Some(Self::ParseFailed),
            "ERROR_CODE_RESOLVER_NOT_FOUND" => Some(Self::ResolverNotFound),
            "ERROR_CODE_INVALID_QUERY" => Some(Self::InvalidQuery),
            "ERROR_CODE_VALIDATION_FAILED" => Some(Self::ValidationFailed),
            "ERROR_CODE_RESOLVER_FAILED" => Some(Self::ResolverFailed),
            "ERROR_CODE_RESOLVER_TIMED_OUT" => Some(Self::ResolverTimedOut),
            "ERROR_CODE_UPSTREAM_FAILED" => Some(Self::UpstreamFailed),
            "ERROR_CODE_UNAUTHENTICATED" => Some(Self::Unauthenticated),
            "ERROR_CODE_UNAUTHORIZED" => Some(Self::Unauthorized),
            "ERROR_CODE_CANCELLED" => Some(Self::Cancelled),
            "ERROR_CODE_DEADLINE_EXCEEDED" => Some(Self::DeadlineExceeded),
            _ => None,
        }
    }
}
///
/// Network errors are thrown outside your resolvers.
/// For example, your request was unauthenticated,
/// connection failed, or an error occurred within Chalk.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ErrorCodeCategory {
    /// -- DEFAULT VALUE --
    NetworkUnspecified = 0,
    ///
    /// Request errors are raised before execution of your
    /// resolver code. They may occur due to invalid feature
    /// names in the input or a request that cannot be satisfied
    /// by the resolvers you have defined.
    Request = 1,
    ///
    /// Field errors are raised while running a feature resolver
    /// for a particular field. For this type of error, you'll
    /// find a feature and resolver attribute in the error type.
    /// When a feature resolver crashes, you will receive null
    /// value in the response. To differentiate from a resolver
    /// returning a null value and a failure in the resolver,
    /// you need to check the error schema.
    Field = 2,
}
impl ErrorCodeCategory {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::NetworkUnspecified => "ERROR_CODE_CATEGORY_NETWORK_UNSPECIFIED",
            Self::Request => "ERROR_CODE_CATEGORY_REQUEST",
            Self::Field => "ERROR_CODE_CATEGORY_FIELD",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "ERROR_CODE_CATEGORY_NETWORK_UNSPECIFIED" => Some(Self::NetworkUnspecified),
            "ERROR_CODE_CATEGORY_REQUEST" => Some(Self::Request),
            "ERROR_CODE_CATEGORY_FIELD" => Some(Self::Field),
            _ => None,
        }
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OnlineQueryRequest {
    #[prost(map = "string, message", tag = "1")]
    pub inputs: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost_types::Value,
    >,
    #[prost(message, repeated, tag = "2")]
    pub outputs: ::prost::alloc::vec::Vec<OutputExpr>,
    #[prost(message, optional, tag = "3")]
    pub now: ::core::option::Option<::prost_types::Timestamp>,
    #[prost(map = "string, string", tag = "4")]
    pub staleness: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
    #[prost(message, optional, tag = "5")]
    pub context: ::core::option::Option<OnlineQueryContext>,
    #[prost(message, optional, tag = "6")]
    pub response_options: ::core::option::Option<OnlineQueryResponseOptions>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OnlineQueryBulkRequest {
    #[prost(message, repeated, tag = "2")]
    pub outputs: ::prost::alloc::vec::Vec<OutputExpr>,
    #[prost(message, repeated, tag = "3")]
    pub now: ::prost::alloc::vec::Vec<::prost_types::Timestamp>,
    #[prost(map = "string, string", tag = "4")]
    pub staleness: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
    #[prost(message, optional, tag = "5")]
    pub context: ::core::option::Option<OnlineQueryContext>,
    #[prost(message, optional, tag = "6")]
    pub response_options: ::core::option::Option<OnlineQueryResponseOptions>,
    #[prost(enumeration = "FeatherBodyType", tag = "7")]
    pub body_type: i32,
    #[prost(oneof = "online_query_bulk_request::Inputs", tags = "1, 8")]
    pub inputs: ::core::option::Option<online_query_bulk_request::Inputs>,
}
/// Nested message and enum types in `OnlineQueryBulkRequest`.
pub mod online_query_bulk_request {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Inputs {
        #[prost(bytes, tag = "1")]
        InputsFeather(::prost::alloc::vec::Vec<u8>),
        #[prost(string, tag = "8")]
        InputsSql(::prost::alloc::string::String),
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GenericSingleQuery {
    #[prost(oneof = "generic_single_query::Query", tags = "1, 2")]
    pub query: ::core::option::Option<generic_single_query::Query>,
}
/// Nested message and enum types in `GenericSingleQuery`.
pub mod generic_single_query {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Query {
        #[prost(message, tag = "1")]
        SingleRequest(super::OnlineQueryRequest),
        #[prost(message, tag = "2")]
        BulkRequest(super::OnlineQueryBulkRequest),
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OnlineQueryMultiRequest {
    #[prost(message, repeated, tag = "1")]
    pub queries: ::prost::alloc::vec::Vec<GenericSingleQuery>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FeatureExpression {
    #[prost(string, tag = "1")]
    pub output_column_name: ::prost::alloc::string::String,
    #[prost(string, tag = "3")]
    pub namespace: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "2")]
    pub expr: ::core::option::Option<super::super::expression::v1::LogicalExprNode>,
}
/// Represent an online query output. Currently these are just single feature FQNs.
/// In the future these could be expressions like `User.card.transactions\[_.amount < 100\]`
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OutputExpr {
    #[prost(oneof = "output_expr::Expr", tags = "1, 2")]
    pub expr: ::core::option::Option<output_expr::Expr>,
}
/// Nested message and enum types in `OutputExpr`.
pub mod output_expr {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Expr {
        #[prost(string, tag = "1")]
        FeatureFqn(::prost::alloc::string::String),
        #[prost(message, tag = "2")]
        FeatureExpression(super::FeatureExpression),
    }
}
/// Roughly speaking data in here should affect the query hash key / the query plan
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OnlineQueryContext {
    /// environment id is set in the header. This field is not set anymore
    #[deprecated]
    #[prost(string, tag = "1")]
    pub environment: ::prost::alloc::string::String,
    #[prost(string, repeated, tag = "2")]
    pub tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(string, repeated, tag = "3")]
    pub required_resolver_tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// deployment id is set in the header. This field is not set anymore
    #[deprecated]
    #[prost(string, optional, tag = "4")]
    pub deployment_id: ::core::option::Option<::prost::alloc::string::String>,
    /// branch_id is set in the header. This field is not set anymore
    #[deprecated]
    #[prost(string, optional, tag = "5")]
    pub branch_id: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(string, optional, tag = "6")]
    pub correlation_id: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(string, optional, tag = "7")]
    pub query_name: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(string, optional, tag = "8")]
    pub query_name_version: ::core::option::Option<::prost::alloc::string::String>,
    /// Arbitrary flags for the query such as store_plan_stages
    /// If a flag because consistently used it should be moved into an actual field.
    #[prost(map = "string, message", tag = "9")]
    pub options: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost_types::Value,
    >,
    /// Value metrics will be tagged by the output of the given features
    #[prost(message, repeated, tag = "10")]
    pub value_metrics_tag_by_features: ::prost::alloc::vec::Vec<OutputExpr>,
    /// Query context is a dictionary of JSON-serializable values that can be used in resolvers (see <https://docs.chalk.ai/api-docs#ChalkContext>)
    #[prost(map = "string, message", tag = "11")]
    pub query_context: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost_types::Value,
    >,
    /// Additional features and resolvers to be used to plan this specific query
    #[prost(message, optional, tag = "12")]
    pub overlay_graph: ::core::option::Option<super::super::graph::v1::OverlayGraph>,
}
/// Options re: how we construct the response, shouldn't affect the query hash
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OnlineQueryResponseOptions {
    #[prost(bool, tag = "1")]
    pub include_meta: bool,
    #[prost(message, optional, tag = "2")]
    pub explain: ::core::option::Option<ExplainOptions>,
    #[prost(message, optional, tag = "3")]
    pub encoding_options: ::core::option::Option<FeatureEncodingOptions>,
    /// Customer-provided metadata that gets returned in the response
    #[prost(map = "string, string", tag = "4")]
    pub metadata: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ExplainOptions {}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct FeatureEncodingOptions {
    #[prost(bool, tag = "1")]
    pub encode_structs_as_objects: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OnlineQueryResponse {
    #[prost(message, optional, tag = "1")]
    pub data: ::core::option::Option<OnlineQueryResult>,
    #[prost(message, repeated, tag = "2")]
    pub errors: ::prost::alloc::vec::Vec<ChalkError>,
    #[prost(message, optional, tag = "3")]
    pub response_meta: ::core::option::Option<OnlineQueryMetadata>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OnlineQueryBulkResponse {
    #[prost(bytes = "vec", tag = "1")]
    pub scalars_data: ::prost::alloc::vec::Vec<u8>,
    #[prost(map = "string, bytes", tag = "2")]
    pub groups_data: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::vec::Vec<u8>,
    >,
    #[prost(message, repeated, tag = "3")]
    pub errors: ::prost::alloc::vec::Vec<ChalkError>,
    #[prost(message, optional, tag = "4")]
    pub response_meta: ::core::option::Option<OnlineQueryMetadata>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GenericSingleResponse {
    #[prost(oneof = "generic_single_response::Query", tags = "1, 2")]
    pub query: ::core::option::Option<generic_single_response::Query>,
}
/// Nested message and enum types in `GenericSingleResponse`.
pub mod generic_single_response {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Query {
        #[prost(message, tag = "1")]
        SingleResponse(super::OnlineQueryResponse),
        #[prost(message, tag = "2")]
        BulkResponse(super::OnlineQueryBulkResponse),
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OnlineQueryMultiResponse {
    #[prost(message, repeated, tag = "1")]
    pub responses: ::prost::alloc::vec::Vec<GenericSingleResponse>,
    /// Internal errors not tied to a specific request. Most errors should be stored in the individual response objects.
    #[prost(message, repeated, tag = "2")]
    pub errors: ::prost::alloc::vec::Vec<ChalkError>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OnlineQueryResult {
    #[prost(message, repeated, tag = "1")]
    pub results: ::prost::alloc::vec::Vec<FeatureResult>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FeatureResult {
    #[prost(string, tag = "1")]
    pub field: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "6")]
    pub pkey: ::core::option::Option<::prost_types::Value>,
    #[prost(message, optional, tag = "2")]
    pub value: ::core::option::Option<::prost_types::Value>,
    #[prost(message, optional, tag = "3")]
    pub error: ::core::option::Option<ChalkError>,
    #[prost(message, optional, tag = "4")]
    pub ts: ::core::option::Option<::prost_types::Timestamp>,
    #[prost(message, optional, tag = "5")]
    pub meta: ::core::option::Option<FeatureMeta>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FeatureMeta {
    #[prost(string, tag = "1")]
    pub chosen_resolver_fqn: ::prost::alloc::string::String,
    #[prost(bool, tag = "2")]
    pub cache_hit: bool,
    #[prost(string, tag = "3")]
    pub primitive_type: ::prost::alloc::string::String,
    #[prost(int64, tag = "4")]
    pub version: i64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OnlineQueryMetadata {
    #[prost(message, optional, tag = "1")]
    pub execution_duration: ::core::option::Option<::prost_types::Duration>,
    #[prost(string, tag = "2")]
    pub deployment_id: ::prost::alloc::string::String,
    #[prost(string, tag = "3")]
    pub environment_id: ::prost::alloc::string::String,
    #[prost(string, tag = "4")]
    pub environment_name: ::prost::alloc::string::String,
    #[prost(string, tag = "5")]
    pub query_id: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "6")]
    pub query_timestamp: ::core::option::Option<::prost_types::Timestamp>,
    #[prost(string, tag = "7")]
    pub query_hash: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "8")]
    pub explain_output: ::core::option::Option<QueryExplainInfo>,
    /// Same customer-provided metadata that was provided in the request.
    #[prost(map = "string, string", tag = "9")]
    pub metadata: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
    #[prost(map = "string, message", tag = "10")]
    pub additional_metadata: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost_types::Value,
    >,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryExplainInfo {
    /// Unstructured string representation of the plan
    #[prost(string, optional, tag = "1")]
    pub plan_string: ::core::option::Option<::prost::alloc::string::String>,
}
/// UPLOAD FEATURES
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UploadFeaturesBulkRequest {
    #[prost(bytes = "vec", tag = "1")]
    pub inputs_feather: ::prost::alloc::vec::Vec<u8>,
    #[prost(enumeration = "FeatherBodyType", tag = "7")]
    pub body_type: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UploadFeaturesBulkResponse {
    #[prost(message, repeated, tag = "1")]
    pub errors: ::prost::alloc::vec::Vec<ChalkError>,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum FeatherBodyType {
    Unspecified = 0,
    Table = 1,
    RecordBatches = 2,
}
impl FeatherBodyType {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Unspecified => "FEATHER_BODY_TYPE_UNSPECIFIED",
            Self::Table => "FEATHER_BODY_TYPE_TABLE",
            Self::RecordBatches => "FEATHER_BODY_TYPE_RECORD_BATCHES",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "FEATHER_BODY_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
            "FEATHER_BODY_TYPE_TABLE" => Some(Self::Table),
            "FEATHER_BODY_TYPE_RECORD_BATCHES" => Some(Self::RecordBatches),
            _ => None,
        }
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UploadFeaturesRequest {
    #[prost(bytes = "vec", tag = "1")]
    pub inputs_table: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UploadFeaturesResponse {
    #[prost(message, repeated, tag = "1")]
    pub errors: ::prost::alloc::vec::Vec<ChalkError>,
    #[prost(string, tag = "2")]
    pub operation_id: ::prost::alloc::string::String,
}