Skip to content

Commit dcc4613

Browse files
authored
[WORKFLOW] Updating protos from viamrobotics/api, commit: 72d2b65e9040748257577fafe662557b4ea9604b
1 parent fc3c002 commit dcc4613

Some content is hidden

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

42 files changed

+7951
-865
lines changed

src/gen/google.api.rs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,19 @@ pub struct MethodSettings {
696696
/// seconds: 54000 # 90 minutes
697697
#[prost(message, optional, tag="2")]
698698
pub long_running: ::core::option::Option<method_settings::LongRunning>,
699+
/// List of top-level fields of the request message, that should be
700+
/// automatically populated by the client libraries based on their
701+
/// (google.api.field_info).format. Currently supported format: UUID4.
702+
///
703+
/// Example of a YAML configuration:
704+
///
705+
/// publishing:
706+
/// method_settings:
707+
/// - selector: google.example.v1.ExampleService.CreateExample
708+
/// auto_populated_fields:
709+
/// - request_id
710+
#[prost(string, repeated, tag="3")]
711+
pub auto_populated_fields: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
699712
}
700713
/// Nested message and enum types in `MethodSettings`.
701714
pub mod method_settings {
@@ -857,6 +870,19 @@ pub enum FieldBehavior {
857870
/// a non-empty value will be returned. The user will not be aware of what
858871
/// non-empty value to expect.
859872
NonEmptyDefault = 7,
873+
/// Denotes that the field in a resource (a message annotated with
874+
/// google.api.resource) is used in the resource name to uniquely identify the
875+
/// resource. For AIP-compliant APIs, this should only be applied to the
876+
/// `name` field on the resource.
877+
///
878+
/// This behavior should not be applied to references to other resources within
879+
/// the message.
880+
///
881+
/// The identifier field of resources often have different field behavior
882+
/// depending on the request it is embedded in (e.g. for Create methods name
883+
/// is optional and unused, while for Update methods it is required). Instead
884+
/// of method-specific annotations, only `IDENTIFIER` is required.
885+
Identifier = 8,
860886
}
861887
impl FieldBehavior {
862888
/// String value of the enum field names used in the ProtoBuf definition.
@@ -873,6 +899,7 @@ impl FieldBehavior {
873899
FieldBehavior::Immutable => "IMMUTABLE",
874900
FieldBehavior::UnorderedList => "UNORDERED_LIST",
875901
FieldBehavior::NonEmptyDefault => "NON_EMPTY_DEFAULT",
902+
FieldBehavior::Identifier => "IDENTIFIER",
876903
}
877904
}
878905
/// Creates an enum from field names used in the ProtoBuf definition.
@@ -886,6 +913,7 @@ impl FieldBehavior {
886913
"IMMUTABLE" => Some(Self::Immutable),
887914
"UNORDERED_LIST" => Some(Self::UnorderedList),
888915
"NON_EMPTY_DEFAULT" => Some(Self::NonEmptyDefault),
916+
"IDENTIFIER" => Some(Self::Identifier),
889917
_ => None,
890918
}
891919
}

src/gen/proto.stream.v1.rs

Lines changed: 38 additions & 0 deletions
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)