// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. syntax = "proto2"; package safari_sdk.protos; import "google/protobuf/struct.proto"; // For marking a time interval. message IntervalValue { // Inclusive. Unix time stamp in nanosecond. optional int64 start_nsec = 1; // Exclusive. Unix time stamp in nanosecond. optional int64 stop_nsec = 2; } message DomainTimestamp { // A robot / project specific clock domain, like "camera/acquisition" for // acquisition time on camera clock. optional string clock_domain = 1; // The unix timestamp in nanoseconds. optional int64 stamp_nsec = 2; } message IntervalAnnotation { optional IntervalValue range = 1; optional google.protobuf.Value value = 2; } message IntervalAnnotations { repeated IntervalAnnotation annotations = 1; } // For storing labels and tags. message LabelMessage { // The key name. If the value is not set, it is a tag. If the // value is set, it is a the key of the label. Standard key // strings: // "success": whether the session is successful. // "task_instruction": the task instruction, descriptive instruction of the // task in natural language in English. Prefers to cap this to 300 // characters. // "session_log_type": the type of the session, e.g. "teleop", "policy". optional string key = 1; oneof value { google.protobuf.Value label_value = 2; IntervalAnnotations interval_annotations = 3; } }