Skip to content

Commit ce3dde8

Browse files
authored
[WORKFLOW] Updating protos from viamrobotics/api, commit: 547516620d4795017cc882a4a62645933fc71a83
1 parent fc3c002 commit ce3dde8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+8906
-896
lines changed

src/gen/google.api.expr.v1alpha1.rs

+97-8
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,16 @@ pub struct ParsedExpr {
1919
/// operators with the exception of the '.' operator are modelled as function
2020
/// calls. This makes it easy to represent new operators into the existing AST.
2121
///
22-
/// All references within expressions must resolve to a \[Decl][google.api.expr.v1alpha1.Decl\] provided at
23-
/// type-check for an expression to be valid. A reference may either be a bare
24-
/// identifier `name` or a qualified identifier `google.api.name`. References
25-
/// may either refer to a value or a function declaration.
22+
/// All references within expressions must resolve to a
23+
/// \[Decl][google.api.expr.v1alpha1.Decl\] provided at type-check for an
24+
/// expression to be valid. A reference may either be a bare identifier `name` or
25+
/// a qualified identifier `google.api.name`. References may either refer to a
26+
/// value or a function declaration.
2627
///
2728
/// For example, the expression `google.api.name.startsWith('expr')` references
28-
/// the declaration `google.api.name` within a \[Expr.Select][google.api.expr.v1alpha1.Expr.Select\] expression, and
29-
/// the function declaration `startsWith`.
29+
/// the declaration `google.api.name` within a
30+
/// \[Expr.Select][google.api.expr.v1alpha1.Expr.Select\] expression, and the
31+
/// function declaration `startsWith`.
3032
#[allow(clippy::derive_partial_eq_without_eq)]
3133
#[derive(Clone, PartialEq, ::prost::Message)]
3234
pub struct Expr {
@@ -48,7 +50,8 @@ pub mod expr {
4850
/// Required. Holds a single, unqualified identifier, possibly preceded by a
4951
/// '.'.
5052
///
51-
/// Qualified names are represented by the \[Expr.Select][google.api.expr.v1alpha1.Expr.Select\] expression.
53+
/// Qualified names are represented by the
54+
/// \[Expr.Select][google.api.expr.v1alpha1.Expr.Select\] expression.
5255
#[prost(string, tag="1")]
5356
pub name: ::prost::alloc::string::String,
5457
}
@@ -260,7 +263,8 @@ pub mod expr {
260263
/// primitives.
261264
///
262265
/// Lists and structs are not included as constants as these aggregate types may
263-
/// contain \[Expr][google.api.expr.v1alpha1.Expr\] elements which require evaluation and are thus not constant.
266+
/// contain \[Expr][google.api.expr.v1alpha1.Expr\] elements which require
267+
/// evaluation and are thus not constant.
264268
///
265269
/// Examples of literals include: `"hello"`, `b'bytes'`, `1u`, `4.2`, `-2`,
266270
/// `true`, `null`.
@@ -346,6 +350,91 @@ pub struct SourceInfo {
346350
/// value is the call `Expr` that was replaced.
347351
#[prost(map="int64, message", tag="5")]
348352
pub macro_calls: ::std::collections::HashMap<i64, Expr>,
353+
/// A list of tags for extensions that were used while parsing or type checking
354+
/// the source expression. For example, optimizations that require special
355+
/// runtime support may be specified.
356+
///
357+
/// These are used to check feature support between components in separate
358+
/// implementations. This can be used to either skip redundant work or
359+
/// report an error if the extension is unsupported.
360+
#[prost(message, repeated, tag="6")]
361+
pub extensions: ::prost::alloc::vec::Vec<source_info::Extension>,
362+
}
363+
/// Nested message and enum types in `SourceInfo`.
364+
pub mod source_info {
365+
/// An extension that was requested for the source expression.
366+
#[allow(clippy::derive_partial_eq_without_eq)]
367+
#[derive(Clone, PartialEq, ::prost::Message)]
368+
pub struct Extension {
369+
/// Identifier for the extension. Example: constant_folding
370+
#[prost(string, tag="1")]
371+
pub id: ::prost::alloc::string::String,
372+
/// If set, the listed components must understand the extension for the
373+
/// expression to evaluate correctly.
374+
///
375+
/// This field has set semantics, repeated values should be deduplicated.
376+
#[prost(enumeration="extension::Component", repeated, tag="2")]
377+
pub affected_components: ::prost::alloc::vec::Vec<i32>,
378+
/// Version info. May be skipped if it isn't meaningful for the extension.
379+
/// (for example constant_folding might always be v0.0).
380+
#[prost(message, optional, tag="3")]
381+
pub version: ::core::option::Option<extension::Version>,
382+
}
383+
/// Nested message and enum types in `Extension`.
384+
pub mod extension {
385+
/// Version
386+
#[allow(clippy::derive_partial_eq_without_eq)]
387+
#[derive(Clone, PartialEq, ::prost::Message)]
388+
pub struct Version {
389+
/// Major version changes indicate different required support level from
390+
/// the required components.
391+
#[prost(int64, tag="1")]
392+
pub major: i64,
393+
/// Minor version changes must not change the observed behavior from
394+
/// existing implementations, but may be provided informationally.
395+
#[prost(int64, tag="2")]
396+
pub minor: i64,
397+
}
398+
/// CEL component specifier.
399+
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
400+
#[repr(i32)]
401+
pub enum Component {
402+
/// Unspecified, default.
403+
Unspecified = 0,
404+
/// Parser. Converts a CEL string to an AST.
405+
Parser = 1,
406+
/// Type checker. Checks that references in an AST are defined and types
407+
/// agree.
408+
TypeChecker = 2,
409+
/// Runtime. Evaluates a parsed and optionally checked CEL AST against a
410+
/// context.
411+
Runtime = 3,
412+
}
413+
impl Component {
414+
/// String value of the enum field names used in the ProtoBuf definition.
415+
///
416+
/// The values are not transformed in any way and thus are considered stable
417+
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
418+
pub fn as_str_name(&self) -> &'static str {
419+
match self {
420+
Component::Unspecified => "COMPONENT_UNSPECIFIED",
421+
Component::Parser => "COMPONENT_PARSER",
422+
Component::TypeChecker => "COMPONENT_TYPE_CHECKER",
423+
Component::Runtime => "COMPONENT_RUNTIME",
424+
}
425+
}
426+
/// Creates an enum from field names used in the ProtoBuf definition.
427+
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
428+
match value {
429+
"COMPONENT_UNSPECIFIED" => Some(Self::Unspecified),
430+
"COMPONENT_PARSER" => Some(Self::Parser),
431+
"COMPONENT_TYPE_CHECKER" => Some(Self::TypeChecker),
432+
"COMPONENT_RUNTIME" => Some(Self::Runtime),
433+
_ => None,
434+
}
435+
}
436+
}
437+
}
349438
}
350439
/// A specific position in source.
351440
#[allow(clippy::derive_partial_eq_without_eq)]

src/gen/google.api.rs

+32
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,10 @@ pub struct Publishing {
545545
/// <https://cloud.google.com/pubsub/lite/docs/reference/rpc>
546546
#[prost(string, tag="110")]
547547
pub proto_reference_documentation_uri: ::prost::alloc::string::String,
548+
/// Optional link to REST reference documentation. Example:
549+
/// <https://cloud.google.com/pubsub/lite/docs/reference/rest>
550+
#[prost(string, tag="111")]
551+
pub rest_reference_documentation_uri: ::prost::alloc::string::String,
548552
}
549553
/// Settings for Java client libraries.
550554
#[allow(clippy::derive_partial_eq_without_eq)]
@@ -696,6 +700,19 @@ pub struct MethodSettings {
696700
/// seconds: 54000 # 90 minutes
697701
#[prost(message, optional, tag="2")]
698702
pub long_running: ::core::option::Option<method_settings::LongRunning>,
703+
/// List of top-level fields of the request message, that should be
704+
/// automatically populated by the client libraries based on their
705+
/// (google.api.field_info).format. Currently supported format: UUID4.
706+
///
707+
/// Example of a YAML configuration:
708+
///
709+
/// publishing:
710+
/// method_settings:
711+
/// - selector: google.example.v1.ExampleService.CreateExample
712+
/// auto_populated_fields:
713+
/// - request_id
714+
#[prost(string, repeated, tag="3")]
715+
pub auto_populated_fields: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
699716
}
700717
/// Nested message and enum types in `MethodSettings`.
701718
pub mod method_settings {
@@ -857,6 +874,19 @@ pub enum FieldBehavior {
857874
/// a non-empty value will be returned. The user will not be aware of what
858875
/// non-empty value to expect.
859876
NonEmptyDefault = 7,
877+
/// Denotes that the field in a resource (a message annotated with
878+
/// google.api.resource) is used in the resource name to uniquely identify the
879+
/// resource. For AIP-compliant APIs, this should only be applied to the
880+
/// `name` field on the resource.
881+
///
882+
/// This behavior should not be applied to references to other resources within
883+
/// the message.
884+
///
885+
/// The identifier field of resources often have different field behavior
886+
/// depending on the request it is embedded in (e.g. for Create methods name
887+
/// is optional and unused, while for Update methods it is required). Instead
888+
/// of method-specific annotations, only `IDENTIFIER` is required.
889+
Identifier = 8,
860890
}
861891
impl FieldBehavior {
862892
/// String value of the enum field names used in the ProtoBuf definition.
@@ -873,6 +903,7 @@ impl FieldBehavior {
873903
FieldBehavior::Immutable => "IMMUTABLE",
874904
FieldBehavior::UnorderedList => "UNORDERED_LIST",
875905
FieldBehavior::NonEmptyDefault => "NON_EMPTY_DEFAULT",
906+
FieldBehavior::Identifier => "IDENTIFIER",
876907
}
877908
}
878909
/// Creates an enum from field names used in the ProtoBuf definition.
@@ -886,6 +917,7 @@ impl FieldBehavior {
886917
"IMMUTABLE" => Some(Self::Immutable),
887918
"UNORDERED_LIST" => Some(Self::UnorderedList),
888919
"NON_EMPTY_DEFAULT" => Some(Self::NonEmptyDefault),
920+
"IDENTIFIER" => Some(Self::Identifier),
889921
_ => None,
890922
}
891923
}

src/gen/proto.stream.v1.rs

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// @generated
2+
/// ListStreamsRequest requests all streams registered.
3+
#[allow(clippy::derive_partial_eq_without_eq)]
4+
#[derive(Clone, PartialEq, ::prost::Message)]
5+
pub struct ListStreamsRequest {
6+
}
7+
/// A ListStreamsResponse details streams registered.
8+
#[allow(clippy::derive_partial_eq_without_eq)]
9+
#[derive(Clone, PartialEq, ::prost::Message)]
10+
pub struct ListStreamsResponse {
11+
#[prost(string, repeated, tag="1")]
12+
pub names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
13+
}
14+
/// A AddStreamRequest requests the given stream be added to the connection.
15+
#[allow(clippy::derive_partial_eq_without_eq)]
16+
#[derive(Clone, PartialEq, ::prost::Message)]
17+
pub struct AddStreamRequest {
18+
#[prost(string, tag="1")]
19+
pub name: ::prost::alloc::string::String,
20+
}
21+
/// AddStreamResponse is returned after a successful AddStreamRequest.
22+
#[allow(clippy::derive_partial_eq_without_eq)]
23+
#[derive(Clone, PartialEq, ::prost::Message)]
24+
pub struct AddStreamResponse {
25+
}
26+
/// A RemoveStreamRequest requests the given stream be removed from the connection.
27+
#[allow(clippy::derive_partial_eq_without_eq)]
28+
#[derive(Clone, PartialEq, ::prost::Message)]
29+
pub struct RemoveStreamRequest {
30+
#[prost(string, tag="1")]
31+
pub name: ::prost::alloc::string::String,
32+
}
33+
/// RemoveStreamResponse is returned after a successful RemoveStreamRequest.
34+
#[allow(clippy::derive_partial_eq_without_eq)]
35+
#[derive(Clone, PartialEq, ::prost::Message)]
36+
pub struct RemoveStreamResponse {
37+
}
38+
// @@protoc_insertion_point(module)

0 commit comments

Comments
 (0)