Skip to content

Commit 54f1627

Browse files
authored
[WORKFLOW] Updating protos from viamrobotics/api, commit: 85eb9ccae220e33f28c64dfee8ebbe76607e72f9
1 parent fc3c002 commit 54f1627

Some content is hidden

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

47 files changed

+9035
-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

+100
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,10 +917,79 @@ 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
}
892924
}
925+
/// Rich semantic information of an API field beyond basic typing.
926+
#[allow(clippy::derive_partial_eq_without_eq)]
927+
#[derive(Clone, PartialEq, ::prost::Message)]
928+
pub struct FieldInfo {
929+
/// The standard format of a field value. This does not explicitly configure
930+
/// any API consumer, just documents the API's format for the field it is
931+
/// applied to.
932+
#[prost(enumeration="field_info::Format", tag="1")]
933+
pub format: i32,
934+
}
935+
/// Nested message and enum types in `FieldInfo`.
936+
pub mod field_info {
937+
/// The standard format of a field value. The supported formats are all backed
938+
/// by either an RFC defined by the IETF or a Google-defined AIP.
939+
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
940+
#[repr(i32)]
941+
pub enum Format {
942+
/// Default, unspecified value.
943+
Unspecified = 0,
944+
/// Universally Unique Identifier, version 4, value as defined by
945+
/// <https://datatracker.ietf.org/doc/html/rfc4122.> The value may be
946+
/// normalized to entirely lowercase letters. For example, the value
947+
/// `F47AC10B-58CC-0372-8567-0E02B2C3D479` would be normalized to
948+
/// `f47ac10b-58cc-0372-8567-0e02b2c3d479`.
949+
Uuid4 = 1,
950+
/// Internet Protocol v4 value as defined by [RFC
951+
/// 791](<https://datatracker.ietf.org/doc/html/rfc791>). The value may be
952+
/// condensed, with leading zeros in each octet stripped. For example,
953+
/// `001.022.233.040` would be condensed to `1.22.233.40`.
954+
Ipv4 = 2,
955+
/// Internet Protocol v6 value as defined by [RFC
956+
/// 2460](<https://datatracker.ietf.org/doc/html/rfc2460>). The value may be
957+
/// normalized to entirely lowercase letters with zeros compressed, following
958+
/// [RFC 5952](<https://datatracker.ietf.org/doc/html/rfc5952>). For example,
959+
/// the value `2001:0DB8:0::0` would be normalized to `2001:db8::`.
960+
Ipv6 = 3,
961+
/// An IP address in either v4 or v6 format as described by the individual
962+
/// values defined herein. See the comments on the IPV4 and IPV6 types for
963+
/// allowed normalizations of each.
964+
Ipv4OrIpv6 = 4,
965+
}
966+
impl Format {
967+
/// String value of the enum field names used in the ProtoBuf definition.
968+
///
969+
/// The values are not transformed in any way and thus are considered stable
970+
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
971+
pub fn as_str_name(&self) -> &'static str {
972+
match self {
973+
Format::Unspecified => "FORMAT_UNSPECIFIED",
974+
Format::Uuid4 => "UUID4",
975+
Format::Ipv4 => "IPV4",
976+
Format::Ipv6 => "IPV6",
977+
Format::Ipv4OrIpv6 => "IPV4_OR_IPV6",
978+
}
979+
}
980+
/// Creates an enum from field names used in the ProtoBuf definition.
981+
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
982+
match value {
983+
"FORMAT_UNSPECIFIED" => Some(Self::Unspecified),
984+
"UUID4" => Some(Self::Uuid4),
985+
"IPV4" => Some(Self::Ipv4),
986+
"IPV6" => Some(Self::Ipv6),
987+
"IPV4_OR_IPV6" => Some(Self::Ipv4OrIpv6),
988+
_ => None,
989+
}
990+
}
991+
}
992+
}
893993
/// Message that represents an arbitrary HTTP body. It should only be used for
894994
/// payload formats that can't be represented as JSON, such as raw binary or
895995
/// an HTML page.

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)