Skip to content

Commit

Permalink
fix optional params
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasIO committed Dec 20, 2024
1 parent f1ae8d1 commit 2631ee3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions livekit-ffi/protocol/room.proto
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ message DataStream {
message Header {
required string stream_id = 1; // unique identifier for this data stream
required int64 timestamp = 2; // using int64 for Unix timestamp
required string topic = 3;
optional string topic = 3;
required string mime_type = 4;
optional uint64 total_length = 5; // only populated for finite streams, if it's a stream of unknown size this stays empty
optional uint64 total_chunks = 6; // only populated for finite streams, if it's a stream of unknown size this stays empty
Expand All @@ -574,8 +574,8 @@ message DataStream {
required string stream_id = 1; // unique identifier for this data stream to map it to the correct header
required uint64 chunk_index = 2;
required bytes content = 3; // content as binary (bytes)
required bool complete = 4; // true only if this is the last chunk of this stream - can also be sent with empty content
required int32 version = 5; // a version indicating that this chunk_index has been retroactively modified and the original one needs to be replaced
optional bool complete = 4; // true only if this is the last chunk of this stream - can also be sent with empty content
optional int32 version = 5; // a version indicating that this chunk_index has been retroactively modified and the original one needs to be replaced
optional bytes iv = 6; // optional, initialization vector for AES-GCM encryption
}
}
Expand Down
12 changes: 6 additions & 6 deletions livekit-ffi/src/livekit.proto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3022,8 +3022,8 @@ pub mod data_stream {
/// using int64 for Unix timestamp
#[prost(int64, required, tag="2")]
pub timestamp: i64,
#[prost(string, required, tag="3")]
pub topic: ::prost::alloc::string::String,
#[prost(string, optional, tag="3")]
pub topic: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, required, tag="4")]
pub mime_type: ::prost::alloc::string::String,
/// only populated for finite streams, if it's a stream of unknown size this stays empty
Expand Down Expand Up @@ -3063,11 +3063,11 @@ pub mod data_stream {
#[prost(bytes="vec", required, tag="3")]
pub content: ::prost::alloc::vec::Vec<u8>,
/// true only if this is the last chunk of this stream - can also be sent with empty content
#[prost(bool, required, tag="4")]
pub complete: bool,
#[prost(bool, optional, tag="4")]
pub complete: ::core::option::Option<bool>,
/// a version indicating that this chunk_index has been retroactively modified and the original one needs to be replaced
#[prost(int32, required, tag="5")]
pub version: i32,
#[prost(int32, optional, tag="5")]
pub version: ::core::option::Option<i32>,
/// optional, initialization vector for AES-GCM encryption
#[prost(bytes="vec", optional, tag="6")]
pub iv: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
Expand Down

0 comments on commit 2631ee3

Please sign in to comment.