diff --git a/common/v1/common.pb.go b/common/v1/common.pb.go index 4141a57ad..156afe182 100644 --- a/common/v1/common.pb.go +++ b/common/v1/common.pb.go @@ -655,6 +655,51 @@ func (x *Mesh) GetMesh() []byte { return nil } +type PointCloud struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + PointCloud []byte `protobuf:"bytes,1,opt,name=point_cloud,json=pointCloud,proto3" json:"point_cloud,omitempty"` +} + +func (x *PointCloud) Reset() { + *x = PointCloud{} + mi := &file_common_v1_common_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PointCloud) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PointCloud) ProtoMessage() {} + +func (x *PointCloud) ProtoReflect() protoreflect.Message { + mi := &file_common_v1_common_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PointCloud.ProtoReflect.Descriptor instead. +func (*PointCloud) Descriptor() ([]byte, []int) { + return file_common_v1_common_proto_rawDescGZIP(), []int{9} +} + +func (x *PointCloud) GetPointCloud() []byte { + if x != nil { + return x.PointCloud + } + return nil +} + // Geometry contains the dimensions of a given geometry and the pose of its center. The geometry is one of either a sphere or a box. type Geometry struct { state protoimpl.MessageState @@ -671,6 +716,7 @@ type Geometry struct { // *Geometry_Box // *Geometry_Capsule // *Geometry_Mesh + // *Geometry_Pointcloud GeometryType isGeometry_GeometryType `protobuf_oneof:"geometry_type"` // Label of the geometry. If none supplied, will be an empty string. Label string `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"` @@ -678,7 +724,7 @@ type Geometry struct { func (x *Geometry) Reset() { *x = Geometry{} - mi := &file_common_v1_common_proto_msgTypes[9] + mi := &file_common_v1_common_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -690,7 +736,7 @@ func (x *Geometry) String() string { func (*Geometry) ProtoMessage() {} func (x *Geometry) ProtoReflect() protoreflect.Message { - mi := &file_common_v1_common_proto_msgTypes[9] + mi := &file_common_v1_common_proto_msgTypes[10] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -703,7 +749,7 @@ func (x *Geometry) ProtoReflect() protoreflect.Message { // Deprecated: Use Geometry.ProtoReflect.Descriptor instead. func (*Geometry) Descriptor() ([]byte, []int) { - return file_common_v1_common_proto_rawDescGZIP(), []int{9} + return file_common_v1_common_proto_rawDescGZIP(), []int{10} } func (x *Geometry) GetCenter() *Pose { @@ -748,6 +794,13 @@ func (x *Geometry) GetMesh() *Mesh { return nil } +func (x *Geometry) GetPointcloud() *PointCloud { + if x, ok := x.GetGeometryType().(*Geometry_Pointcloud); ok { + return x.Pointcloud + } + return nil +} + func (x *Geometry) GetLabel() string { if x != nil { return x.Label @@ -775,6 +828,10 @@ type Geometry_Mesh struct { Mesh *Mesh `protobuf:"bytes,6,opt,name=mesh,proto3,oneof"` } +type Geometry_Pointcloud struct { + Pointcloud *PointCloud `protobuf:"bytes,7,opt,name=pointcloud,proto3,oneof"` +} + func (*Geometry_Sphere) isGeometry_GeometryType() {} func (*Geometry_Box) isGeometry_GeometryType() {} @@ -783,6 +840,8 @@ func (*Geometry_Capsule) isGeometry_GeometryType() {} func (*Geometry_Mesh) isGeometry_GeometryType() {} +func (*Geometry_Pointcloud) isGeometry_GeometryType() {} + // GeometriesinFrame contains the dimensions of a given geometry, pose of its center point, and the reference frame by which it was // observed. type GeometriesInFrame struct { @@ -798,7 +857,7 @@ type GeometriesInFrame struct { func (x *GeometriesInFrame) Reset() { *x = GeometriesInFrame{} - mi := &file_common_v1_common_proto_msgTypes[10] + mi := &file_common_v1_common_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -810,7 +869,7 @@ func (x *GeometriesInFrame) String() string { func (*GeometriesInFrame) ProtoMessage() {} func (x *GeometriesInFrame) ProtoReflect() protoreflect.Message { - mi := &file_common_v1_common_proto_msgTypes[10] + mi := &file_common_v1_common_proto_msgTypes[11] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -823,7 +882,7 @@ func (x *GeometriesInFrame) ProtoReflect() protoreflect.Message { // Deprecated: Use GeometriesInFrame.ProtoReflect.Descriptor instead. func (*GeometriesInFrame) Descriptor() ([]byte, []int) { - return file_common_v1_common_proto_rawDescGZIP(), []int{10} + return file_common_v1_common_proto_rawDescGZIP(), []int{11} } func (x *GeometriesInFrame) GetReferenceFrame() string { @@ -855,7 +914,7 @@ type PointCloudObject struct { func (x *PointCloudObject) Reset() { *x = PointCloudObject{} - mi := &file_common_v1_common_proto_msgTypes[11] + mi := &file_common_v1_common_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -867,7 +926,7 @@ func (x *PointCloudObject) String() string { func (*PointCloudObject) ProtoMessage() {} func (x *PointCloudObject) ProtoReflect() protoreflect.Message { - mi := &file_common_v1_common_proto_msgTypes[11] + mi := &file_common_v1_common_proto_msgTypes[12] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -880,7 +939,7 @@ func (x *PointCloudObject) ProtoReflect() protoreflect.Message { // Deprecated: Use PointCloudObject.ProtoReflect.Descriptor instead. func (*PointCloudObject) Descriptor() ([]byte, []int) { - return file_common_v1_common_proto_rawDescGZIP(), []int{11} + return file_common_v1_common_proto_rawDescGZIP(), []int{12} } func (x *PointCloudObject) GetPointCloud() []byte { @@ -908,7 +967,7 @@ type GeoPoint struct { func (x *GeoPoint) Reset() { *x = GeoPoint{} - mi := &file_common_v1_common_proto_msgTypes[12] + mi := &file_common_v1_common_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -920,7 +979,7 @@ func (x *GeoPoint) String() string { func (*GeoPoint) ProtoMessage() {} func (x *GeoPoint) ProtoReflect() protoreflect.Message { - mi := &file_common_v1_common_proto_msgTypes[12] + mi := &file_common_v1_common_proto_msgTypes[13] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -933,7 +992,7 @@ func (x *GeoPoint) ProtoReflect() protoreflect.Message { // Deprecated: Use GeoPoint.ProtoReflect.Descriptor instead. func (*GeoPoint) Descriptor() ([]byte, []int) { - return file_common_v1_common_proto_rawDescGZIP(), []int{12} + return file_common_v1_common_proto_rawDescGZIP(), []int{13} } func (x *GeoPoint) GetLatitude() float64 { @@ -964,7 +1023,7 @@ type GeoGeometry struct { func (x *GeoGeometry) Reset() { *x = GeoGeometry{} - mi := &file_common_v1_common_proto_msgTypes[13] + mi := &file_common_v1_common_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -976,7 +1035,7 @@ func (x *GeoGeometry) String() string { func (*GeoGeometry) ProtoMessage() {} func (x *GeoGeometry) ProtoReflect() protoreflect.Message { - mi := &file_common_v1_common_proto_msgTypes[13] + mi := &file_common_v1_common_proto_msgTypes[14] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -989,7 +1048,7 @@ func (x *GeoGeometry) ProtoReflect() protoreflect.Message { // Deprecated: Use GeoGeometry.ProtoReflect.Descriptor instead. func (*GeoGeometry) Descriptor() ([]byte, []int) { - return file_common_v1_common_proto_rawDescGZIP(), []int{13} + return file_common_v1_common_proto_rawDescGZIP(), []int{14} } func (x *GeoGeometry) GetLocation() *GeoPoint { @@ -1019,11 +1078,15 @@ type Transform struct { // the pose of the above reference frame with respect to a different observer reference frame PoseInObserverFrame *PoseInFrame `protobuf:"bytes,2,opt,name=pose_in_observer_frame,json=poseInObserverFrame,proto3" json:"pose_in_observer_frame,omitempty"` PhysicalObject *Geometry `protobuf:"bytes,3,opt,name=physical_object,json=physicalObject,proto3,oneof" json:"physical_object,omitempty"` + // The UUID of the transform + Uuid []byte `protobuf:"bytes,4,opt,name=uuid,proto3" json:"uuid,omitempty"` + // Can hold information like color, opacity, points colors, collision_allowed, etc... + Metadata *structpb.Struct `protobuf:"bytes,5,opt,name=metadata,proto3,oneof" json:"metadata,omitempty"` } func (x *Transform) Reset() { *x = Transform{} - mi := &file_common_v1_common_proto_msgTypes[14] + mi := &file_common_v1_common_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1035,7 +1098,7 @@ func (x *Transform) String() string { func (*Transform) ProtoMessage() {} func (x *Transform) ProtoReflect() protoreflect.Message { - mi := &file_common_v1_common_proto_msgTypes[14] + mi := &file_common_v1_common_proto_msgTypes[15] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1048,7 +1111,7 @@ func (x *Transform) ProtoReflect() protoreflect.Message { // Deprecated: Use Transform.ProtoReflect.Descriptor instead. func (*Transform) Descriptor() ([]byte, []int) { - return file_common_v1_common_proto_rawDescGZIP(), []int{14} + return file_common_v1_common_proto_rawDescGZIP(), []int{15} } func (x *Transform) GetReferenceFrame() string { @@ -1072,6 +1135,20 @@ func (x *Transform) GetPhysicalObject() *Geometry { return nil } +func (x *Transform) GetUuid() []byte { + if x != nil { + return x.Uuid + } + return nil +} + +func (x *Transform) GetMetadata() *structpb.Struct { + if x != nil { + return x.Metadata + } + return nil +} + // WorldState contains information about the physical environment around a given robot. All of the fields within this message are optional, // they can include information about the physical dimensions of an obstacle, the freespace of a robot, and any desired transforms between a // given reference frame and a new target reference frame. @@ -1089,7 +1166,7 @@ type WorldState struct { func (x *WorldState) Reset() { *x = WorldState{} - mi := &file_common_v1_common_proto_msgTypes[15] + mi := &file_common_v1_common_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1101,7 +1178,7 @@ func (x *WorldState) String() string { func (*WorldState) ProtoMessage() {} func (x *WorldState) ProtoReflect() protoreflect.Message { - mi := &file_common_v1_common_proto_msgTypes[15] + mi := &file_common_v1_common_proto_msgTypes[16] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1114,7 +1191,7 @@ func (x *WorldState) ProtoReflect() protoreflect.Message { // Deprecated: Use WorldState.ProtoReflect.Descriptor instead. func (*WorldState) Descriptor() ([]byte, []int) { - return file_common_v1_common_proto_rawDescGZIP(), []int{15} + return file_common_v1_common_proto_rawDescGZIP(), []int{16} } func (x *WorldState) GetObstacles() []*GeometriesInFrame { @@ -1142,7 +1219,7 @@ type ActuatorStatus struct { func (x *ActuatorStatus) Reset() { *x = ActuatorStatus{} - mi := &file_common_v1_common_proto_msgTypes[16] + mi := &file_common_v1_common_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1154,7 +1231,7 @@ func (x *ActuatorStatus) String() string { func (*ActuatorStatus) ProtoMessage() {} func (x *ActuatorStatus) ProtoReflect() protoreflect.Message { - mi := &file_common_v1_common_proto_msgTypes[16] + mi := &file_common_v1_common_proto_msgTypes[17] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1167,7 +1244,7 @@ func (x *ActuatorStatus) ProtoReflect() protoreflect.Message { // Deprecated: Use ActuatorStatus.ProtoReflect.Descriptor instead. func (*ActuatorStatus) Descriptor() ([]byte, []int) { - return file_common_v1_common_proto_rawDescGZIP(), []int{16} + return file_common_v1_common_proto_rawDescGZIP(), []int{17} } func (x *ActuatorStatus) GetIsMoving() bool { @@ -1191,7 +1268,7 @@ type ResponseMetadata struct { func (x *ResponseMetadata) Reset() { *x = ResponseMetadata{} - mi := &file_common_v1_common_proto_msgTypes[17] + mi := &file_common_v1_common_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1203,7 +1280,7 @@ func (x *ResponseMetadata) String() string { func (*ResponseMetadata) ProtoMessage() {} func (x *ResponseMetadata) ProtoReflect() protoreflect.Message { - mi := &file_common_v1_common_proto_msgTypes[17] + mi := &file_common_v1_common_proto_msgTypes[18] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1216,7 +1293,7 @@ func (x *ResponseMetadata) ProtoReflect() protoreflect.Message { // Deprecated: Use ResponseMetadata.ProtoReflect.Descriptor instead. func (*ResponseMetadata) Descriptor() ([]byte, []int) { - return file_common_v1_common_proto_rawDescGZIP(), []int{17} + return file_common_v1_common_proto_rawDescGZIP(), []int{18} } func (x *ResponseMetadata) GetCapturedAt() *timestamppb.Timestamp { @@ -1238,7 +1315,7 @@ type DoCommandRequest struct { func (x *DoCommandRequest) Reset() { *x = DoCommandRequest{} - mi := &file_common_v1_common_proto_msgTypes[18] + mi := &file_common_v1_common_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1250,7 +1327,7 @@ func (x *DoCommandRequest) String() string { func (*DoCommandRequest) ProtoMessage() {} func (x *DoCommandRequest) ProtoReflect() protoreflect.Message { - mi := &file_common_v1_common_proto_msgTypes[18] + mi := &file_common_v1_common_proto_msgTypes[19] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1263,7 +1340,7 @@ func (x *DoCommandRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DoCommandRequest.ProtoReflect.Descriptor instead. func (*DoCommandRequest) Descriptor() ([]byte, []int) { - return file_common_v1_common_proto_rawDescGZIP(), []int{18} + return file_common_v1_common_proto_rawDescGZIP(), []int{19} } func (x *DoCommandRequest) GetName() string { @@ -1291,7 +1368,7 @@ type DoCommandResponse struct { func (x *DoCommandResponse) Reset() { *x = DoCommandResponse{} - mi := &file_common_v1_common_proto_msgTypes[19] + mi := &file_common_v1_common_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1303,7 +1380,7 @@ func (x *DoCommandResponse) String() string { func (*DoCommandResponse) ProtoMessage() {} func (x *DoCommandResponse) ProtoReflect() protoreflect.Message { - mi := &file_common_v1_common_proto_msgTypes[19] + mi := &file_common_v1_common_proto_msgTypes[20] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1316,7 +1393,7 @@ func (x *DoCommandResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DoCommandResponse.ProtoReflect.Descriptor instead. func (*DoCommandResponse) Descriptor() ([]byte, []int) { - return file_common_v1_common_proto_rawDescGZIP(), []int{19} + return file_common_v1_common_proto_rawDescGZIP(), []int{20} } func (x *DoCommandResponse) GetResult() *structpb.Struct { @@ -1339,7 +1416,7 @@ type GetKinematicsRequest struct { func (x *GetKinematicsRequest) Reset() { *x = GetKinematicsRequest{} - mi := &file_common_v1_common_proto_msgTypes[20] + mi := &file_common_v1_common_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1351,7 +1428,7 @@ func (x *GetKinematicsRequest) String() string { func (*GetKinematicsRequest) ProtoMessage() {} func (x *GetKinematicsRequest) ProtoReflect() protoreflect.Message { - mi := &file_common_v1_common_proto_msgTypes[20] + mi := &file_common_v1_common_proto_msgTypes[21] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1364,7 +1441,7 @@ func (x *GetKinematicsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetKinematicsRequest.ProtoReflect.Descriptor instead. func (*GetKinematicsRequest) Descriptor() ([]byte, []int) { - return file_common_v1_common_proto_rawDescGZIP(), []int{20} + return file_common_v1_common_proto_rawDescGZIP(), []int{21} } func (x *GetKinematicsRequest) GetName() string { @@ -1395,7 +1472,7 @@ type GetKinematicsResponse struct { func (x *GetKinematicsResponse) Reset() { *x = GetKinematicsResponse{} - mi := &file_common_v1_common_proto_msgTypes[21] + mi := &file_common_v1_common_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1407,7 +1484,7 @@ func (x *GetKinematicsResponse) String() string { func (*GetKinematicsResponse) ProtoMessage() {} func (x *GetKinematicsResponse) ProtoReflect() protoreflect.Message { - mi := &file_common_v1_common_proto_msgTypes[21] + mi := &file_common_v1_common_proto_msgTypes[22] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1420,7 +1497,7 @@ func (x *GetKinematicsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetKinematicsResponse.ProtoReflect.Descriptor instead. func (*GetKinematicsResponse) Descriptor() ([]byte, []int) { - return file_common_v1_common_proto_rawDescGZIP(), []int{21} + return file_common_v1_common_proto_rawDescGZIP(), []int{22} } func (x *GetKinematicsResponse) GetFormat() KinematicsFileFormat { @@ -1450,7 +1527,7 @@ type GetGeometriesRequest struct { func (x *GetGeometriesRequest) Reset() { *x = GetGeometriesRequest{} - mi := &file_common_v1_common_proto_msgTypes[22] + mi := &file_common_v1_common_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1462,7 +1539,7 @@ func (x *GetGeometriesRequest) String() string { func (*GetGeometriesRequest) ProtoMessage() {} func (x *GetGeometriesRequest) ProtoReflect() protoreflect.Message { - mi := &file_common_v1_common_proto_msgTypes[22] + mi := &file_common_v1_common_proto_msgTypes[23] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1475,7 +1552,7 @@ func (x *GetGeometriesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetGeometriesRequest.ProtoReflect.Descriptor instead. func (*GetGeometriesRequest) Descriptor() ([]byte, []int) { - return file_common_v1_common_proto_rawDescGZIP(), []int{22} + return file_common_v1_common_proto_rawDescGZIP(), []int{23} } func (x *GetGeometriesRequest) GetName() string { @@ -1503,7 +1580,7 @@ type GetGeometriesResponse struct { func (x *GetGeometriesResponse) Reset() { *x = GetGeometriesResponse{} - mi := &file_common_v1_common_proto_msgTypes[23] + mi := &file_common_v1_common_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1515,7 +1592,7 @@ func (x *GetGeometriesResponse) String() string { func (*GetGeometriesResponse) ProtoMessage() {} func (x *GetGeometriesResponse) ProtoReflect() protoreflect.Message { - mi := &file_common_v1_common_proto_msgTypes[23] + mi := &file_common_v1_common_proto_msgTypes[24] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1528,7 +1605,7 @@ func (x *GetGeometriesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetGeometriesResponse.ProtoReflect.Descriptor instead. func (*GetGeometriesResponse) Descriptor() ([]byte, []int) { - return file_common_v1_common_proto_rawDescGZIP(), []int{23} + return file_common_v1_common_proto_rawDescGZIP(), []int{24} } func (x *GetGeometriesResponse) GetGeometries() []*Geometry { @@ -1551,7 +1628,7 @@ type GetReadingsRequest struct { func (x *GetReadingsRequest) Reset() { *x = GetReadingsRequest{} - mi := &file_common_v1_common_proto_msgTypes[24] + mi := &file_common_v1_common_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1563,7 +1640,7 @@ func (x *GetReadingsRequest) String() string { func (*GetReadingsRequest) ProtoMessage() {} func (x *GetReadingsRequest) ProtoReflect() protoreflect.Message { - mi := &file_common_v1_common_proto_msgTypes[24] + mi := &file_common_v1_common_proto_msgTypes[25] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1576,7 +1653,7 @@ func (x *GetReadingsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetReadingsRequest.ProtoReflect.Descriptor instead. func (*GetReadingsRequest) Descriptor() ([]byte, []int) { - return file_common_v1_common_proto_rawDescGZIP(), []int{24} + return file_common_v1_common_proto_rawDescGZIP(), []int{25} } func (x *GetReadingsRequest) GetName() string { @@ -1603,7 +1680,7 @@ type GetReadingsResponse struct { func (x *GetReadingsResponse) Reset() { *x = GetReadingsResponse{} - mi := &file_common_v1_common_proto_msgTypes[25] + mi := &file_common_v1_common_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1615,7 +1692,7 @@ func (x *GetReadingsResponse) String() string { func (*GetReadingsResponse) ProtoMessage() {} func (x *GetReadingsResponse) ProtoReflect() protoreflect.Message { - mi := &file_common_v1_common_proto_msgTypes[25] + mi := &file_common_v1_common_proto_msgTypes[26] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1628,7 +1705,7 @@ func (x *GetReadingsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetReadingsResponse.ProtoReflect.Descriptor instead. func (*GetReadingsResponse) Descriptor() ([]byte, []int) { - return file_common_v1_common_proto_rawDescGZIP(), []int{25} + return file_common_v1_common_proto_rawDescGZIP(), []int{26} } func (x *GetReadingsResponse) GetReadings() map[string]*structpb.Value { @@ -1655,7 +1732,7 @@ type LogEntry struct { func (x *LogEntry) Reset() { *x = LogEntry{} - mi := &file_common_v1_common_proto_msgTypes[26] + mi := &file_common_v1_common_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1667,7 +1744,7 @@ func (x *LogEntry) String() string { func (*LogEntry) ProtoMessage() {} func (x *LogEntry) ProtoReflect() protoreflect.Message { - mi := &file_common_v1_common_proto_msgTypes[26] + mi := &file_common_v1_common_proto_msgTypes[27] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1680,7 +1757,7 @@ func (x *LogEntry) ProtoReflect() protoreflect.Message { // Deprecated: Use LogEntry.ProtoReflect.Descriptor instead. func (*LogEntry) Descriptor() ([]byte, []int) { - return file_common_v1_common_proto_rawDescGZIP(), []int{26} + return file_common_v1_common_proto_rawDescGZIP(), []int{27} } func (x *LogEntry) GetHost() string { @@ -1820,172 +1897,185 @@ var file_common_v1_common_proto_rawDesc = []byte{ 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x65, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x04, 0x6d, 0x65, 0x73, 0x68, 0x22, 0xa8, 0x02, 0x0a, 0x08, 0x47, 0x65, 0x6f, 0x6d, 0x65, 0x74, - 0x72, 0x79, 0x12, 0x2c, 0x0a, 0x06, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x73, 0x65, 0x52, 0x06, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, - 0x12, 0x30, 0x0a, 0x06, 0x73, 0x70, 0x68, 0x65, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x16, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, - 0x31, 0x2e, 0x53, 0x70, 0x68, 0x65, 0x72, 0x65, 0x48, 0x00, 0x52, 0x06, 0x73, 0x70, 0x68, 0x65, - 0x72, 0x65, 0x12, 0x34, 0x0a, 0x03, 0x62, 0x6f, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x20, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, - 0x2e, 0x52, 0x65, 0x63, 0x74, 0x61, 0x6e, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x50, 0x72, 0x69, 0x73, - 0x6d, 0x48, 0x00, 0x52, 0x03, 0x62, 0x6f, 0x78, 0x12, 0x33, 0x0a, 0x07, 0x63, 0x61, 0x70, 0x73, - 0x75, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x76, 0x69, 0x61, 0x6d, - 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61, 0x70, 0x73, 0x75, - 0x6c, 0x65, 0x48, 0x00, 0x52, 0x07, 0x63, 0x61, 0x70, 0x73, 0x75, 0x6c, 0x65, 0x12, 0x2a, 0x0a, - 0x04, 0x6d, 0x65, 0x73, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x76, 0x69, - 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x73, - 0x68, 0x48, 0x00, 0x52, 0x04, 0x6d, 0x65, 0x73, 0x68, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x61, 0x62, - 0x65, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x42, - 0x0f, 0x0a, 0x0d, 0x67, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, - 0x22, 0x76, 0x0a, 0x11, 0x47, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x65, 0x73, 0x49, 0x6e, - 0x46, 0x72, 0x61, 0x6d, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, - 0x63, 0x65, 0x5f, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, - 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x12, 0x38, - 0x0a, 0x0a, 0x67, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x67, 0x65, - 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x65, 0x73, 0x22, 0x76, 0x0a, 0x10, 0x50, 0x6f, 0x69, 0x6e, - 0x74, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x1f, 0x0a, 0x0b, - 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x0a, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x12, 0x41, 0x0a, - 0x0a, 0x67, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, - 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x65, 0x73, 0x49, 0x6e, 0x46, - 0x72, 0x61, 0x6d, 0x65, 0x52, 0x0a, 0x67, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x65, 0x73, - 0x22, 0x44, 0x0a, 0x08, 0x47, 0x65, 0x6f, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, - 0x6c, 0x61, 0x74, 0x69, 0x74, 0x75, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x01, 0x52, 0x08, - 0x6c, 0x61, 0x74, 0x69, 0x74, 0x75, 0x64, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6c, 0x6f, 0x6e, 0x67, - 0x69, 0x74, 0x75, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x09, 0x6c, 0x6f, 0x6e, - 0x67, 0x69, 0x74, 0x75, 0x64, 0x65, 0x22, 0x7d, 0x0a, 0x0b, 0x47, 0x65, 0x6f, 0x47, 0x65, 0x6f, - 0x6d, 0x65, 0x74, 0x72, 0x79, 0x12, 0x34, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, - 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6f, 0x50, 0x6f, 0x69, 0x6e, - 0x74, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x38, 0x0a, 0x0a, 0x67, + 0x04, 0x6d, 0x65, 0x73, 0x68, 0x22, 0x2d, 0x0a, 0x0a, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x43, 0x6c, + 0x6f, 0x75, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x63, 0x6c, 0x6f, + 0x75, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x43, + 0x6c, 0x6f, 0x75, 0x64, 0x22, 0xe6, 0x02, 0x0a, 0x08, 0x47, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, + 0x79, 0x12, 0x2c, 0x0a, 0x06, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x14, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, + 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x73, 0x65, 0x52, 0x06, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x12, + 0x30, 0x0a, 0x06, 0x73, 0x70, 0x68, 0x65, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x16, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, + 0x2e, 0x53, 0x70, 0x68, 0x65, 0x72, 0x65, 0x48, 0x00, 0x52, 0x06, 0x73, 0x70, 0x68, 0x65, 0x72, + 0x65, 0x12, 0x34, 0x0a, 0x03, 0x62, 0x6f, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, + 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, + 0x52, 0x65, 0x63, 0x74, 0x61, 0x6e, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x50, 0x72, 0x69, 0x73, 0x6d, + 0x48, 0x00, 0x52, 0x03, 0x62, 0x6f, 0x78, 0x12, 0x33, 0x0a, 0x07, 0x63, 0x61, 0x70, 0x73, 0x75, + 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, + 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61, 0x70, 0x73, 0x75, 0x6c, + 0x65, 0x48, 0x00, 0x52, 0x07, 0x63, 0x61, 0x70, 0x73, 0x75, 0x6c, 0x65, 0x12, 0x2a, 0x0a, 0x04, + 0x6d, 0x65, 0x73, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x76, 0x69, 0x61, + 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x73, 0x68, + 0x48, 0x00, 0x52, 0x04, 0x6d, 0x65, 0x73, 0x68, 0x12, 0x3c, 0x0a, 0x0a, 0x70, 0x6f, 0x69, 0x6e, + 0x74, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x76, + 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, + 0x69, 0x6e, 0x74, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x48, 0x00, 0x52, 0x0a, 0x70, 0x6f, 0x69, 0x6e, + 0x74, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x42, 0x0f, 0x0a, 0x0d, + 0x67, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x76, 0x0a, + 0x11, 0x47, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x65, 0x73, 0x49, 0x6e, 0x46, 0x72, 0x61, + 0x6d, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x5f, + 0x66, 0x72, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, 0x66, + 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x0a, 0x67, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x67, 0x65, 0x6f, 0x6d, 0x65, - 0x74, 0x72, 0x69, 0x65, 0x73, 0x22, 0xe2, 0x01, 0x0a, 0x09, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, - 0x6f, 0x72, 0x6d, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, - 0x5f, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, - 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x12, 0x50, 0x0a, 0x16, - 0x70, 0x6f, 0x73, 0x65, 0x5f, 0x69, 0x6e, 0x5f, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x5f, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x76, - 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, - 0x73, 0x65, 0x49, 0x6e, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x52, 0x13, 0x70, 0x6f, 0x73, 0x65, 0x49, - 0x6e, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x12, 0x46, - 0x0a, 0x0f, 0x70, 0x68, 0x79, 0x73, 0x69, 0x63, 0x61, 0x6c, 0x5f, 0x6f, 0x62, 0x6a, 0x65, 0x63, - 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, - 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, - 0x79, 0x48, 0x00, 0x52, 0x0e, 0x70, 0x68, 0x79, 0x73, 0x69, 0x63, 0x61, 0x6c, 0x4f, 0x62, 0x6a, - 0x65, 0x63, 0x74, 0x88, 0x01, 0x01, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x70, 0x68, 0x79, 0x73, 0x69, - 0x63, 0x61, 0x6c, 0x5f, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x88, 0x01, 0x0a, 0x0a, 0x57, - 0x6f, 0x72, 0x6c, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3f, 0x0a, 0x09, 0x6f, 0x62, 0x73, - 0x74, 0x61, 0x63, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, - 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, - 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x65, 0x73, 0x49, 0x6e, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x52, - 0x09, 0x6f, 0x62, 0x73, 0x74, 0x61, 0x63, 0x6c, 0x65, 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x74, 0x72, - 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, + 0x74, 0x72, 0x69, 0x65, 0x73, 0x22, 0x76, 0x0a, 0x10, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x43, 0x6c, + 0x6f, 0x75, 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6f, 0x69, + 0x6e, 0x74, 0x5f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, + 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x12, 0x41, 0x0a, 0x0a, 0x67, 0x65, + 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, - 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x0a, 0x74, 0x72, 0x61, 0x6e, 0x73, - 0x66, 0x6f, 0x72, 0x6d, 0x73, 0x22, 0x2d, 0x0a, 0x0e, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, - 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x73, 0x5f, 0x6d, 0x6f, - 0x76, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x73, 0x4d, 0x6f, - 0x76, 0x69, 0x6e, 0x67, 0x22, 0x64, 0x0a, 0x10, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x61, 0x70, 0x74, - 0x75, 0x72, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x48, 0x00, 0x52, 0x0a, 0x63, 0x61, 0x70, - 0x74, 0x75, 0x72, 0x65, 0x64, 0x41, 0x74, 0x88, 0x01, 0x01, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x63, - 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x22, 0x59, 0x0a, 0x10, 0x44, 0x6f, - 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, - 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x12, 0x31, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x07, 0x63, 0x6f, - 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x22, 0x44, 0x0a, 0x11, 0x44, 0x6f, 0x43, 0x6f, 0x6d, 0x6d, 0x61, - 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x72, 0x65, - 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, - 0x75, 0x63, 0x74, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x59, 0x0a, 0x14, 0x47, - 0x65, 0x74, 0x4b, 0x69, 0x6e, 0x65, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, - 0x18, 0x63, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, - 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x22, 0x7e, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x4b, 0x69, 0x6e, - 0x65, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x3c, 0x0a, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x24, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, - 0x2e, 0x4b, 0x69, 0x6e, 0x65, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x73, 0x46, 0x69, 0x6c, 0x65, 0x46, - 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x52, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x27, 0x0a, - 0x0f, 0x6b, 0x69, 0x6e, 0x65, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x73, 0x5f, 0x64, 0x61, 0x74, 0x61, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x6b, 0x69, 0x6e, 0x65, 0x6d, 0x61, 0x74, 0x69, - 0x63, 0x73, 0x44, 0x61, 0x74, 0x61, 0x22, 0x59, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x47, 0x65, 0x6f, - 0x6d, 0x65, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, - 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x18, 0x63, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x05, 0x65, 0x78, 0x74, 0x72, - 0x61, 0x22, 0x51, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x47, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x69, - 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x0a, 0x67, 0x65, - 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, - 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, - 0x47, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x67, 0x65, 0x6f, 0x6d, 0x65, 0x74, - 0x72, 0x69, 0x65, 0x73, 0x22, 0x57, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x52, 0x65, 0x61, 0x64, 0x69, - 0x6e, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2d, - 0x0a, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x18, 0x63, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x22, 0xb9, 0x01, - 0x0a, 0x13, 0x47, 0x65, 0x74, 0x52, 0x65, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x08, 0x72, 0x65, 0x61, 0x64, 0x69, 0x6e, 0x67, - 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, - 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x61, 0x64, - 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x65, 0x61, - 0x64, 0x69, 0x6e, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, - 0x69, 0x6e, 0x67, 0x73, 0x1a, 0x53, 0x0a, 0x0d, 0x52, 0x65, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x73, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2c, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x97, 0x02, 0x0a, 0x08, 0x4c, 0x6f, - 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, - 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, - 0x12, 0x2e, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, - 0x12, 0x1f, 0x0a, 0x0b, 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x72, 0x4e, 0x61, 0x6d, - 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x63, - 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, + 0x47, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x65, 0x73, 0x49, 0x6e, 0x46, 0x72, 0x61, 0x6d, + 0x65, 0x52, 0x0a, 0x67, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x65, 0x73, 0x22, 0x44, 0x0a, + 0x08, 0x47, 0x65, 0x6f, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x61, 0x74, + 0x69, 0x74, 0x75, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x01, 0x52, 0x08, 0x6c, 0x61, 0x74, + 0x69, 0x74, 0x75, 0x64, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6c, 0x6f, 0x6e, 0x67, 0x69, 0x74, 0x75, + 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x09, 0x6c, 0x6f, 0x6e, 0x67, 0x69, 0x74, + 0x75, 0x64, 0x65, 0x22, 0x7d, 0x0a, 0x0b, 0x47, 0x65, 0x6f, 0x47, 0x65, 0x6f, 0x6d, 0x65, 0x74, + 0x72, 0x79, 0x12, 0x34, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6f, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x08, + 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x38, 0x0a, 0x0a, 0x67, 0x65, 0x6f, 0x6d, + 0x65, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x76, + 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, + 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x67, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x69, + 0x65, 0x73, 0x22, 0xbd, 0x02, 0x0a, 0x09, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, + 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x66, 0x72, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, 0x66, 0x65, 0x72, + 0x65, 0x6e, 0x63, 0x65, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x12, 0x50, 0x0a, 0x16, 0x70, 0x6f, 0x73, + 0x65, 0x5f, 0x69, 0x6e, 0x5f, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x66, 0x72, + 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x76, 0x69, 0x61, 0x6d, + 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x73, 0x65, 0x49, + 0x6e, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x52, 0x13, 0x70, 0x6f, 0x73, 0x65, 0x49, 0x6e, 0x4f, 0x62, + 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x12, 0x46, 0x0a, 0x0f, 0x70, + 0x68, 0x79, 0x73, 0x69, 0x63, 0x61, 0x6c, 0x5f, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x48, 0x00, + 0x52, 0x0e, 0x70, 0x68, 0x79, 0x73, 0x69, 0x63, 0x61, 0x6c, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, + 0x88, 0x01, 0x01, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x12, 0x38, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, + 0x63, 0x74, 0x48, 0x01, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x88, 0x01, + 0x01, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x70, 0x68, 0x79, 0x73, 0x69, 0x63, 0x61, 0x6c, 0x5f, 0x6f, + 0x62, 0x6a, 0x65, 0x63, 0x74, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x22, 0x88, 0x01, 0x0a, 0x0a, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x12, 0x3f, 0x0a, 0x09, 0x6f, 0x62, 0x73, 0x74, 0x61, 0x63, 0x6c, 0x65, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x65, 0x73, + 0x49, 0x6e, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x52, 0x09, 0x6f, 0x62, 0x73, 0x74, 0x61, 0x63, 0x6c, + 0x65, 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x73, + 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, + 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, + 0x6d, 0x52, 0x0a, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x73, 0x22, 0x2d, 0x0a, + 0x0e, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, + 0x1b, 0x0a, 0x09, 0x69, 0x73, 0x5f, 0x6d, 0x6f, 0x76, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x08, 0x69, 0x73, 0x4d, 0x6f, 0x76, 0x69, 0x6e, 0x67, 0x22, 0x64, 0x0a, 0x10, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x48, 0x00, 0x52, 0x0a, 0x63, 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x64, 0x41, 0x74, 0x88, + 0x01, 0x01, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x63, 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x64, 0x5f, + 0x61, 0x74, 0x22, 0x59, 0x0a, 0x10, 0x44, 0x6f, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x31, 0x0a, 0x07, 0x63, 0x6f, + 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, - 0x72, 0x75, 0x63, 0x74, 0x52, 0x06, 0x63, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, - 0x73, 0x74, 0x61, 0x63, 0x6b, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x74, 0x61, - 0x63, 0x6b, 0x12, 0x2f, 0x0a, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x08, 0x20, 0x03, + 0x72, 0x75, 0x63, 0x74, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x22, 0x44, 0x0a, + 0x11, 0x44, 0x6f, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x06, 0x66, 0x69, 0x65, - 0x6c, 0x64, 0x73, 0x2a, 0x7f, 0x0a, 0x14, 0x4b, 0x69, 0x6e, 0x65, 0x6d, 0x61, 0x74, 0x69, 0x63, - 0x73, 0x46, 0x69, 0x6c, 0x65, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x26, 0x0a, 0x22, 0x4b, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x06, 0x72, 0x65, 0x73, + 0x75, 0x6c, 0x74, 0x22, 0x59, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x4b, 0x69, 0x6e, 0x65, 0x6d, 0x61, + 0x74, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x2d, 0x0a, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x18, 0x63, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x22, 0x7e, + 0x0a, 0x15, 0x47, 0x65, 0x74, 0x4b, 0x69, 0x6e, 0x65, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, + 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x69, 0x6e, 0x65, 0x6d, 0x61, 0x74, + 0x69, 0x63, 0x73, 0x46, 0x69, 0x6c, 0x65, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x52, 0x06, 0x66, + 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x6b, 0x69, 0x6e, 0x65, 0x6d, 0x61, 0x74, + 0x69, 0x63, 0x73, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, + 0x6b, 0x69, 0x6e, 0x65, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x73, 0x44, 0x61, 0x74, 0x61, 0x22, 0x59, + 0x0a, 0x14, 0x47, 0x65, 0x74, 0x47, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x05, 0x65, 0x78, + 0x74, 0x72, 0x61, 0x18, 0x63, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, + 0x63, 0x74, 0x52, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x22, 0x51, 0x0a, 0x15, 0x47, 0x65, 0x74, + 0x47, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x38, 0x0a, 0x0a, 0x67, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x65, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, + 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x79, + 0x52, 0x0a, 0x67, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x65, 0x73, 0x22, 0x57, 0x0a, 0x12, + 0x47, 0x65, 0x74, 0x52, 0x65, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x18, + 0x63, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x05, + 0x65, 0x78, 0x74, 0x72, 0x61, 0x22, 0xb9, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x52, 0x65, 0x61, + 0x64, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, + 0x08, 0x72, 0x65, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x31, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, + 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x1a, 0x53, 0x0a, 0x0d, + 0x52, 0x65, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, + 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, + 0x2c, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, + 0x01, 0x22, 0x97, 0x02, 0x0a, 0x08, 0x4c, 0x6f, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x12, + 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, + 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x2e, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x6c, 0x6f, 0x67, 0x67, + 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6c, + 0x6f, 0x67, 0x67, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x06, 0x63, 0x61, + 0x6c, 0x6c, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x12, 0x2f, 0x0a, 0x06, 0x66, 0x69, + 0x65, 0x6c, 0x64, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, + 0x75, 0x63, 0x74, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x2a, 0x7f, 0x0a, 0x14, 0x4b, + 0x69, 0x6e, 0x65, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x73, 0x46, 0x69, 0x6c, 0x65, 0x46, 0x6f, 0x72, + 0x6d, 0x61, 0x74, 0x12, 0x26, 0x0a, 0x22, 0x4b, 0x49, 0x4e, 0x45, 0x4d, 0x41, 0x54, 0x49, 0x43, + 0x53, 0x5f, 0x46, 0x49, 0x4c, 0x45, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x55, 0x4e, + 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1e, 0x0a, 0x1a, 0x4b, + 0x49, 0x4e, 0x45, 0x4d, 0x41, 0x54, 0x49, 0x43, 0x53, 0x5f, 0x46, 0x49, 0x4c, 0x45, 0x5f, 0x46, + 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x53, 0x56, 0x41, 0x10, 0x01, 0x12, 0x1f, 0x0a, 0x1b, 0x4b, 0x49, 0x4e, 0x45, 0x4d, 0x41, 0x54, 0x49, 0x43, 0x53, 0x5f, 0x46, 0x49, 0x4c, 0x45, 0x5f, 0x46, - 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, - 0x44, 0x10, 0x00, 0x12, 0x1e, 0x0a, 0x1a, 0x4b, 0x49, 0x4e, 0x45, 0x4d, 0x41, 0x54, 0x49, 0x43, - 0x53, 0x5f, 0x46, 0x49, 0x4c, 0x45, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x53, 0x56, - 0x41, 0x10, 0x01, 0x12, 0x1f, 0x0a, 0x1b, 0x4b, 0x49, 0x4e, 0x45, 0x4d, 0x41, 0x54, 0x49, 0x43, - 0x53, 0x5f, 0x46, 0x49, 0x4c, 0x45, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x55, 0x52, - 0x44, 0x46, 0x10, 0x02, 0x3a, 0x61, 0x0a, 0x1a, 0x73, 0x61, 0x66, 0x65, 0x74, 0x79, 0x5f, 0x68, - 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x5f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, - 0x65, 0x64, 0x12, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x18, 0xa4, 0x92, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x18, 0x73, 0x61, 0x66, 0x65, - 0x74, 0x79, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x4d, 0x6f, 0x6e, 0x69, 0x74, - 0x6f, 0x72, 0x65, 0x64, 0x88, 0x01, 0x01, 0x42, 0x2f, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x76, - 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x5a, 0x19, 0x67, - 0x6f, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, - 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x55, 0x52, 0x44, 0x46, 0x10, 0x02, 0x3a, 0x61, 0x0a, 0x1a, + 0x73, 0x61, 0x66, 0x65, 0x74, 0x79, 0x5f, 0x68, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, + 0x5f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x65, 0x64, 0x12, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d, 0x65, 0x74, + 0x68, 0x6f, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xa4, 0x92, 0x05, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x18, 0x73, 0x61, 0x66, 0x65, 0x74, 0x79, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, + 0x65, 0x61, 0x74, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x65, 0x64, 0x88, 0x01, 0x01, 0x42, + 0x2f, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x5a, 0x19, 0x67, 0x6f, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x76, 0x31, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -2001,7 +2091,7 @@ func file_common_v1_common_proto_rawDescGZIP() []byte { } var file_common_v1_common_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_common_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 28) +var file_common_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 29) var file_common_v1_common_proto_goTypes = []any{ (KinematicsFileFormat)(0), // 0: viam.common.v1.KinematicsFileFormat (*ResourceName)(nil), // 1: viam.common.v1.ResourceName @@ -2013,29 +2103,30 @@ var file_common_v1_common_proto_goTypes = []any{ (*Capsule)(nil), // 7: viam.common.v1.Capsule (*RectangularPrism)(nil), // 8: viam.common.v1.RectangularPrism (*Mesh)(nil), // 9: viam.common.v1.Mesh - (*Geometry)(nil), // 10: viam.common.v1.Geometry - (*GeometriesInFrame)(nil), // 11: viam.common.v1.GeometriesInFrame - (*PointCloudObject)(nil), // 12: viam.common.v1.PointCloudObject - (*GeoPoint)(nil), // 13: viam.common.v1.GeoPoint - (*GeoGeometry)(nil), // 14: viam.common.v1.GeoGeometry - (*Transform)(nil), // 15: viam.common.v1.Transform - (*WorldState)(nil), // 16: viam.common.v1.WorldState - (*ActuatorStatus)(nil), // 17: viam.common.v1.ActuatorStatus - (*ResponseMetadata)(nil), // 18: viam.common.v1.ResponseMetadata - (*DoCommandRequest)(nil), // 19: viam.common.v1.DoCommandRequest - (*DoCommandResponse)(nil), // 20: viam.common.v1.DoCommandResponse - (*GetKinematicsRequest)(nil), // 21: viam.common.v1.GetKinematicsRequest - (*GetKinematicsResponse)(nil), // 22: viam.common.v1.GetKinematicsResponse - (*GetGeometriesRequest)(nil), // 23: viam.common.v1.GetGeometriesRequest - (*GetGeometriesResponse)(nil), // 24: viam.common.v1.GetGeometriesResponse - (*GetReadingsRequest)(nil), // 25: viam.common.v1.GetReadingsRequest - (*GetReadingsResponse)(nil), // 26: viam.common.v1.GetReadingsResponse - (*LogEntry)(nil), // 27: viam.common.v1.LogEntry - nil, // 28: viam.common.v1.GetReadingsResponse.ReadingsEntry - (*timestamppb.Timestamp)(nil), // 29: google.protobuf.Timestamp + (*PointCloud)(nil), // 10: viam.common.v1.PointCloud + (*Geometry)(nil), // 11: viam.common.v1.Geometry + (*GeometriesInFrame)(nil), // 12: viam.common.v1.GeometriesInFrame + (*PointCloudObject)(nil), // 13: viam.common.v1.PointCloudObject + (*GeoPoint)(nil), // 14: viam.common.v1.GeoPoint + (*GeoGeometry)(nil), // 15: viam.common.v1.GeoGeometry + (*Transform)(nil), // 16: viam.common.v1.Transform + (*WorldState)(nil), // 17: viam.common.v1.WorldState + (*ActuatorStatus)(nil), // 18: viam.common.v1.ActuatorStatus + (*ResponseMetadata)(nil), // 19: viam.common.v1.ResponseMetadata + (*DoCommandRequest)(nil), // 20: viam.common.v1.DoCommandRequest + (*DoCommandResponse)(nil), // 21: viam.common.v1.DoCommandResponse + (*GetKinematicsRequest)(nil), // 22: viam.common.v1.GetKinematicsRequest + (*GetKinematicsResponse)(nil), // 23: viam.common.v1.GetKinematicsResponse + (*GetGeometriesRequest)(nil), // 24: viam.common.v1.GetGeometriesRequest + (*GetGeometriesResponse)(nil), // 25: viam.common.v1.GetGeometriesResponse + (*GetReadingsRequest)(nil), // 26: viam.common.v1.GetReadingsRequest + (*GetReadingsResponse)(nil), // 27: viam.common.v1.GetReadingsResponse + (*LogEntry)(nil), // 28: viam.common.v1.LogEntry + nil, // 29: viam.common.v1.GetReadingsResponse.ReadingsEntry (*structpb.Struct)(nil), // 30: google.protobuf.Struct - (*structpb.Value)(nil), // 31: google.protobuf.Value - (*descriptorpb.MethodOptions)(nil), // 32: google.protobuf.MethodOptions + (*timestamppb.Timestamp)(nil), // 31: google.protobuf.Timestamp + (*structpb.Value)(nil), // 32: google.protobuf.Value + (*descriptorpb.MethodOptions)(nil), // 33: google.protobuf.MethodOptions } var file_common_v1_common_proto_depIdxs = []int32{ 2, // 0: viam.common.v1.PoseInFrame.pose:type_name -> viam.common.v1.Pose @@ -2045,33 +2136,35 @@ var file_common_v1_common_proto_depIdxs = []int32{ 8, // 4: viam.common.v1.Geometry.box:type_name -> viam.common.v1.RectangularPrism 7, // 5: viam.common.v1.Geometry.capsule:type_name -> viam.common.v1.Capsule 9, // 6: viam.common.v1.Geometry.mesh:type_name -> viam.common.v1.Mesh - 10, // 7: viam.common.v1.GeometriesInFrame.geometries:type_name -> viam.common.v1.Geometry - 11, // 8: viam.common.v1.PointCloudObject.geometries:type_name -> viam.common.v1.GeometriesInFrame - 13, // 9: viam.common.v1.GeoGeometry.location:type_name -> viam.common.v1.GeoPoint - 10, // 10: viam.common.v1.GeoGeometry.geometries:type_name -> viam.common.v1.Geometry - 4, // 11: viam.common.v1.Transform.pose_in_observer_frame:type_name -> viam.common.v1.PoseInFrame - 10, // 12: viam.common.v1.Transform.physical_object:type_name -> viam.common.v1.Geometry - 11, // 13: viam.common.v1.WorldState.obstacles:type_name -> viam.common.v1.GeometriesInFrame - 15, // 14: viam.common.v1.WorldState.transforms:type_name -> viam.common.v1.Transform - 29, // 15: viam.common.v1.ResponseMetadata.captured_at:type_name -> google.protobuf.Timestamp - 30, // 16: viam.common.v1.DoCommandRequest.command:type_name -> google.protobuf.Struct - 30, // 17: viam.common.v1.DoCommandResponse.result:type_name -> google.protobuf.Struct - 30, // 18: viam.common.v1.GetKinematicsRequest.extra:type_name -> google.protobuf.Struct - 0, // 19: viam.common.v1.GetKinematicsResponse.format:type_name -> viam.common.v1.KinematicsFileFormat - 30, // 20: viam.common.v1.GetGeometriesRequest.extra:type_name -> google.protobuf.Struct - 10, // 21: viam.common.v1.GetGeometriesResponse.geometries:type_name -> viam.common.v1.Geometry - 30, // 22: viam.common.v1.GetReadingsRequest.extra:type_name -> google.protobuf.Struct - 28, // 23: viam.common.v1.GetReadingsResponse.readings:type_name -> viam.common.v1.GetReadingsResponse.ReadingsEntry - 29, // 24: viam.common.v1.LogEntry.time:type_name -> google.protobuf.Timestamp - 30, // 25: viam.common.v1.LogEntry.caller:type_name -> google.protobuf.Struct - 30, // 26: viam.common.v1.LogEntry.fields:type_name -> google.protobuf.Struct - 31, // 27: viam.common.v1.GetReadingsResponse.ReadingsEntry.value:type_name -> google.protobuf.Value - 32, // 28: viam.common.v1.safety_heartbeat_monitored:extendee -> google.protobuf.MethodOptions - 29, // [29:29] is the sub-list for method output_type - 29, // [29:29] is the sub-list for method input_type - 29, // [29:29] is the sub-list for extension type_name - 28, // [28:29] is the sub-list for extension extendee - 0, // [0:28] is the sub-list for field type_name + 10, // 7: viam.common.v1.Geometry.pointcloud:type_name -> viam.common.v1.PointCloud + 11, // 8: viam.common.v1.GeometriesInFrame.geometries:type_name -> viam.common.v1.Geometry + 12, // 9: viam.common.v1.PointCloudObject.geometries:type_name -> viam.common.v1.GeometriesInFrame + 14, // 10: viam.common.v1.GeoGeometry.location:type_name -> viam.common.v1.GeoPoint + 11, // 11: viam.common.v1.GeoGeometry.geometries:type_name -> viam.common.v1.Geometry + 4, // 12: viam.common.v1.Transform.pose_in_observer_frame:type_name -> viam.common.v1.PoseInFrame + 11, // 13: viam.common.v1.Transform.physical_object:type_name -> viam.common.v1.Geometry + 30, // 14: viam.common.v1.Transform.metadata:type_name -> google.protobuf.Struct + 12, // 15: viam.common.v1.WorldState.obstacles:type_name -> viam.common.v1.GeometriesInFrame + 16, // 16: viam.common.v1.WorldState.transforms:type_name -> viam.common.v1.Transform + 31, // 17: viam.common.v1.ResponseMetadata.captured_at:type_name -> google.protobuf.Timestamp + 30, // 18: viam.common.v1.DoCommandRequest.command:type_name -> google.protobuf.Struct + 30, // 19: viam.common.v1.DoCommandResponse.result:type_name -> google.protobuf.Struct + 30, // 20: viam.common.v1.GetKinematicsRequest.extra:type_name -> google.protobuf.Struct + 0, // 21: viam.common.v1.GetKinematicsResponse.format:type_name -> viam.common.v1.KinematicsFileFormat + 30, // 22: viam.common.v1.GetGeometriesRequest.extra:type_name -> google.protobuf.Struct + 11, // 23: viam.common.v1.GetGeometriesResponse.geometries:type_name -> viam.common.v1.Geometry + 30, // 24: viam.common.v1.GetReadingsRequest.extra:type_name -> google.protobuf.Struct + 29, // 25: viam.common.v1.GetReadingsResponse.readings:type_name -> viam.common.v1.GetReadingsResponse.ReadingsEntry + 31, // 26: viam.common.v1.LogEntry.time:type_name -> google.protobuf.Timestamp + 30, // 27: viam.common.v1.LogEntry.caller:type_name -> google.protobuf.Struct + 30, // 28: viam.common.v1.LogEntry.fields:type_name -> google.protobuf.Struct + 32, // 29: viam.common.v1.GetReadingsResponse.ReadingsEntry.value:type_name -> google.protobuf.Value + 33, // 30: viam.common.v1.safety_heartbeat_monitored:extendee -> google.protobuf.MethodOptions + 31, // [31:31] is the sub-list for method output_type + 31, // [31:31] is the sub-list for method input_type + 31, // [31:31] is the sub-list for extension type_name + 30, // [30:31] is the sub-list for extension extendee + 0, // [0:30] is the sub-list for field type_name } func init() { file_common_v1_common_proto_init() } @@ -2079,21 +2172,22 @@ func file_common_v1_common_proto_init() { if File_common_v1_common_proto != nil { return } - file_common_v1_common_proto_msgTypes[9].OneofWrappers = []any{ + file_common_v1_common_proto_msgTypes[10].OneofWrappers = []any{ (*Geometry_Sphere)(nil), (*Geometry_Box)(nil), (*Geometry_Capsule)(nil), (*Geometry_Mesh)(nil), + (*Geometry_Pointcloud)(nil), } - file_common_v1_common_proto_msgTypes[14].OneofWrappers = []any{} - file_common_v1_common_proto_msgTypes[17].OneofWrappers = []any{} + file_common_v1_common_proto_msgTypes[15].OneofWrappers = []any{} + file_common_v1_common_proto_msgTypes[18].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_common_v1_common_proto_rawDesc, NumEnums: 1, - NumMessages: 28, + NumMessages: 29, NumExtensions: 1, NumServices: 0, }, diff --git a/gen/js/common/v1/common_pb.d.ts b/gen/js/common/v1/common_pb.d.ts index fc71b2c9d..133e55404 100644 --- a/gen/js/common/v1/common_pb.d.ts +++ b/gen/js/common/v1/common_pb.d.ts @@ -270,6 +270,28 @@ export namespace Mesh { } } +export class PointCloud extends jspb.Message { + getPointCloud(): Uint8Array | string; + getPointCloud_asU8(): Uint8Array; + getPointCloud_asB64(): string; + setPointCloud(value: Uint8Array | string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PointCloud.AsObject; + static toObject(includeInstance: boolean, msg: PointCloud): PointCloud.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PointCloud, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PointCloud; + static deserializeBinaryFromReader(message: PointCloud, reader: jspb.BinaryReader): PointCloud; +} + +export namespace PointCloud { + export type AsObject = { + pointCloud: Uint8Array | string, + } +} + export class Geometry extends jspb.Message { hasCenter(): boolean; clearCenter(): void; @@ -296,6 +318,11 @@ export class Geometry extends jspb.Message { getMesh(): Mesh | undefined; setMesh(value?: Mesh): void; + hasPointcloud(): boolean; + clearPointcloud(): void; + getPointcloud(): PointCloud | undefined; + setPointcloud(value?: PointCloud): void; + getLabel(): string; setLabel(value: string): void; @@ -317,6 +344,7 @@ export namespace Geometry { box?: RectangularPrism.AsObject, capsule?: Capsule.AsObject, mesh?: Mesh.AsObject, + pointcloud?: PointCloud.AsObject, label: string, } @@ -326,6 +354,7 @@ export namespace Geometry { BOX = 3, CAPSULE = 5, MESH = 6, + POINTCLOUD = 7, } } @@ -449,6 +478,16 @@ export class Transform extends jspb.Message { getPhysicalObject(): Geometry | undefined; setPhysicalObject(value?: Geometry): void; + getUuid(): Uint8Array | string; + getUuid_asU8(): Uint8Array; + getUuid_asB64(): string; + setUuid(value: Uint8Array | string): void; + + hasMetadata(): boolean; + clearMetadata(): void; + getMetadata(): google_protobuf_struct_pb.Struct | undefined; + setMetadata(value?: google_protobuf_struct_pb.Struct): void; + serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Transform.AsObject; static toObject(includeInstance: boolean, msg: Transform): Transform.AsObject; @@ -464,6 +503,8 @@ export namespace Transform { referenceFrame: string, poseInObserverFrame?: PoseInFrame.AsObject, physicalObject?: Geometry.AsObject, + uuid: Uint8Array | string, + metadata?: google_protobuf_struct_pb.Struct.AsObject, } } diff --git a/gen/js/common/v1/common_pb.js b/gen/js/common/v1/common_pb.js index 62689f4f0..d32d68581 100644 --- a/gen/js/common/v1/common_pb.js +++ b/gen/js/common/v1/common_pb.js @@ -40,6 +40,7 @@ goog.exportSymbol('proto.viam.common.v1.KinematicsFileFormat', null, global); goog.exportSymbol('proto.viam.common.v1.LogEntry', null, global); goog.exportSymbol('proto.viam.common.v1.Mesh', null, global); goog.exportSymbol('proto.viam.common.v1.Orientation', null, global); +goog.exportSymbol('proto.viam.common.v1.PointCloud', null, global); goog.exportSymbol('proto.viam.common.v1.PointCloudObject', null, global); goog.exportSymbol('proto.viam.common.v1.Pose', null, global); goog.exportSymbol('proto.viam.common.v1.PoseInFrame', null, global); @@ -240,6 +241,27 @@ if (goog.DEBUG && !COMPILED) { */ proto.viam.common.v1.Mesh.displayName = 'proto.viam.common.v1.Mesh'; } +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.viam.common.v1.PointCloud = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.viam.common.v1.PointCloud, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.viam.common.v1.PointCloud.displayName = 'proto.viam.common.v1.PointCloud'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -2451,6 +2473,160 @@ proto.viam.common.v1.Mesh.prototype.setMesh = function(value) { + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.viam.common.v1.PointCloud.prototype.toObject = function(opt_includeInstance) { + return proto.viam.common.v1.PointCloud.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.viam.common.v1.PointCloud} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.viam.common.v1.PointCloud.toObject = function(includeInstance, msg) { + var f, obj = { + pointCloud: msg.getPointCloud_asB64() + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.viam.common.v1.PointCloud} + */ +proto.viam.common.v1.PointCloud.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.viam.common.v1.PointCloud; + return proto.viam.common.v1.PointCloud.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.viam.common.v1.PointCloud} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.viam.common.v1.PointCloud} + */ +proto.viam.common.v1.PointCloud.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setPointCloud(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.viam.common.v1.PointCloud.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.viam.common.v1.PointCloud.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.viam.common.v1.PointCloud} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.viam.common.v1.PointCloud.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPointCloud_asU8(); + if (f.length > 0) { + writer.writeBytes( + 1, + f + ); + } +}; + + +/** + * optional bytes point_cloud = 1; + * @return {string} + */ +proto.viam.common.v1.PointCloud.prototype.getPointCloud = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * optional bytes point_cloud = 1; + * This is a type-conversion wrapper around `getPointCloud()` + * @return {string} + */ +proto.viam.common.v1.PointCloud.prototype.getPointCloud_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getPointCloud())); +}; + + +/** + * optional bytes point_cloud = 1; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getPointCloud()` + * @return {!Uint8Array} + */ +proto.viam.common.v1.PointCloud.prototype.getPointCloud_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getPointCloud())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.viam.common.v1.PointCloud} returns this + */ +proto.viam.common.v1.PointCloud.prototype.setPointCloud = function(value) { + return jspb.Message.setProto3BytesField(this, 1, value); +}; + + + /** * Oneof group definitions for this message. Each group defines the field * numbers belonging to that group. When of these fields' value is set, all @@ -2459,7 +2635,7 @@ proto.viam.common.v1.Mesh.prototype.setMesh = function(value) { * @private {!Array>} * @const */ -proto.viam.common.v1.Geometry.oneofGroups_ = [[2,3,5,6]]; +proto.viam.common.v1.Geometry.oneofGroups_ = [[2,3,5,6,7]]; /** * @enum {number} @@ -2469,7 +2645,8 @@ proto.viam.common.v1.Geometry.GeometryTypeCase = { SPHERE: 2, BOX: 3, CAPSULE: 5, - MESH: 6 + MESH: 6, + POINTCLOUD: 7 }; /** @@ -2515,6 +2692,7 @@ proto.viam.common.v1.Geometry.toObject = function(includeInstance, msg) { box: (f = msg.getBox()) && proto.viam.common.v1.RectangularPrism.toObject(includeInstance, f), capsule: (f = msg.getCapsule()) && proto.viam.common.v1.Capsule.toObject(includeInstance, f), mesh: (f = msg.getMesh()) && proto.viam.common.v1.Mesh.toObject(includeInstance, f), + pointcloud: (f = msg.getPointcloud()) && proto.viam.common.v1.PointCloud.toObject(includeInstance, f), label: jspb.Message.getFieldWithDefault(msg, 4, "") }; @@ -2577,6 +2755,11 @@ proto.viam.common.v1.Geometry.deserializeBinaryFromReader = function(msg, reader reader.readMessage(value,proto.viam.common.v1.Mesh.deserializeBinaryFromReader); msg.setMesh(value); break; + case 7: + var value = new proto.viam.common.v1.PointCloud; + reader.readMessage(value,proto.viam.common.v1.PointCloud.deserializeBinaryFromReader); + msg.setPointcloud(value); + break; case 4: var value = /** @type {string} */ (reader.readString()); msg.setLabel(value); @@ -2650,6 +2833,14 @@ proto.viam.common.v1.Geometry.serializeBinaryToWriter = function(message, writer proto.viam.common.v1.Mesh.serializeBinaryToWriter ); } + f = message.getPointcloud(); + if (f != null) { + writer.writeMessage( + 7, + f, + proto.viam.common.v1.PointCloud.serializeBinaryToWriter + ); + } f = message.getLabel(); if (f.length > 0) { writer.writeString( @@ -2845,6 +3036,43 @@ proto.viam.common.v1.Geometry.prototype.hasMesh = function() { }; +/** + * optional PointCloud pointcloud = 7; + * @return {?proto.viam.common.v1.PointCloud} + */ +proto.viam.common.v1.Geometry.prototype.getPointcloud = function() { + return /** @type{?proto.viam.common.v1.PointCloud} */ ( + jspb.Message.getWrapperField(this, proto.viam.common.v1.PointCloud, 7)); +}; + + +/** + * @param {?proto.viam.common.v1.PointCloud|undefined} value + * @return {!proto.viam.common.v1.Geometry} returns this +*/ +proto.viam.common.v1.Geometry.prototype.setPointcloud = function(value) { + return jspb.Message.setOneofWrapperField(this, 7, proto.viam.common.v1.Geometry.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.viam.common.v1.Geometry} returns this + */ +proto.viam.common.v1.Geometry.prototype.clearPointcloud = function() { + return this.setPointcloud(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.viam.common.v1.Geometry.prototype.hasPointcloud = function() { + return jspb.Message.getField(this, 7) != null; +}; + + /** * optional string label = 4; * @return {string} @@ -3663,7 +3891,9 @@ proto.viam.common.v1.Transform.toObject = function(includeInstance, msg) { var f, obj = { referenceFrame: jspb.Message.getFieldWithDefault(msg, 1, ""), poseInObserverFrame: (f = msg.getPoseInObserverFrame()) && proto.viam.common.v1.PoseInFrame.toObject(includeInstance, f), - physicalObject: (f = msg.getPhysicalObject()) && proto.viam.common.v1.Geometry.toObject(includeInstance, f) + physicalObject: (f = msg.getPhysicalObject()) && proto.viam.common.v1.Geometry.toObject(includeInstance, f), + uuid: msg.getUuid_asB64(), + metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f) }; if (includeInstance) { @@ -3714,6 +3944,15 @@ proto.viam.common.v1.Transform.deserializeBinaryFromReader = function(msg, reade reader.readMessage(value,proto.viam.common.v1.Geometry.deserializeBinaryFromReader); msg.setPhysicalObject(value); break; + case 4: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setUuid(value); + break; + case 5: + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setMetadata(value); + break; default: reader.skipField(); break; @@ -3766,6 +4005,21 @@ proto.viam.common.v1.Transform.serializeBinaryToWriter = function(message, write proto.viam.common.v1.Geometry.serializeBinaryToWriter ); } + f = message.getUuid_asU8(); + if (f.length > 0) { + writer.writeBytes( + 4, + f + ); + } + f = message.getMetadata(); + if (f != null) { + writer.writeMessage( + 5, + f, + google_protobuf_struct_pb.Struct.serializeBinaryToWriter + ); + } }; @@ -3861,6 +4115,85 @@ proto.viam.common.v1.Transform.prototype.hasPhysicalObject = function() { }; +/** + * optional bytes uuid = 4; + * @return {string} + */ +proto.viam.common.v1.Transform.prototype.getUuid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * optional bytes uuid = 4; + * This is a type-conversion wrapper around `getUuid()` + * @return {string} + */ +proto.viam.common.v1.Transform.prototype.getUuid_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getUuid())); +}; + + +/** + * optional bytes uuid = 4; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getUuid()` + * @return {!Uint8Array} + */ +proto.viam.common.v1.Transform.prototype.getUuid_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getUuid())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.viam.common.v1.Transform} returns this + */ +proto.viam.common.v1.Transform.prototype.setUuid = function(value) { + return jspb.Message.setProto3BytesField(this, 4, value); +}; + + +/** + * optional google.protobuf.Struct metadata = 5; + * @return {?proto.google.protobuf.Struct} + */ +proto.viam.common.v1.Transform.prototype.getMetadata = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 5)); +}; + + +/** + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.viam.common.v1.Transform} returns this +*/ +proto.viam.common.v1.Transform.prototype.setMetadata = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.viam.common.v1.Transform} returns this + */ +proto.viam.common.v1.Transform.prototype.clearMetadata = function() { + return this.setMetadata(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.viam.common.v1.Transform.prototype.hasMetadata = function() { + return jspb.Message.getField(this, 5) != null; +}; + + /** * List of repeated fields within this message type. diff --git a/gen/js/service/worldstatestore/v1/world_state_store_grpc_web_pb.js b/gen/js/service/worldstatestore/v1/world_state_store_grpc_web_pb.js new file mode 100644 index 000000000..01c1f2d62 --- /dev/null +++ b/gen/js/service/worldstatestore/v1/world_state_store_grpc_web_pb.js @@ -0,0 +1,328 @@ +/** + * @fileoverview gRPC-Web generated client stub for viam.service.worldstatestore.v1 + * @enhanceable + * @public + */ + +// Code generated by protoc-gen-grpc-web. DO NOT EDIT. +// versions: +// protoc-gen-grpc-web v1.5.0 +// protoc v0.0.0 +// source: service/worldstatestore/v1/world_state_store.proto + + +/* eslint-disable */ +// @ts-nocheck + + + +const grpc = {}; +grpc.web = require('grpc-web'); + + +var common_v1_common_pb = require('../../../common/v1/common_pb.js') + +var google_api_annotations_pb = require('../../../google/api/annotations_pb.js') + +var google_protobuf_field_mask_pb = require('google-protobuf/google/protobuf/field_mask_pb.js') + +var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js') +const proto = {}; +proto.viam = {}; +proto.viam.service = {}; +proto.viam.service.worldstatestore = {}; +proto.viam.service.worldstatestore.v1 = require('./world_state_store_pb.js'); + +/** + * @param {string} hostname + * @param {?Object} credentials + * @param {?grpc.web.ClientOptions} options + * @constructor + * @struct + * @final + */ +proto.viam.service.worldstatestore.v1.WorldStateStoreServiceClient = + function(hostname, credentials, options) { + if (!options) options = {}; + options.format = 'text'; + + /** + * @private @const {!grpc.web.GrpcWebClientBase} The client + */ + this.client_ = new grpc.web.GrpcWebClientBase(options); + + /** + * @private @const {string} The hostname + */ + this.hostname_ = hostname.replace(/\/+$/, ''); + +}; + + +/** + * @param {string} hostname + * @param {?Object} credentials + * @param {?grpc.web.ClientOptions} options + * @constructor + * @struct + * @final + */ +proto.viam.service.worldstatestore.v1.WorldStateStoreServicePromiseClient = + function(hostname, credentials, options) { + if (!options) options = {}; + options.format = 'text'; + + /** + * @private @const {!grpc.web.GrpcWebClientBase} The client + */ + this.client_ = new grpc.web.GrpcWebClientBase(options); + + /** + * @private @const {string} The hostname + */ + this.hostname_ = hostname.replace(/\/+$/, ''); + +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.viam.service.worldstatestore.v1.ListUUIDsRequest, + * !proto.viam.service.worldstatestore.v1.ListUUIDsResponse>} + */ +const methodDescriptor_WorldStateStoreService_ListUUIDs = new grpc.web.MethodDescriptor( + '/viam.service.worldstatestore.v1.WorldStateStoreService/ListUUIDs', + grpc.web.MethodType.UNARY, + proto.viam.service.worldstatestore.v1.ListUUIDsRequest, + proto.viam.service.worldstatestore.v1.ListUUIDsResponse, + /** + * @param {!proto.viam.service.worldstatestore.v1.ListUUIDsRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.viam.service.worldstatestore.v1.ListUUIDsResponse.deserializeBinary +); + + +/** + * @param {!proto.viam.service.worldstatestore.v1.ListUUIDsRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.RpcError, ?proto.viam.service.worldstatestore.v1.ListUUIDsResponse)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.viam.service.worldstatestore.v1.WorldStateStoreServiceClient.prototype.listUUIDs = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/viam.service.worldstatestore.v1.WorldStateStoreService/ListUUIDs', + request, + metadata || {}, + methodDescriptor_WorldStateStoreService_ListUUIDs, + callback); +}; + + +/** + * @param {!proto.viam.service.worldstatestore.v1.ListUUIDsRequest} request The + * request proto + * @param {?Object=} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.viam.service.worldstatestore.v1.WorldStateStoreServicePromiseClient.prototype.listUUIDs = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/viam.service.worldstatestore.v1.WorldStateStoreService/ListUUIDs', + request, + metadata || {}, + methodDescriptor_WorldStateStoreService_ListUUIDs); +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.viam.service.worldstatestore.v1.GetTransformRequest, + * !proto.viam.service.worldstatestore.v1.GetTransformResponse>} + */ +const methodDescriptor_WorldStateStoreService_GetTransform = new grpc.web.MethodDescriptor( + '/viam.service.worldstatestore.v1.WorldStateStoreService/GetTransform', + grpc.web.MethodType.UNARY, + proto.viam.service.worldstatestore.v1.GetTransformRequest, + proto.viam.service.worldstatestore.v1.GetTransformResponse, + /** + * @param {!proto.viam.service.worldstatestore.v1.GetTransformRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.viam.service.worldstatestore.v1.GetTransformResponse.deserializeBinary +); + + +/** + * @param {!proto.viam.service.worldstatestore.v1.GetTransformRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.RpcError, ?proto.viam.service.worldstatestore.v1.GetTransformResponse)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.viam.service.worldstatestore.v1.WorldStateStoreServiceClient.prototype.getTransform = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/viam.service.worldstatestore.v1.WorldStateStoreService/GetTransform', + request, + metadata || {}, + methodDescriptor_WorldStateStoreService_GetTransform, + callback); +}; + + +/** + * @param {!proto.viam.service.worldstatestore.v1.GetTransformRequest} request The + * request proto + * @param {?Object=} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.viam.service.worldstatestore.v1.WorldStateStoreServicePromiseClient.prototype.getTransform = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/viam.service.worldstatestore.v1.WorldStateStoreService/GetTransform', + request, + metadata || {}, + methodDescriptor_WorldStateStoreService_GetTransform); +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.viam.service.worldstatestore.v1.StreamTransformChangesRequest, + * !proto.viam.service.worldstatestore.v1.StreamTransformChangesResponse>} + */ +const methodDescriptor_WorldStateStoreService_StreamTransformChanges = new grpc.web.MethodDescriptor( + '/viam.service.worldstatestore.v1.WorldStateStoreService/StreamTransformChanges', + grpc.web.MethodType.SERVER_STREAMING, + proto.viam.service.worldstatestore.v1.StreamTransformChangesRequest, + proto.viam.service.worldstatestore.v1.StreamTransformChangesResponse, + /** + * @param {!proto.viam.service.worldstatestore.v1.StreamTransformChangesRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.viam.service.worldstatestore.v1.StreamTransformChangesResponse.deserializeBinary +); + + +/** + * @param {!proto.viam.service.worldstatestore.v1.StreamTransformChangesRequest} request The request proto + * @param {?Object=} metadata User defined + * call metadata + * @return {!grpc.web.ClientReadableStream} + * The XHR Node Readable Stream + */ +proto.viam.service.worldstatestore.v1.WorldStateStoreServiceClient.prototype.streamTransformChanges = + function(request, metadata) { + return this.client_.serverStreaming(this.hostname_ + + '/viam.service.worldstatestore.v1.WorldStateStoreService/StreamTransformChanges', + request, + metadata || {}, + methodDescriptor_WorldStateStoreService_StreamTransformChanges); +}; + + +/** + * @param {!proto.viam.service.worldstatestore.v1.StreamTransformChangesRequest} request The request proto + * @param {?Object=} metadata User defined + * call metadata + * @return {!grpc.web.ClientReadableStream} + * The XHR Node Readable Stream + */ +proto.viam.service.worldstatestore.v1.WorldStateStoreServicePromiseClient.prototype.streamTransformChanges = + function(request, metadata) { + return this.client_.serverStreaming(this.hostname_ + + '/viam.service.worldstatestore.v1.WorldStateStoreService/StreamTransformChanges', + request, + metadata || {}, + methodDescriptor_WorldStateStoreService_StreamTransformChanges); +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.viam.common.v1.DoCommandRequest, + * !proto.viam.common.v1.DoCommandResponse>} + */ +const methodDescriptor_WorldStateStoreService_DoCommand = new grpc.web.MethodDescriptor( + '/viam.service.worldstatestore.v1.WorldStateStoreService/DoCommand', + grpc.web.MethodType.UNARY, + common_v1_common_pb.DoCommandRequest, + common_v1_common_pb.DoCommandResponse, + /** + * @param {!proto.viam.common.v1.DoCommandRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + common_v1_common_pb.DoCommandResponse.deserializeBinary +); + + +/** + * @param {!proto.viam.common.v1.DoCommandRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.RpcError, ?proto.viam.common.v1.DoCommandResponse)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.viam.service.worldstatestore.v1.WorldStateStoreServiceClient.prototype.doCommand = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/viam.service.worldstatestore.v1.WorldStateStoreService/DoCommand', + request, + metadata || {}, + methodDescriptor_WorldStateStoreService_DoCommand, + callback); +}; + + +/** + * @param {!proto.viam.common.v1.DoCommandRequest} request The + * request proto + * @param {?Object=} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.viam.service.worldstatestore.v1.WorldStateStoreServicePromiseClient.prototype.doCommand = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/viam.service.worldstatestore.v1.WorldStateStoreService/DoCommand', + request, + metadata || {}, + methodDescriptor_WorldStateStoreService_DoCommand); +}; + + +module.exports = proto.viam.service.worldstatestore.v1; + diff --git a/gen/js/service/worldstatestore/v1/world_state_store_pb.d.ts b/gen/js/service/worldstatestore/v1/world_state_store_pb.d.ts new file mode 100644 index 000000000..d0d367119 --- /dev/null +++ b/gen/js/service/worldstatestore/v1/world_state_store_pb.d.ts @@ -0,0 +1,180 @@ +// package: viam.service.worldstatestore.v1 +// file: service/worldstatestore/v1/world_state_store.proto + +import * as jspb from "google-protobuf"; +import * as common_v1_common_pb from "../../../common/v1/common_pb"; +import * as google_api_annotations_pb from "../../../google/api/annotations_pb"; +import * as google_protobuf_field_mask_pb from "google-protobuf/google/protobuf/field_mask_pb"; +import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb"; + +export class ListUUIDsRequest extends jspb.Message { + getName(): string; + setName(value: string): void; + + hasExtra(): boolean; + clearExtra(): void; + getExtra(): google_protobuf_struct_pb.Struct | undefined; + setExtra(value?: google_protobuf_struct_pb.Struct): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListUUIDsRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListUUIDsRequest): ListUUIDsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListUUIDsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListUUIDsRequest; + static deserializeBinaryFromReader(message: ListUUIDsRequest, reader: jspb.BinaryReader): ListUUIDsRequest; +} + +export namespace ListUUIDsRequest { + export type AsObject = { + name: string, + extra?: google_protobuf_struct_pb.Struct.AsObject, + } +} + +export class ListUUIDsResponse extends jspb.Message { + clearUuidsList(): void; + getUuidsList(): Array; + getUuidsList_asU8(): Array; + getUuidsList_asB64(): Array; + setUuidsList(value: Array): void; + addUuids(value: Uint8Array | string, index?: number): Uint8Array | string; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListUUIDsResponse.AsObject; + static toObject(includeInstance: boolean, msg: ListUUIDsResponse): ListUUIDsResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListUUIDsResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListUUIDsResponse; + static deserializeBinaryFromReader(message: ListUUIDsResponse, reader: jspb.BinaryReader): ListUUIDsResponse; +} + +export namespace ListUUIDsResponse { + export type AsObject = { + uuidsList: Array, + } +} + +export class GetTransformRequest extends jspb.Message { + getName(): string; + setName(value: string): void; + + getUuid(): Uint8Array | string; + getUuid_asU8(): Uint8Array; + getUuid_asB64(): string; + setUuid(value: Uint8Array | string): void; + + hasExtra(): boolean; + clearExtra(): void; + getExtra(): google_protobuf_struct_pb.Struct | undefined; + setExtra(value?: google_protobuf_struct_pb.Struct): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetTransformRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetTransformRequest): GetTransformRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetTransformRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetTransformRequest; + static deserializeBinaryFromReader(message: GetTransformRequest, reader: jspb.BinaryReader): GetTransformRequest; +} + +export namespace GetTransformRequest { + export type AsObject = { + name: string, + uuid: Uint8Array | string, + extra?: google_protobuf_struct_pb.Struct.AsObject, + } +} + +export class GetTransformResponse extends jspb.Message { + hasTransform(): boolean; + clearTransform(): void; + getTransform(): common_v1_common_pb.Transform | undefined; + setTransform(value?: common_v1_common_pb.Transform): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetTransformResponse.AsObject; + static toObject(includeInstance: boolean, msg: GetTransformResponse): GetTransformResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetTransformResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetTransformResponse; + static deserializeBinaryFromReader(message: GetTransformResponse, reader: jspb.BinaryReader): GetTransformResponse; +} + +export namespace GetTransformResponse { + export type AsObject = { + transform?: common_v1_common_pb.Transform.AsObject, + } +} + +export class StreamTransformChangesRequest extends jspb.Message { + getName(): string; + setName(value: string): void; + + hasExtra(): boolean; + clearExtra(): void; + getExtra(): google_protobuf_struct_pb.Struct | undefined; + setExtra(value?: google_protobuf_struct_pb.Struct): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): StreamTransformChangesRequest.AsObject; + static toObject(includeInstance: boolean, msg: StreamTransformChangesRequest): StreamTransformChangesRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: StreamTransformChangesRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): StreamTransformChangesRequest; + static deserializeBinaryFromReader(message: StreamTransformChangesRequest, reader: jspb.BinaryReader): StreamTransformChangesRequest; +} + +export namespace StreamTransformChangesRequest { + export type AsObject = { + name: string, + extra?: google_protobuf_struct_pb.Struct.AsObject, + } +} + +export class StreamTransformChangesResponse extends jspb.Message { + getChangeType(): TransformChangeTypeMap[keyof TransformChangeTypeMap]; + setChangeType(value: TransformChangeTypeMap[keyof TransformChangeTypeMap]): void; + + hasTransform(): boolean; + clearTransform(): void; + getTransform(): common_v1_common_pb.Transform | undefined; + setTransform(value?: common_v1_common_pb.Transform): void; + + hasUpdatedFields(): boolean; + clearUpdatedFields(): void; + getUpdatedFields(): google_protobuf_field_mask_pb.FieldMask | undefined; + setUpdatedFields(value?: google_protobuf_field_mask_pb.FieldMask): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): StreamTransformChangesResponse.AsObject; + static toObject(includeInstance: boolean, msg: StreamTransformChangesResponse): StreamTransformChangesResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: StreamTransformChangesResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): StreamTransformChangesResponse; + static deserializeBinaryFromReader(message: StreamTransformChangesResponse, reader: jspb.BinaryReader): StreamTransformChangesResponse; +} + +export namespace StreamTransformChangesResponse { + export type AsObject = { + changeType: TransformChangeTypeMap[keyof TransformChangeTypeMap], + transform?: common_v1_common_pb.Transform.AsObject, + updatedFields?: google_protobuf_field_mask_pb.FieldMask.AsObject, + } +} + +export interface TransformChangeTypeMap { + TRANSFORM_CHANGE_TYPE_UNSPECIFIED: 0; + TRANSFORM_CHANGE_TYPE_ADDED: 1; + TRANSFORM_CHANGE_TYPE_REMOVED: 2; + TRANSFORM_CHANGE_TYPE_UPDATED: 3; +} + +export const TransformChangeType: TransformChangeTypeMap; + diff --git a/gen/js/service/worldstatestore/v1/world_state_store_pb.js b/gen/js/service/worldstatestore/v1/world_state_store_pb.js new file mode 100644 index 000000000..0ca84d1f9 --- /dev/null +++ b/gen/js/service/worldstatestore/v1/world_state_store_pb.js @@ -0,0 +1,1329 @@ +// source: service/worldstatestore/v1/world_state_store.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); + +var common_v1_common_pb = require('../../../common/v1/common_pb.js'); +goog.object.extend(proto, common_v1_common_pb); +var google_api_annotations_pb = require('../../../google/api/annotations_pb.js'); +goog.object.extend(proto, google_api_annotations_pb); +var google_protobuf_field_mask_pb = require('google-protobuf/google/protobuf/field_mask_pb.js'); +goog.object.extend(proto, google_protobuf_field_mask_pb); +var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js'); +goog.object.extend(proto, google_protobuf_struct_pb); +goog.exportSymbol('proto.viam.service.worldstatestore.v1.GetTransformRequest', null, global); +goog.exportSymbol('proto.viam.service.worldstatestore.v1.GetTransformResponse', null, global); +goog.exportSymbol('proto.viam.service.worldstatestore.v1.ListUUIDsRequest', null, global); +goog.exportSymbol('proto.viam.service.worldstatestore.v1.ListUUIDsResponse', null, global); +goog.exportSymbol('proto.viam.service.worldstatestore.v1.StreamTransformChangesRequest', null, global); +goog.exportSymbol('proto.viam.service.worldstatestore.v1.StreamTransformChangesResponse', null, global); +goog.exportSymbol('proto.viam.service.worldstatestore.v1.TransformChangeType', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.viam.service.worldstatestore.v1.ListUUIDsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.viam.service.worldstatestore.v1.ListUUIDsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.viam.service.worldstatestore.v1.ListUUIDsRequest.displayName = 'proto.viam.service.worldstatestore.v1.ListUUIDsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.viam.service.worldstatestore.v1.ListUUIDsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.viam.service.worldstatestore.v1.ListUUIDsResponse.repeatedFields_, null); +}; +goog.inherits(proto.viam.service.worldstatestore.v1.ListUUIDsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.viam.service.worldstatestore.v1.ListUUIDsResponse.displayName = 'proto.viam.service.worldstatestore.v1.ListUUIDsResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.viam.service.worldstatestore.v1.GetTransformRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.viam.service.worldstatestore.v1.GetTransformRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.viam.service.worldstatestore.v1.GetTransformRequest.displayName = 'proto.viam.service.worldstatestore.v1.GetTransformRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.viam.service.worldstatestore.v1.GetTransformResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.viam.service.worldstatestore.v1.GetTransformResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.viam.service.worldstatestore.v1.GetTransformResponse.displayName = 'proto.viam.service.worldstatestore.v1.GetTransformResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.viam.service.worldstatestore.v1.StreamTransformChangesRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.viam.service.worldstatestore.v1.StreamTransformChangesRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.viam.service.worldstatestore.v1.StreamTransformChangesRequest.displayName = 'proto.viam.service.worldstatestore.v1.StreamTransformChangesRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.viam.service.worldstatestore.v1.StreamTransformChangesResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.viam.service.worldstatestore.v1.StreamTransformChangesResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.viam.service.worldstatestore.v1.StreamTransformChangesResponse.displayName = 'proto.viam.service.worldstatestore.v1.StreamTransformChangesResponse'; +} + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.viam.service.worldstatestore.v1.ListUUIDsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.viam.service.worldstatestore.v1.ListUUIDsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.viam.service.worldstatestore.v1.ListUUIDsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.viam.service.worldstatestore.v1.ListUUIDsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + extra: (f = msg.getExtra()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.viam.service.worldstatestore.v1.ListUUIDsRequest} + */ +proto.viam.service.worldstatestore.v1.ListUUIDsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.viam.service.worldstatestore.v1.ListUUIDsRequest; + return proto.viam.service.worldstatestore.v1.ListUUIDsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.viam.service.worldstatestore.v1.ListUUIDsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.viam.service.worldstatestore.v1.ListUUIDsRequest} + */ +proto.viam.service.worldstatestore.v1.ListUUIDsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 99: + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setExtra(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.viam.service.worldstatestore.v1.ListUUIDsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.viam.service.worldstatestore.v1.ListUUIDsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.viam.service.worldstatestore.v1.ListUUIDsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.viam.service.worldstatestore.v1.ListUUIDsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getExtra(); + if (f != null) { + writer.writeMessage( + 99, + f, + google_protobuf_struct_pb.Struct.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string name = 1; + * @return {string} + */ +proto.viam.service.worldstatestore.v1.ListUUIDsRequest.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.viam.service.worldstatestore.v1.ListUUIDsRequest} returns this + */ +proto.viam.service.worldstatestore.v1.ListUUIDsRequest.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional google.protobuf.Struct extra = 99; + * @return {?proto.google.protobuf.Struct} + */ +proto.viam.service.worldstatestore.v1.ListUUIDsRequest.prototype.getExtra = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 99)); +}; + + +/** + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.viam.service.worldstatestore.v1.ListUUIDsRequest} returns this +*/ +proto.viam.service.worldstatestore.v1.ListUUIDsRequest.prototype.setExtra = function(value) { + return jspb.Message.setWrapperField(this, 99, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.viam.service.worldstatestore.v1.ListUUIDsRequest} returns this + */ +proto.viam.service.worldstatestore.v1.ListUUIDsRequest.prototype.clearExtra = function() { + return this.setExtra(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.viam.service.worldstatestore.v1.ListUUIDsRequest.prototype.hasExtra = function() { + return jspb.Message.getField(this, 99) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.viam.service.worldstatestore.v1.ListUUIDsResponse.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.viam.service.worldstatestore.v1.ListUUIDsResponse.prototype.toObject = function(opt_includeInstance) { + return proto.viam.service.worldstatestore.v1.ListUUIDsResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.viam.service.worldstatestore.v1.ListUUIDsResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.viam.service.worldstatestore.v1.ListUUIDsResponse.toObject = function(includeInstance, msg) { + var f, obj = { + uuidsList: msg.getUuidsList_asB64() + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.viam.service.worldstatestore.v1.ListUUIDsResponse} + */ +proto.viam.service.worldstatestore.v1.ListUUIDsResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.viam.service.worldstatestore.v1.ListUUIDsResponse; + return proto.viam.service.worldstatestore.v1.ListUUIDsResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.viam.service.worldstatestore.v1.ListUUIDsResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.viam.service.worldstatestore.v1.ListUUIDsResponse} + */ +proto.viam.service.worldstatestore.v1.ListUUIDsResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.addUuids(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.viam.service.worldstatestore.v1.ListUUIDsResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.viam.service.worldstatestore.v1.ListUUIDsResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.viam.service.worldstatestore.v1.ListUUIDsResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.viam.service.worldstatestore.v1.ListUUIDsResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUuidsList_asU8(); + if (f.length > 0) { + writer.writeRepeatedBytes( + 1, + f + ); + } +}; + + +/** + * repeated bytes uuids = 1; + * @return {!Array} + */ +proto.viam.service.worldstatestore.v1.ListUUIDsResponse.prototype.getUuidsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); +}; + + +/** + * repeated bytes uuids = 1; + * This is a type-conversion wrapper around `getUuidsList()` + * @return {!Array} + */ +proto.viam.service.worldstatestore.v1.ListUUIDsResponse.prototype.getUuidsList_asB64 = function() { + return /** @type {!Array} */ (jspb.Message.bytesListAsB64( + this.getUuidsList())); +}; + + +/** + * repeated bytes uuids = 1; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getUuidsList()` + * @return {!Array} + */ +proto.viam.service.worldstatestore.v1.ListUUIDsResponse.prototype.getUuidsList_asU8 = function() { + return /** @type {!Array} */ (jspb.Message.bytesListAsU8( + this.getUuidsList())); +}; + + +/** + * @param {!(Array|Array)} value + * @return {!proto.viam.service.worldstatestore.v1.ListUUIDsResponse} returns this + */ +proto.viam.service.worldstatestore.v1.ListUUIDsResponse.prototype.setUuidsList = function(value) { + return jspb.Message.setField(this, 1, value || []); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @param {number=} opt_index + * @return {!proto.viam.service.worldstatestore.v1.ListUUIDsResponse} returns this + */ +proto.viam.service.worldstatestore.v1.ListUUIDsResponse.prototype.addUuids = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.viam.service.worldstatestore.v1.ListUUIDsResponse} returns this + */ +proto.viam.service.worldstatestore.v1.ListUUIDsResponse.prototype.clearUuidsList = function() { + return this.setUuidsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.viam.service.worldstatestore.v1.GetTransformRequest.prototype.toObject = function(opt_includeInstance) { + return proto.viam.service.worldstatestore.v1.GetTransformRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.viam.service.worldstatestore.v1.GetTransformRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.viam.service.worldstatestore.v1.GetTransformRequest.toObject = function(includeInstance, msg) { + var f, obj = { + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + uuid: msg.getUuid_asB64(), + extra: (f = msg.getExtra()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.viam.service.worldstatestore.v1.GetTransformRequest} + */ +proto.viam.service.worldstatestore.v1.GetTransformRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.viam.service.worldstatestore.v1.GetTransformRequest; + return proto.viam.service.worldstatestore.v1.GetTransformRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.viam.service.worldstatestore.v1.GetTransformRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.viam.service.worldstatestore.v1.GetTransformRequest} + */ +proto.viam.service.worldstatestore.v1.GetTransformRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 2: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setUuid(value); + break; + case 99: + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setExtra(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.viam.service.worldstatestore.v1.GetTransformRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.viam.service.worldstatestore.v1.GetTransformRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.viam.service.worldstatestore.v1.GetTransformRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.viam.service.worldstatestore.v1.GetTransformRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getUuid_asU8(); + if (f.length > 0) { + writer.writeBytes( + 2, + f + ); + } + f = message.getExtra(); + if (f != null) { + writer.writeMessage( + 99, + f, + google_protobuf_struct_pb.Struct.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string name = 1; + * @return {string} + */ +proto.viam.service.worldstatestore.v1.GetTransformRequest.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.viam.service.worldstatestore.v1.GetTransformRequest} returns this + */ +proto.viam.service.worldstatestore.v1.GetTransformRequest.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional bytes uuid = 2; + * @return {string} + */ +proto.viam.service.worldstatestore.v1.GetTransformRequest.prototype.getUuid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * optional bytes uuid = 2; + * This is a type-conversion wrapper around `getUuid()` + * @return {string} + */ +proto.viam.service.worldstatestore.v1.GetTransformRequest.prototype.getUuid_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getUuid())); +}; + + +/** + * optional bytes uuid = 2; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getUuid()` + * @return {!Uint8Array} + */ +proto.viam.service.worldstatestore.v1.GetTransformRequest.prototype.getUuid_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getUuid())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.viam.service.worldstatestore.v1.GetTransformRequest} returns this + */ +proto.viam.service.worldstatestore.v1.GetTransformRequest.prototype.setUuid = function(value) { + return jspb.Message.setProto3BytesField(this, 2, value); +}; + + +/** + * optional google.protobuf.Struct extra = 99; + * @return {?proto.google.protobuf.Struct} + */ +proto.viam.service.worldstatestore.v1.GetTransformRequest.prototype.getExtra = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 99)); +}; + + +/** + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.viam.service.worldstatestore.v1.GetTransformRequest} returns this +*/ +proto.viam.service.worldstatestore.v1.GetTransformRequest.prototype.setExtra = function(value) { + return jspb.Message.setWrapperField(this, 99, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.viam.service.worldstatestore.v1.GetTransformRequest} returns this + */ +proto.viam.service.worldstatestore.v1.GetTransformRequest.prototype.clearExtra = function() { + return this.setExtra(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.viam.service.worldstatestore.v1.GetTransformRequest.prototype.hasExtra = function() { + return jspb.Message.getField(this, 99) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.viam.service.worldstatestore.v1.GetTransformResponse.prototype.toObject = function(opt_includeInstance) { + return proto.viam.service.worldstatestore.v1.GetTransformResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.viam.service.worldstatestore.v1.GetTransformResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.viam.service.worldstatestore.v1.GetTransformResponse.toObject = function(includeInstance, msg) { + var f, obj = { + transform: (f = msg.getTransform()) && common_v1_common_pb.Transform.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.viam.service.worldstatestore.v1.GetTransformResponse} + */ +proto.viam.service.worldstatestore.v1.GetTransformResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.viam.service.worldstatestore.v1.GetTransformResponse; + return proto.viam.service.worldstatestore.v1.GetTransformResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.viam.service.worldstatestore.v1.GetTransformResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.viam.service.worldstatestore.v1.GetTransformResponse} + */ +proto.viam.service.worldstatestore.v1.GetTransformResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 2: + var value = new common_v1_common_pb.Transform; + reader.readMessage(value,common_v1_common_pb.Transform.deserializeBinaryFromReader); + msg.setTransform(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.viam.service.worldstatestore.v1.GetTransformResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.viam.service.worldstatestore.v1.GetTransformResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.viam.service.worldstatestore.v1.GetTransformResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.viam.service.worldstatestore.v1.GetTransformResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTransform(); + if (f != null) { + writer.writeMessage( + 2, + f, + common_v1_common_pb.Transform.serializeBinaryToWriter + ); + } +}; + + +/** + * optional viam.common.v1.Transform transform = 2; + * @return {?proto.viam.common.v1.Transform} + */ +proto.viam.service.worldstatestore.v1.GetTransformResponse.prototype.getTransform = function() { + return /** @type{?proto.viam.common.v1.Transform} */ ( + jspb.Message.getWrapperField(this, common_v1_common_pb.Transform, 2)); +}; + + +/** + * @param {?proto.viam.common.v1.Transform|undefined} value + * @return {!proto.viam.service.worldstatestore.v1.GetTransformResponse} returns this +*/ +proto.viam.service.worldstatestore.v1.GetTransformResponse.prototype.setTransform = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.viam.service.worldstatestore.v1.GetTransformResponse} returns this + */ +proto.viam.service.worldstatestore.v1.GetTransformResponse.prototype.clearTransform = function() { + return this.setTransform(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.viam.service.worldstatestore.v1.GetTransformResponse.prototype.hasTransform = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.viam.service.worldstatestore.v1.StreamTransformChangesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.viam.service.worldstatestore.v1.StreamTransformChangesRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.viam.service.worldstatestore.v1.StreamTransformChangesRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.viam.service.worldstatestore.v1.StreamTransformChangesRequest.toObject = function(includeInstance, msg) { + var f, obj = { + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + extra: (f = msg.getExtra()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.viam.service.worldstatestore.v1.StreamTransformChangesRequest} + */ +proto.viam.service.worldstatestore.v1.StreamTransformChangesRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.viam.service.worldstatestore.v1.StreamTransformChangesRequest; + return proto.viam.service.worldstatestore.v1.StreamTransformChangesRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.viam.service.worldstatestore.v1.StreamTransformChangesRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.viam.service.worldstatestore.v1.StreamTransformChangesRequest} + */ +proto.viam.service.worldstatestore.v1.StreamTransformChangesRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 99: + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setExtra(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.viam.service.worldstatestore.v1.StreamTransformChangesRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.viam.service.worldstatestore.v1.StreamTransformChangesRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.viam.service.worldstatestore.v1.StreamTransformChangesRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.viam.service.worldstatestore.v1.StreamTransformChangesRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getExtra(); + if (f != null) { + writer.writeMessage( + 99, + f, + google_protobuf_struct_pb.Struct.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string name = 1; + * @return {string} + */ +proto.viam.service.worldstatestore.v1.StreamTransformChangesRequest.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.viam.service.worldstatestore.v1.StreamTransformChangesRequest} returns this + */ +proto.viam.service.worldstatestore.v1.StreamTransformChangesRequest.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional google.protobuf.Struct extra = 99; + * @return {?proto.google.protobuf.Struct} + */ +proto.viam.service.worldstatestore.v1.StreamTransformChangesRequest.prototype.getExtra = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 99)); +}; + + +/** + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.viam.service.worldstatestore.v1.StreamTransformChangesRequest} returns this +*/ +proto.viam.service.worldstatestore.v1.StreamTransformChangesRequest.prototype.setExtra = function(value) { + return jspb.Message.setWrapperField(this, 99, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.viam.service.worldstatestore.v1.StreamTransformChangesRequest} returns this + */ +proto.viam.service.worldstatestore.v1.StreamTransformChangesRequest.prototype.clearExtra = function() { + return this.setExtra(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.viam.service.worldstatestore.v1.StreamTransformChangesRequest.prototype.hasExtra = function() { + return jspb.Message.getField(this, 99) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.viam.service.worldstatestore.v1.StreamTransformChangesResponse.prototype.toObject = function(opt_includeInstance) { + return proto.viam.service.worldstatestore.v1.StreamTransformChangesResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.viam.service.worldstatestore.v1.StreamTransformChangesResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.viam.service.worldstatestore.v1.StreamTransformChangesResponse.toObject = function(includeInstance, msg) { + var f, obj = { + changeType: jspb.Message.getFieldWithDefault(msg, 1, 0), + transform: (f = msg.getTransform()) && common_v1_common_pb.Transform.toObject(includeInstance, f), + updatedFields: (f = msg.getUpdatedFields()) && google_protobuf_field_mask_pb.FieldMask.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.viam.service.worldstatestore.v1.StreamTransformChangesResponse} + */ +proto.viam.service.worldstatestore.v1.StreamTransformChangesResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.viam.service.worldstatestore.v1.StreamTransformChangesResponse; + return proto.viam.service.worldstatestore.v1.StreamTransformChangesResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.viam.service.worldstatestore.v1.StreamTransformChangesResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.viam.service.worldstatestore.v1.StreamTransformChangesResponse} + */ +proto.viam.service.worldstatestore.v1.StreamTransformChangesResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {!proto.viam.service.worldstatestore.v1.TransformChangeType} */ (reader.readEnum()); + msg.setChangeType(value); + break; + case 2: + var value = new common_v1_common_pb.Transform; + reader.readMessage(value,common_v1_common_pb.Transform.deserializeBinaryFromReader); + msg.setTransform(value); + break; + case 3: + var value = new google_protobuf_field_mask_pb.FieldMask; + reader.readMessage(value,google_protobuf_field_mask_pb.FieldMask.deserializeBinaryFromReader); + msg.setUpdatedFields(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.viam.service.worldstatestore.v1.StreamTransformChangesResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.viam.service.worldstatestore.v1.StreamTransformChangesResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.viam.service.worldstatestore.v1.StreamTransformChangesResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.viam.service.worldstatestore.v1.StreamTransformChangesResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getChangeType(); + if (f !== 0.0) { + writer.writeEnum( + 1, + f + ); + } + f = message.getTransform(); + if (f != null) { + writer.writeMessage( + 2, + f, + common_v1_common_pb.Transform.serializeBinaryToWriter + ); + } + f = message.getUpdatedFields(); + if (f != null) { + writer.writeMessage( + 3, + f, + google_protobuf_field_mask_pb.FieldMask.serializeBinaryToWriter + ); + } +}; + + +/** + * optional TransformChangeType change_type = 1; + * @return {!proto.viam.service.worldstatestore.v1.TransformChangeType} + */ +proto.viam.service.worldstatestore.v1.StreamTransformChangesResponse.prototype.getChangeType = function() { + return /** @type {!proto.viam.service.worldstatestore.v1.TransformChangeType} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {!proto.viam.service.worldstatestore.v1.TransformChangeType} value + * @return {!proto.viam.service.worldstatestore.v1.StreamTransformChangesResponse} returns this + */ +proto.viam.service.worldstatestore.v1.StreamTransformChangesResponse.prototype.setChangeType = function(value) { + return jspb.Message.setProto3EnumField(this, 1, value); +}; + + +/** + * optional viam.common.v1.Transform transform = 2; + * @return {?proto.viam.common.v1.Transform} + */ +proto.viam.service.worldstatestore.v1.StreamTransformChangesResponse.prototype.getTransform = function() { + return /** @type{?proto.viam.common.v1.Transform} */ ( + jspb.Message.getWrapperField(this, common_v1_common_pb.Transform, 2)); +}; + + +/** + * @param {?proto.viam.common.v1.Transform|undefined} value + * @return {!proto.viam.service.worldstatestore.v1.StreamTransformChangesResponse} returns this +*/ +proto.viam.service.worldstatestore.v1.StreamTransformChangesResponse.prototype.setTransform = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.viam.service.worldstatestore.v1.StreamTransformChangesResponse} returns this + */ +proto.viam.service.worldstatestore.v1.StreamTransformChangesResponse.prototype.clearTransform = function() { + return this.setTransform(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.viam.service.worldstatestore.v1.StreamTransformChangesResponse.prototype.hasTransform = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional google.protobuf.FieldMask updated_fields = 3; + * @return {?proto.google.protobuf.FieldMask} + */ +proto.viam.service.worldstatestore.v1.StreamTransformChangesResponse.prototype.getUpdatedFields = function() { + return /** @type{?proto.google.protobuf.FieldMask} */ ( + jspb.Message.getWrapperField(this, google_protobuf_field_mask_pb.FieldMask, 3)); +}; + + +/** + * @param {?proto.google.protobuf.FieldMask|undefined} value + * @return {!proto.viam.service.worldstatestore.v1.StreamTransformChangesResponse} returns this +*/ +proto.viam.service.worldstatestore.v1.StreamTransformChangesResponse.prototype.setUpdatedFields = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.viam.service.worldstatestore.v1.StreamTransformChangesResponse} returns this + */ +proto.viam.service.worldstatestore.v1.StreamTransformChangesResponse.prototype.clearUpdatedFields = function() { + return this.setUpdatedFields(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.viam.service.worldstatestore.v1.StreamTransformChangesResponse.prototype.hasUpdatedFields = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * @enum {number} + */ +proto.viam.service.worldstatestore.v1.TransformChangeType = { + TRANSFORM_CHANGE_TYPE_UNSPECIFIED: 0, + TRANSFORM_CHANGE_TYPE_ADDED: 1, + TRANSFORM_CHANGE_TYPE_REMOVED: 2, + TRANSFORM_CHANGE_TYPE_UPDATED: 3 +}; + +goog.object.extend(exports, proto.viam.service.worldstatestore.v1); diff --git a/gen/js/service/worldstatestore/v1/world_state_store_pb_service.d.ts b/gen/js/service/worldstatestore/v1/world_state_store_pb_service.d.ts new file mode 100644 index 000000000..4f54b5e55 --- /dev/null +++ b/gen/js/service/worldstatestore/v1/world_state_store_pb_service.d.ts @@ -0,0 +1,113 @@ +// package: viam.service.worldstatestore.v1 +// file: service/worldstatestore/v1/world_state_store.proto + +import * as service_worldstatestore_v1_world_state_store_pb from "../../../service/worldstatestore/v1/world_state_store_pb"; +import * as common_v1_common_pb from "../../../common/v1/common_pb"; +import {grpc} from "@improbable-eng/grpc-web"; + +type WorldStateStoreServiceListUUIDs = { + readonly methodName: string; + readonly service: typeof WorldStateStoreService; + readonly requestStream: false; + readonly responseStream: false; + readonly requestType: typeof service_worldstatestore_v1_world_state_store_pb.ListUUIDsRequest; + readonly responseType: typeof service_worldstatestore_v1_world_state_store_pb.ListUUIDsResponse; +}; + +type WorldStateStoreServiceGetTransform = { + readonly methodName: string; + readonly service: typeof WorldStateStoreService; + readonly requestStream: false; + readonly responseStream: false; + readonly requestType: typeof service_worldstatestore_v1_world_state_store_pb.GetTransformRequest; + readonly responseType: typeof service_worldstatestore_v1_world_state_store_pb.GetTransformResponse; +}; + +type WorldStateStoreServiceStreamTransformChanges = { + readonly methodName: string; + readonly service: typeof WorldStateStoreService; + readonly requestStream: false; + readonly responseStream: true; + readonly requestType: typeof service_worldstatestore_v1_world_state_store_pb.StreamTransformChangesRequest; + readonly responseType: typeof service_worldstatestore_v1_world_state_store_pb.StreamTransformChangesResponse; +}; + +type WorldStateStoreServiceDoCommand = { + readonly methodName: string; + readonly service: typeof WorldStateStoreService; + readonly requestStream: false; + readonly responseStream: false; + readonly requestType: typeof common_v1_common_pb.DoCommandRequest; + readonly responseType: typeof common_v1_common_pb.DoCommandResponse; +}; + +export class WorldStateStoreService { + static readonly serviceName: string; + static readonly ListUUIDs: WorldStateStoreServiceListUUIDs; + static readonly GetTransform: WorldStateStoreServiceGetTransform; + static readonly StreamTransformChanges: WorldStateStoreServiceStreamTransformChanges; + static readonly DoCommand: WorldStateStoreServiceDoCommand; +} + +export type ServiceError = { message: string, code: number; metadata: grpc.Metadata } +export type Status = { details: string, code: number; metadata: grpc.Metadata } + +interface UnaryResponse { + cancel(): void; +} +interface ResponseStream { + cancel(): void; + on(type: 'data', handler: (message: T) => void): ResponseStream; + on(type: 'end', handler: (status?: Status) => void): ResponseStream; + on(type: 'status', handler: (status: Status) => void): ResponseStream; +} +interface RequestStream { + write(message: T): RequestStream; + end(): void; + cancel(): void; + on(type: 'end', handler: (status?: Status) => void): RequestStream; + on(type: 'status', handler: (status: Status) => void): RequestStream; +} +interface BidirectionalStream { + write(message: ReqT): BidirectionalStream; + end(): void; + cancel(): void; + on(type: 'data', handler: (message: ResT) => void): BidirectionalStream; + on(type: 'end', handler: (status?: Status) => void): BidirectionalStream; + on(type: 'status', handler: (status: Status) => void): BidirectionalStream; +} + +export class WorldStateStoreServiceClient { + readonly serviceHost: string; + + constructor(serviceHost: string, options?: grpc.RpcOptions); + listUUIDs( + requestMessage: service_worldstatestore_v1_world_state_store_pb.ListUUIDsRequest, + metadata: grpc.Metadata, + callback: (error: ServiceError|null, responseMessage: service_worldstatestore_v1_world_state_store_pb.ListUUIDsResponse|null) => void + ): UnaryResponse; + listUUIDs( + requestMessage: service_worldstatestore_v1_world_state_store_pb.ListUUIDsRequest, + callback: (error: ServiceError|null, responseMessage: service_worldstatestore_v1_world_state_store_pb.ListUUIDsResponse|null) => void + ): UnaryResponse; + getTransform( + requestMessage: service_worldstatestore_v1_world_state_store_pb.GetTransformRequest, + metadata: grpc.Metadata, + callback: (error: ServiceError|null, responseMessage: service_worldstatestore_v1_world_state_store_pb.GetTransformResponse|null) => void + ): UnaryResponse; + getTransform( + requestMessage: service_worldstatestore_v1_world_state_store_pb.GetTransformRequest, + callback: (error: ServiceError|null, responseMessage: service_worldstatestore_v1_world_state_store_pb.GetTransformResponse|null) => void + ): UnaryResponse; + streamTransformChanges(requestMessage: service_worldstatestore_v1_world_state_store_pb.StreamTransformChangesRequest, metadata?: grpc.Metadata): ResponseStream; + doCommand( + requestMessage: common_v1_common_pb.DoCommandRequest, + metadata: grpc.Metadata, + callback: (error: ServiceError|null, responseMessage: common_v1_common_pb.DoCommandResponse|null) => void + ): UnaryResponse; + doCommand( + requestMessage: common_v1_common_pb.DoCommandRequest, + callback: (error: ServiceError|null, responseMessage: common_v1_common_pb.DoCommandResponse|null) => void + ): UnaryResponse; +} + diff --git a/gen/js/service/worldstatestore/v1/world_state_store_pb_service.js b/gen/js/service/worldstatestore/v1/world_state_store_pb_service.js new file mode 100644 index 000000000..af9b6b4da --- /dev/null +++ b/gen/js/service/worldstatestore/v1/world_state_store_pb_service.js @@ -0,0 +1,190 @@ +// package: viam.service.worldstatestore.v1 +// file: service/worldstatestore/v1/world_state_store.proto + +var service_worldstatestore_v1_world_state_store_pb = require("../../../service/worldstatestore/v1/world_state_store_pb"); +var common_v1_common_pb = require("../../../common/v1/common_pb"); +var grpc = require("@improbable-eng/grpc-web").grpc; + +var WorldStateStoreService = (function () { + function WorldStateStoreService() {} + WorldStateStoreService.serviceName = "viam.service.worldstatestore.v1.WorldStateStoreService"; + return WorldStateStoreService; +}()); + +WorldStateStoreService.ListUUIDs = { + methodName: "ListUUIDs", + service: WorldStateStoreService, + requestStream: false, + responseStream: false, + requestType: service_worldstatestore_v1_world_state_store_pb.ListUUIDsRequest, + responseType: service_worldstatestore_v1_world_state_store_pb.ListUUIDsResponse +}; + +WorldStateStoreService.GetTransform = { + methodName: "GetTransform", + service: WorldStateStoreService, + requestStream: false, + responseStream: false, + requestType: service_worldstatestore_v1_world_state_store_pb.GetTransformRequest, + responseType: service_worldstatestore_v1_world_state_store_pb.GetTransformResponse +}; + +WorldStateStoreService.StreamTransformChanges = { + methodName: "StreamTransformChanges", + service: WorldStateStoreService, + requestStream: false, + responseStream: true, + requestType: service_worldstatestore_v1_world_state_store_pb.StreamTransformChangesRequest, + responseType: service_worldstatestore_v1_world_state_store_pb.StreamTransformChangesResponse +}; + +WorldStateStoreService.DoCommand = { + methodName: "DoCommand", + service: WorldStateStoreService, + requestStream: false, + responseStream: false, + requestType: common_v1_common_pb.DoCommandRequest, + responseType: common_v1_common_pb.DoCommandResponse +}; + +exports.WorldStateStoreService = WorldStateStoreService; + +function WorldStateStoreServiceClient(serviceHost, options) { + this.serviceHost = serviceHost; + this.options = options || {}; +} + +WorldStateStoreServiceClient.prototype.listUUIDs = function listUUIDs(requestMessage, metadata, callback) { + if (arguments.length === 2) { + callback = arguments[1]; + } + var client = grpc.unary(WorldStateStoreService.ListUUIDs, { + request: requestMessage, + host: this.serviceHost, + metadata: metadata, + transport: this.options.transport, + debug: this.options.debug, + onEnd: function (response) { + if (callback) { + if (response.status !== grpc.Code.OK) { + var err = new Error(response.statusMessage); + err.code = response.status; + err.metadata = response.trailers; + callback(err, null); + } else { + callback(null, response.message); + } + } + } + }); + return { + cancel: function () { + callback = null; + client.close(); + } + }; +}; + +WorldStateStoreServiceClient.prototype.getTransform = function getTransform(requestMessage, metadata, callback) { + if (arguments.length === 2) { + callback = arguments[1]; + } + var client = grpc.unary(WorldStateStoreService.GetTransform, { + request: requestMessage, + host: this.serviceHost, + metadata: metadata, + transport: this.options.transport, + debug: this.options.debug, + onEnd: function (response) { + if (callback) { + if (response.status !== grpc.Code.OK) { + var err = new Error(response.statusMessage); + err.code = response.status; + err.metadata = response.trailers; + callback(err, null); + } else { + callback(null, response.message); + } + } + } + }); + return { + cancel: function () { + callback = null; + client.close(); + } + }; +}; + +WorldStateStoreServiceClient.prototype.streamTransformChanges = function streamTransformChanges(requestMessage, metadata) { + var listeners = { + data: [], + end: [], + status: [] + }; + var client = grpc.invoke(WorldStateStoreService.StreamTransformChanges, { + request: requestMessage, + host: this.serviceHost, + metadata: metadata, + transport: this.options.transport, + debug: this.options.debug, + onMessage: function (responseMessage) { + listeners.data.forEach(function (handler) { + handler(responseMessage); + }); + }, + onEnd: function (status, statusMessage, trailers) { + listeners.status.forEach(function (handler) { + handler({ code: status, details: statusMessage, metadata: trailers }); + }); + listeners.end.forEach(function (handler) { + handler({ code: status, details: statusMessage, metadata: trailers }); + }); + listeners = null; + } + }); + return { + on: function (type, handler) { + listeners[type].push(handler); + return this; + }, + cancel: function () { + listeners = null; + client.close(); + } + }; +}; + +WorldStateStoreServiceClient.prototype.doCommand = function doCommand(requestMessage, metadata, callback) { + if (arguments.length === 2) { + callback = arguments[1]; + } + var client = grpc.unary(WorldStateStoreService.DoCommand, { + request: requestMessage, + host: this.serviceHost, + metadata: metadata, + transport: this.options.transport, + debug: this.options.debug, + onEnd: function (response) { + if (callback) { + if (response.status !== grpc.Code.OK) { + var err = new Error(response.statusMessage); + err.code = response.status; + err.metadata = response.trailers; + callback(err, null); + } else { + callback(null, response.message); + } + } + } + }); + return { + cancel: function () { + callback = null; + client.close(); + } + }; +}; + +exports.WorldStateStoreServiceClient = WorldStateStoreServiceClient; + diff --git a/proto/viam/common/v1/common.proto b/proto/viam/common/v1/common.proto index 4d910715f..2bc0830fe 100644 --- a/proto/viam/common/v1/common.proto +++ b/proto/viam/common/v1/common.proto @@ -89,6 +89,10 @@ message Mesh { bytes mesh = 2; } +message PointCloud { + bytes point_cloud = 1; +} + // Geometry contains the dimensions of a given geometry and the pose of its center. The geometry is one of either a sphere or a box. message Geometry { // Pose of a geometries center point @@ -99,6 +103,7 @@ message Geometry { RectangularPrism box = 3; Capsule capsule = 5; Mesh mesh = 6; + PointCloud pointcloud = 7; } // Label of the geometry. If none supplied, will be an empty string. string label = 4; @@ -144,6 +149,10 @@ message Transform { // the pose of the above reference frame with respect to a different observer reference frame PoseInFrame pose_in_observer_frame = 2; optional Geometry physical_object = 3; + // The UUID of the transform + bytes uuid = 4; + // Can hold information like color, opacity, points colors, collision_allowed, etc... + optional google.protobuf.Struct metadata = 5; } // WorldState contains information about the physical environment around a given robot. All of the fields within this message are optional, diff --git a/proto/viam/service/worldstatestore/v1/world_state_store.proto b/proto/viam/service/worldstatestore/v1/world_state_store.proto new file mode 100644 index 000000000..5fd3022ea --- /dev/null +++ b/proto/viam/service/worldstatestore/v1/world_state_store.proto @@ -0,0 +1,80 @@ +syntax = "proto3"; + +package viam.service.worldstatestore.v1; + +import "common/v1/common.proto"; +import "google/api/annotations.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/struct.proto"; + +option go_package = "go.viam.com/api/service/worldstatestore/v1"; +option java_package = "com.viam.service.worldstatestore.v1"; + +service WorldStateStoreService { + // ListUUIDs returns all world state transform UUIDs + rpc ListUUIDs(ListUUIDsRequest) returns (ListUUIDsResponse) {} + + // GetTransform returns a world state transform by uuid + rpc GetTransform(GetTransformRequest) returns (GetTransformResponse) {} + + // StreamTransformChanges streams changes to world state transforms + rpc StreamTransformChanges(StreamTransformChangesRequest) returns (stream StreamTransformChangesResponse) { + option (google.api.http) = {get: "/viam/api/v1/service/worldstatestore/{name}/stream_transform_changes"}; + } + + // DoCommand sends/receives arbitrary commands + rpc DoCommand(common.v1.DoCommandRequest) returns (common.v1.DoCommandResponse) { + option (google.api.http) = {post: "/viam/api/v1/service/worldstatestore/{name}/do_command"}; + } +} + +message ListUUIDsRequest { + // Name of the world object store service + string name = 1; + + // Additional arguments to the method + google.protobuf.Struct extra = 99; +} + +message ListUUIDsResponse { + repeated bytes uuids = 1; +} + +message GetTransformRequest { + // Name of the world object store service + string name = 1; + + bytes uuid = 2; + + // Additional arguments to the method + google.protobuf.Struct extra = 99; +} + +message GetTransformResponse { + common.v1.Transform transform = 2; +} + +enum TransformChangeType { + TRANSFORM_CHANGE_TYPE_UNSPECIFIED = 0; + TRANSFORM_CHANGE_TYPE_ADDED = 1; + TRANSFORM_CHANGE_TYPE_REMOVED = 2; + TRANSFORM_CHANGE_TYPE_UPDATED = 3; +} + +message StreamTransformChangesRequest { + // Name of the world object store service + string name = 1; + + // Additional arguments to the method + google.protobuf.Struct extra = 99; +} + +message StreamTransformChangesResponse { + TransformChangeType change_type = 1; + common.v1.Transform transform = 2; + + // The field mask of the transform that has changed, if any. For added transforms, this will be empty. For updated + // transforms, this will be the fields that have changed. For removed transforms, this will be the transform's UUID + // path. + google.protobuf.FieldMask updated_fields = 3; +} diff --git a/service/worldstatestore/v1/world_state_store.pb.go b/service/worldstatestore/v1/world_state_store.pb.go new file mode 100644 index 000000000..1883d3679 --- /dev/null +++ b/service/worldstatestore/v1/world_state_store.pb.go @@ -0,0 +1,598 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.35.1 +// protoc (unknown) +// source: service/worldstatestore/v1/world_state_store.proto + +package v1 + +import ( + v1 "go.viam.com/api/common/v1" + _ "google.golang.org/genproto/googleapis/api/annotations" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" + structpb "google.golang.org/protobuf/types/known/structpb" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type TransformChangeType int32 + +const ( + TransformChangeType_TRANSFORM_CHANGE_TYPE_UNSPECIFIED TransformChangeType = 0 + TransformChangeType_TRANSFORM_CHANGE_TYPE_ADDED TransformChangeType = 1 + TransformChangeType_TRANSFORM_CHANGE_TYPE_REMOVED TransformChangeType = 2 + TransformChangeType_TRANSFORM_CHANGE_TYPE_UPDATED TransformChangeType = 3 +) + +// Enum value maps for TransformChangeType. +var ( + TransformChangeType_name = map[int32]string{ + 0: "TRANSFORM_CHANGE_TYPE_UNSPECIFIED", + 1: "TRANSFORM_CHANGE_TYPE_ADDED", + 2: "TRANSFORM_CHANGE_TYPE_REMOVED", + 3: "TRANSFORM_CHANGE_TYPE_UPDATED", + } + TransformChangeType_value = map[string]int32{ + "TRANSFORM_CHANGE_TYPE_UNSPECIFIED": 0, + "TRANSFORM_CHANGE_TYPE_ADDED": 1, + "TRANSFORM_CHANGE_TYPE_REMOVED": 2, + "TRANSFORM_CHANGE_TYPE_UPDATED": 3, + } +) + +func (x TransformChangeType) Enum() *TransformChangeType { + p := new(TransformChangeType) + *p = x + return p +} + +func (x TransformChangeType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (TransformChangeType) Descriptor() protoreflect.EnumDescriptor { + return file_service_worldstatestore_v1_world_state_store_proto_enumTypes[0].Descriptor() +} + +func (TransformChangeType) Type() protoreflect.EnumType { + return &file_service_worldstatestore_v1_world_state_store_proto_enumTypes[0] +} + +func (x TransformChangeType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use TransformChangeType.Descriptor instead. +func (TransformChangeType) EnumDescriptor() ([]byte, []int) { + return file_service_worldstatestore_v1_world_state_store_proto_rawDescGZIP(), []int{0} +} + +type ListUUIDsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Name of the world object store service + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Additional arguments to the method + Extra *structpb.Struct `protobuf:"bytes,99,opt,name=extra,proto3" json:"extra,omitempty"` +} + +func (x *ListUUIDsRequest) Reset() { + *x = ListUUIDsRequest{} + mi := &file_service_worldstatestore_v1_world_state_store_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListUUIDsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListUUIDsRequest) ProtoMessage() {} + +func (x *ListUUIDsRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_worldstatestore_v1_world_state_store_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListUUIDsRequest.ProtoReflect.Descriptor instead. +func (*ListUUIDsRequest) Descriptor() ([]byte, []int) { + return file_service_worldstatestore_v1_world_state_store_proto_rawDescGZIP(), []int{0} +} + +func (x *ListUUIDsRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *ListUUIDsRequest) GetExtra() *structpb.Struct { + if x != nil { + return x.Extra + } + return nil +} + +type ListUUIDsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Uuids [][]byte `protobuf:"bytes,1,rep,name=uuids,proto3" json:"uuids,omitempty"` +} + +func (x *ListUUIDsResponse) Reset() { + *x = ListUUIDsResponse{} + mi := &file_service_worldstatestore_v1_world_state_store_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListUUIDsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListUUIDsResponse) ProtoMessage() {} + +func (x *ListUUIDsResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_worldstatestore_v1_world_state_store_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListUUIDsResponse.ProtoReflect.Descriptor instead. +func (*ListUUIDsResponse) Descriptor() ([]byte, []int) { + return file_service_worldstatestore_v1_world_state_store_proto_rawDescGZIP(), []int{1} +} + +func (x *ListUUIDsResponse) GetUuids() [][]byte { + if x != nil { + return x.Uuids + } + return nil +} + +type GetTransformRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Name of the world object store service + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Uuid []byte `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"` + // Additional arguments to the method + Extra *structpb.Struct `protobuf:"bytes,99,opt,name=extra,proto3" json:"extra,omitempty"` +} + +func (x *GetTransformRequest) Reset() { + *x = GetTransformRequest{} + mi := &file_service_worldstatestore_v1_world_state_store_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetTransformRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetTransformRequest) ProtoMessage() {} + +func (x *GetTransformRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_worldstatestore_v1_world_state_store_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetTransformRequest.ProtoReflect.Descriptor instead. +func (*GetTransformRequest) Descriptor() ([]byte, []int) { + return file_service_worldstatestore_v1_world_state_store_proto_rawDescGZIP(), []int{2} +} + +func (x *GetTransformRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *GetTransformRequest) GetUuid() []byte { + if x != nil { + return x.Uuid + } + return nil +} + +func (x *GetTransformRequest) GetExtra() *structpb.Struct { + if x != nil { + return x.Extra + } + return nil +} + +type GetTransformResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Transform *v1.Transform `protobuf:"bytes,2,opt,name=transform,proto3" json:"transform,omitempty"` +} + +func (x *GetTransformResponse) Reset() { + *x = GetTransformResponse{} + mi := &file_service_worldstatestore_v1_world_state_store_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetTransformResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetTransformResponse) ProtoMessage() {} + +func (x *GetTransformResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_worldstatestore_v1_world_state_store_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetTransformResponse.ProtoReflect.Descriptor instead. +func (*GetTransformResponse) Descriptor() ([]byte, []int) { + return file_service_worldstatestore_v1_world_state_store_proto_rawDescGZIP(), []int{3} +} + +func (x *GetTransformResponse) GetTransform() *v1.Transform { + if x != nil { + return x.Transform + } + return nil +} + +type StreamTransformChangesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Name of the world object store service + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Additional arguments to the method + Extra *structpb.Struct `protobuf:"bytes,99,opt,name=extra,proto3" json:"extra,omitempty"` +} + +func (x *StreamTransformChangesRequest) Reset() { + *x = StreamTransformChangesRequest{} + mi := &file_service_worldstatestore_v1_world_state_store_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StreamTransformChangesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StreamTransformChangesRequest) ProtoMessage() {} + +func (x *StreamTransformChangesRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_worldstatestore_v1_world_state_store_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StreamTransformChangesRequest.ProtoReflect.Descriptor instead. +func (*StreamTransformChangesRequest) Descriptor() ([]byte, []int) { + return file_service_worldstatestore_v1_world_state_store_proto_rawDescGZIP(), []int{4} +} + +func (x *StreamTransformChangesRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *StreamTransformChangesRequest) GetExtra() *structpb.Struct { + if x != nil { + return x.Extra + } + return nil +} + +type StreamTransformChangesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ChangeType TransformChangeType `protobuf:"varint,1,opt,name=change_type,json=changeType,proto3,enum=viam.service.worldstatestore.v1.TransformChangeType" json:"change_type,omitempty"` + Transform *v1.Transform `protobuf:"bytes,2,opt,name=transform,proto3" json:"transform,omitempty"` + // The field mask of the transform that has changed, if any. For added transforms, this will be empty. For updated + // transforms, this will be the fields that have changed. For removed transforms, this will be the transform's UUID + // path. + UpdatedFields *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=updated_fields,json=updatedFields,proto3" json:"updated_fields,omitempty"` +} + +func (x *StreamTransformChangesResponse) Reset() { + *x = StreamTransformChangesResponse{} + mi := &file_service_worldstatestore_v1_world_state_store_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StreamTransformChangesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StreamTransformChangesResponse) ProtoMessage() {} + +func (x *StreamTransformChangesResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_worldstatestore_v1_world_state_store_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StreamTransformChangesResponse.ProtoReflect.Descriptor instead. +func (*StreamTransformChangesResponse) Descriptor() ([]byte, []int) { + return file_service_worldstatestore_v1_world_state_store_proto_rawDescGZIP(), []int{5} +} + +func (x *StreamTransformChangesResponse) GetChangeType() TransformChangeType { + if x != nil { + return x.ChangeType + } + return TransformChangeType_TRANSFORM_CHANGE_TYPE_UNSPECIFIED +} + +func (x *StreamTransformChangesResponse) GetTransform() *v1.Transform { + if x != nil { + return x.Transform + } + return nil +} + +func (x *StreamTransformChangesResponse) GetUpdatedFields() *fieldmaskpb.FieldMask { + if x != nil { + return x.UpdatedFields + } + return nil +} + +var File_service_worldstatestore_v1_world_state_store_proto protoreflect.FileDescriptor + +var file_service_worldstatestore_v1_world_state_store_proto_rawDesc = []byte{ + 0x0a, 0x32, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x73, + 0x74, 0x61, 0x74, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x6f, 0x72, + 0x6c, 0x64, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1f, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x2e, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x73, 0x74, 0x61, 0x74, 0x65, 0x73, 0x74, 0x6f, + 0x72, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x16, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x76, 0x31, + 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66, 0x69, 0x65, + 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, + 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x55, 0x0a, 0x10, 0x4c, + 0x69, 0x73, 0x74, 0x55, 0x55, 0x49, 0x44, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x18, 0x63, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x05, 0x65, 0x78, 0x74, + 0x72, 0x61, 0x22, 0x29, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x55, 0x49, 0x44, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x75, 0x75, 0x69, 0x64, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x05, 0x75, 0x75, 0x69, 0x64, 0x73, 0x22, 0x6c, 0x0a, + 0x13, 0x47, 0x65, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x12, 0x2d, 0x0a, 0x05, + 0x65, 0x78, 0x74, 0x72, 0x61, 0x18, 0x63, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, + 0x72, 0x75, 0x63, 0x74, 0x52, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x22, 0x4f, 0x0a, 0x14, 0x47, + 0x65, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, + 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, + 0x6d, 0x52, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x22, 0x62, 0x0a, 0x1d, + 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x43, + 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x2d, 0x0a, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x18, 0x63, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, + 0x22, 0xf3, 0x01, 0x0a, 0x1e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x54, 0x72, 0x61, 0x6e, 0x73, + 0x66, 0x6f, 0x72, 0x6d, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x73, 0x74, 0x61, + 0x74, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, + 0x66, 0x6f, 0x72, 0x6d, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, + 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x37, 0x0a, 0x09, 0x74, 0x72, + 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, + 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, + 0x6f, 0x72, 0x6d, 0x12, 0x41, 0x0a, 0x0e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, + 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, + 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0d, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, + 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x2a, 0xa3, 0x01, 0x0a, 0x13, 0x54, 0x72, 0x61, 0x6e, 0x73, + 0x66, 0x6f, 0x72, 0x6d, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x25, + 0x0a, 0x21, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x4f, 0x52, 0x4d, 0x5f, 0x43, 0x48, 0x41, 0x4e, + 0x47, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, + 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1f, 0x0a, 0x1b, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x4f, + 0x52, 0x4d, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, + 0x44, 0x44, 0x45, 0x44, 0x10, 0x01, 0x12, 0x21, 0x0a, 0x1d, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, + 0x4f, 0x52, 0x4d, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x52, 0x45, 0x4d, 0x4f, 0x56, 0x45, 0x44, 0x10, 0x02, 0x12, 0x21, 0x0a, 0x1d, 0x54, 0x52, 0x41, + 0x4e, 0x53, 0x46, 0x4f, 0x52, 0x4d, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x5f, 0x54, 0x59, + 0x50, 0x45, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x44, 0x10, 0x03, 0x32, 0x8c, 0x05, 0x0a, + 0x16, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x65, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x74, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x55, + 0x55, 0x49, 0x44, 0x73, 0x12, 0x31, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x2e, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x73, 0x74, 0x61, 0x74, 0x65, 0x73, 0x74, + 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x55, 0x49, 0x44, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x73, 0x74, 0x61, 0x74, + 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x55, + 0x49, 0x44, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x7d, 0x0a, + 0x0c, 0x47, 0x65, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x34, 0x2e, + 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x77, 0x6f, 0x72, + 0x6c, 0x64, 0x73, 0x74, 0x61, 0x74, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x47, 0x65, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x2e, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x73, 0x74, 0x61, 0x74, 0x65, 0x73, 0x74, 0x6f, + 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, + 0x72, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0xe9, 0x01, 0x0a, + 0x16, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, + 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x12, 0x3e, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x73, 0x74, 0x61, 0x74, + 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, + 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3f, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x73, 0x74, 0x61, 0x74, + 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, + 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x46, + 0x12, 0x44, 0x2f, 0x76, 0x69, 0x61, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x73, 0x74, 0x61, 0x74, + 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x73, 0x74, + 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x5f, 0x63, + 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x30, 0x01, 0x12, 0x90, 0x01, 0x0a, 0x09, 0x44, 0x6f, 0x43, + 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x20, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, + 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, + 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, + 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x43, 0x6f, 0x6d, 0x6d, + 0x61, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3e, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x38, 0x22, 0x36, 0x2f, 0x76, 0x69, 0x61, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, + 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x73, + 0x74, 0x61, 0x74, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x7d, + 0x2f, 0x64, 0x6f, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x42, 0x51, 0x0a, 0x23, 0x63, + 0x6f, 0x6d, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, + 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x73, 0x74, 0x61, 0x74, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, + 0x76, 0x31, 0x5a, 0x2a, 0x67, 0x6f, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, + 0x61, 0x70, 0x69, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x77, 0x6f, 0x72, 0x6c, + 0x64, 0x73, 0x74, 0x61, 0x74, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_service_worldstatestore_v1_world_state_store_proto_rawDescOnce sync.Once + file_service_worldstatestore_v1_world_state_store_proto_rawDescData = file_service_worldstatestore_v1_world_state_store_proto_rawDesc +) + +func file_service_worldstatestore_v1_world_state_store_proto_rawDescGZIP() []byte { + file_service_worldstatestore_v1_world_state_store_proto_rawDescOnce.Do(func() { + file_service_worldstatestore_v1_world_state_store_proto_rawDescData = protoimpl.X.CompressGZIP(file_service_worldstatestore_v1_world_state_store_proto_rawDescData) + }) + return file_service_worldstatestore_v1_world_state_store_proto_rawDescData +} + +var file_service_worldstatestore_v1_world_state_store_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_service_worldstatestore_v1_world_state_store_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_service_worldstatestore_v1_world_state_store_proto_goTypes = []any{ + (TransformChangeType)(0), // 0: viam.service.worldstatestore.v1.TransformChangeType + (*ListUUIDsRequest)(nil), // 1: viam.service.worldstatestore.v1.ListUUIDsRequest + (*ListUUIDsResponse)(nil), // 2: viam.service.worldstatestore.v1.ListUUIDsResponse + (*GetTransformRequest)(nil), // 3: viam.service.worldstatestore.v1.GetTransformRequest + (*GetTransformResponse)(nil), // 4: viam.service.worldstatestore.v1.GetTransformResponse + (*StreamTransformChangesRequest)(nil), // 5: viam.service.worldstatestore.v1.StreamTransformChangesRequest + (*StreamTransformChangesResponse)(nil), // 6: viam.service.worldstatestore.v1.StreamTransformChangesResponse + (*structpb.Struct)(nil), // 7: google.protobuf.Struct + (*v1.Transform)(nil), // 8: viam.common.v1.Transform + (*fieldmaskpb.FieldMask)(nil), // 9: google.protobuf.FieldMask + (*v1.DoCommandRequest)(nil), // 10: viam.common.v1.DoCommandRequest + (*v1.DoCommandResponse)(nil), // 11: viam.common.v1.DoCommandResponse +} +var file_service_worldstatestore_v1_world_state_store_proto_depIdxs = []int32{ + 7, // 0: viam.service.worldstatestore.v1.ListUUIDsRequest.extra:type_name -> google.protobuf.Struct + 7, // 1: viam.service.worldstatestore.v1.GetTransformRequest.extra:type_name -> google.protobuf.Struct + 8, // 2: viam.service.worldstatestore.v1.GetTransformResponse.transform:type_name -> viam.common.v1.Transform + 7, // 3: viam.service.worldstatestore.v1.StreamTransformChangesRequest.extra:type_name -> google.protobuf.Struct + 0, // 4: viam.service.worldstatestore.v1.StreamTransformChangesResponse.change_type:type_name -> viam.service.worldstatestore.v1.TransformChangeType + 8, // 5: viam.service.worldstatestore.v1.StreamTransformChangesResponse.transform:type_name -> viam.common.v1.Transform + 9, // 6: viam.service.worldstatestore.v1.StreamTransformChangesResponse.updated_fields:type_name -> google.protobuf.FieldMask + 1, // 7: viam.service.worldstatestore.v1.WorldStateStoreService.ListUUIDs:input_type -> viam.service.worldstatestore.v1.ListUUIDsRequest + 3, // 8: viam.service.worldstatestore.v1.WorldStateStoreService.GetTransform:input_type -> viam.service.worldstatestore.v1.GetTransformRequest + 5, // 9: viam.service.worldstatestore.v1.WorldStateStoreService.StreamTransformChanges:input_type -> viam.service.worldstatestore.v1.StreamTransformChangesRequest + 10, // 10: viam.service.worldstatestore.v1.WorldStateStoreService.DoCommand:input_type -> viam.common.v1.DoCommandRequest + 2, // 11: viam.service.worldstatestore.v1.WorldStateStoreService.ListUUIDs:output_type -> viam.service.worldstatestore.v1.ListUUIDsResponse + 4, // 12: viam.service.worldstatestore.v1.WorldStateStoreService.GetTransform:output_type -> viam.service.worldstatestore.v1.GetTransformResponse + 6, // 13: viam.service.worldstatestore.v1.WorldStateStoreService.StreamTransformChanges:output_type -> viam.service.worldstatestore.v1.StreamTransformChangesResponse + 11, // 14: viam.service.worldstatestore.v1.WorldStateStoreService.DoCommand:output_type -> viam.common.v1.DoCommandResponse + 11, // [11:15] is the sub-list for method output_type + 7, // [7:11] is the sub-list for method input_type + 7, // [7:7] is the sub-list for extension type_name + 7, // [7:7] is the sub-list for extension extendee + 0, // [0:7] is the sub-list for field type_name +} + +func init() { file_service_worldstatestore_v1_world_state_store_proto_init() } +func file_service_worldstatestore_v1_world_state_store_proto_init() { + if File_service_worldstatestore_v1_world_state_store_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_service_worldstatestore_v1_world_state_store_proto_rawDesc, + NumEnums: 1, + NumMessages: 6, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_service_worldstatestore_v1_world_state_store_proto_goTypes, + DependencyIndexes: file_service_worldstatestore_v1_world_state_store_proto_depIdxs, + EnumInfos: file_service_worldstatestore_v1_world_state_store_proto_enumTypes, + MessageInfos: file_service_worldstatestore_v1_world_state_store_proto_msgTypes, + }.Build() + File_service_worldstatestore_v1_world_state_store_proto = out.File + file_service_worldstatestore_v1_world_state_store_proto_rawDesc = nil + file_service_worldstatestore_v1_world_state_store_proto_goTypes = nil + file_service_worldstatestore_v1_world_state_store_proto_depIdxs = nil +} diff --git a/service/worldstatestore/v1/world_state_store.pb.gw.go b/service/worldstatestore/v1/world_state_store.pb.gw.go new file mode 100644 index 000000000..b1ec5e10c --- /dev/null +++ b/service/worldstatestore/v1/world_state_store.pb.gw.go @@ -0,0 +1,440 @@ +// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. +// source: service/worldstatestore/v1/world_state_store.proto + +/* +Package v1 is a reverse proxy. + +It translates gRPC into RESTful JSON APIs. +*/ +package v1 + +import ( + "context" + "io" + "net/http" + + "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" + "github.com/grpc-ecosystem/grpc-gateway/v2/utilities" + "go.viam.com/api/common/v1" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/metadata" + "google.golang.org/grpc/status" + "google.golang.org/protobuf/proto" +) + +// Suppress "imported and not used" errors +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join + +func request_WorldStateStoreService_ListUUIDs_0(ctx context.Context, marshaler runtime.Marshaler, client WorldStateStoreServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListUUIDsRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListUUIDs(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_WorldStateStoreService_ListUUIDs_0(ctx context.Context, marshaler runtime.Marshaler, server WorldStateStoreServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListUUIDsRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ListUUIDs(ctx, &protoReq) + return msg, metadata, err + +} + +func request_WorldStateStoreService_GetTransform_0(ctx context.Context, marshaler runtime.Marshaler, client WorldStateStoreServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetTransformRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetTransform(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_WorldStateStoreService_GetTransform_0(ctx context.Context, marshaler runtime.Marshaler, server WorldStateStoreServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetTransformRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.GetTransform(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_WorldStateStoreService_StreamTransformChanges_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} +) + +func request_WorldStateStoreService_StreamTransformChanges_0(ctx context.Context, marshaler runtime.Marshaler, client WorldStateStoreServiceClient, req *http.Request, pathParams map[string]string) (WorldStateStoreService_StreamTransformChangesClient, runtime.ServerMetadata, error) { + var protoReq StreamTransformChangesRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") + } + + protoReq.Name, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_WorldStateStoreService_StreamTransformChanges_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + stream, err := client.StreamTransformChanges(ctx, &protoReq) + if err != nil { + return nil, metadata, err + } + header, err := stream.Header() + if err != nil { + return nil, metadata, err + } + metadata.HeaderMD = header + return stream, metadata, nil + +} + +var ( + filter_WorldStateStoreService_DoCommand_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} +) + +func request_WorldStateStoreService_DoCommand_0(ctx context.Context, marshaler runtime.Marshaler, client WorldStateStoreServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq v1.DoCommandRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") + } + + protoReq.Name, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_WorldStateStoreService_DoCommand_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.DoCommand(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_WorldStateStoreService_DoCommand_0(ctx context.Context, marshaler runtime.Marshaler, server WorldStateStoreServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq v1.DoCommandRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") + } + + protoReq.Name, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_WorldStateStoreService_DoCommand_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.DoCommand(ctx, &protoReq) + return msg, metadata, err + +} + +// RegisterWorldStateStoreServiceHandlerServer registers the http handlers for service WorldStateStoreService to "mux". +// UnaryRPC :call WorldStateStoreServiceServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterWorldStateStoreServiceHandlerFromEndpoint instead. +func RegisterWorldStateStoreServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server WorldStateStoreServiceServer) error { + + mux.Handle("POST", pattern_WorldStateStoreService_ListUUIDs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/viam.service.worldstatestore.v1.WorldStateStoreService/ListUUIDs", runtime.WithHTTPPathPattern("/viam.service.worldstatestore.v1.WorldStateStoreService/ListUUIDs")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_WorldStateStoreService_ListUUIDs_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_WorldStateStoreService_ListUUIDs_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_WorldStateStoreService_GetTransform_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/viam.service.worldstatestore.v1.WorldStateStoreService/GetTransform", runtime.WithHTTPPathPattern("/viam.service.worldstatestore.v1.WorldStateStoreService/GetTransform")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_WorldStateStoreService_GetTransform_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_WorldStateStoreService_GetTransform_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_WorldStateStoreService_StreamTransformChanges_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport") + _, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + }) + + mux.Handle("POST", pattern_WorldStateStoreService_DoCommand_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/viam.service.worldstatestore.v1.WorldStateStoreService/DoCommand", runtime.WithHTTPPathPattern("/viam/api/v1/service/worldstatestore/{name}/do_command")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_WorldStateStoreService_DoCommand_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_WorldStateStoreService_DoCommand_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +// RegisterWorldStateStoreServiceHandlerFromEndpoint is same as RegisterWorldStateStoreServiceHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterWorldStateStoreServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.NewClient(endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterWorldStateStoreServiceHandler(ctx, mux, conn) +} + +// RegisterWorldStateStoreServiceHandler registers the http handlers for service WorldStateStoreService to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterWorldStateStoreServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterWorldStateStoreServiceHandlerClient(ctx, mux, NewWorldStateStoreServiceClient(conn)) +} + +// RegisterWorldStateStoreServiceHandlerClient registers the http handlers for service WorldStateStoreService +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "WorldStateStoreServiceClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "WorldStateStoreServiceClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "WorldStateStoreServiceClient" to call the correct interceptors. +func RegisterWorldStateStoreServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client WorldStateStoreServiceClient) error { + + mux.Handle("POST", pattern_WorldStateStoreService_ListUUIDs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/viam.service.worldstatestore.v1.WorldStateStoreService/ListUUIDs", runtime.WithHTTPPathPattern("/viam.service.worldstatestore.v1.WorldStateStoreService/ListUUIDs")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_WorldStateStoreService_ListUUIDs_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_WorldStateStoreService_ListUUIDs_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_WorldStateStoreService_GetTransform_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/viam.service.worldstatestore.v1.WorldStateStoreService/GetTransform", runtime.WithHTTPPathPattern("/viam.service.worldstatestore.v1.WorldStateStoreService/GetTransform")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_WorldStateStoreService_GetTransform_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_WorldStateStoreService_GetTransform_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_WorldStateStoreService_StreamTransformChanges_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/viam.service.worldstatestore.v1.WorldStateStoreService/StreamTransformChanges", runtime.WithHTTPPathPattern("/viam/api/v1/service/worldstatestore/{name}/stream_transform_changes")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_WorldStateStoreService_StreamTransformChanges_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_WorldStateStoreService_StreamTransformChanges_0(annotatedContext, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_WorldStateStoreService_DoCommand_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/viam.service.worldstatestore.v1.WorldStateStoreService/DoCommand", runtime.WithHTTPPathPattern("/viam/api/v1/service/worldstatestore/{name}/do_command")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_WorldStateStoreService_DoCommand_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_WorldStateStoreService_DoCommand_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_WorldStateStoreService_ListUUIDs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"viam.service.worldstatestore.v1.WorldStateStoreService", "ListUUIDs"}, "")) + + pattern_WorldStateStoreService_GetTransform_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"viam.service.worldstatestore.v1.WorldStateStoreService", "GetTransform"}, "")) + + pattern_WorldStateStoreService_StreamTransformChanges_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5, 2, 6}, []string{"viam", "api", "v1", "service", "worldstatestore", "name", "stream_transform_changes"}, "")) + + pattern_WorldStateStoreService_DoCommand_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5, 2, 6}, []string{"viam", "api", "v1", "service", "worldstatestore", "name", "do_command"}, "")) +) + +var ( + forward_WorldStateStoreService_ListUUIDs_0 = runtime.ForwardResponseMessage + + forward_WorldStateStoreService_GetTransform_0 = runtime.ForwardResponseMessage + + forward_WorldStateStoreService_StreamTransformChanges_0 = runtime.ForwardResponseStream + + forward_WorldStateStoreService_DoCommand_0 = runtime.ForwardResponseMessage +) diff --git a/service/worldstatestore/v1/world_state_store_grpc.pb.go b/service/worldstatestore/v1/world_state_store_grpc.pb.go new file mode 100644 index 000000000..45efeb323 --- /dev/null +++ b/service/worldstatestore/v1/world_state_store_grpc.pb.go @@ -0,0 +1,251 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.2.0 +// - protoc (unknown) +// source: service/worldstatestore/v1/world_state_store.proto + +package v1 + +import ( + context "context" + v1 "go.viam.com/api/common/v1" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// WorldStateStoreServiceClient is the client API for WorldStateStoreService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type WorldStateStoreServiceClient interface { + // ListUUIDs returns all world state transform UUIDs + ListUUIDs(ctx context.Context, in *ListUUIDsRequest, opts ...grpc.CallOption) (*ListUUIDsResponse, error) + // GetTransform returns a world state transform by uuid + GetTransform(ctx context.Context, in *GetTransformRequest, opts ...grpc.CallOption) (*GetTransformResponse, error) + // StreamTransformChanges streams changes to world state transforms + StreamTransformChanges(ctx context.Context, in *StreamTransformChangesRequest, opts ...grpc.CallOption) (WorldStateStoreService_StreamTransformChangesClient, error) + // DoCommand sends/receives arbitrary commands + DoCommand(ctx context.Context, in *v1.DoCommandRequest, opts ...grpc.CallOption) (*v1.DoCommandResponse, error) +} + +type worldStateStoreServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewWorldStateStoreServiceClient(cc grpc.ClientConnInterface) WorldStateStoreServiceClient { + return &worldStateStoreServiceClient{cc} +} + +func (c *worldStateStoreServiceClient) ListUUIDs(ctx context.Context, in *ListUUIDsRequest, opts ...grpc.CallOption) (*ListUUIDsResponse, error) { + out := new(ListUUIDsResponse) + err := c.cc.Invoke(ctx, "/viam.service.worldstatestore.v1.WorldStateStoreService/ListUUIDs", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *worldStateStoreServiceClient) GetTransform(ctx context.Context, in *GetTransformRequest, opts ...grpc.CallOption) (*GetTransformResponse, error) { + out := new(GetTransformResponse) + err := c.cc.Invoke(ctx, "/viam.service.worldstatestore.v1.WorldStateStoreService/GetTransform", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *worldStateStoreServiceClient) StreamTransformChanges(ctx context.Context, in *StreamTransformChangesRequest, opts ...grpc.CallOption) (WorldStateStoreService_StreamTransformChangesClient, error) { + stream, err := c.cc.NewStream(ctx, &WorldStateStoreService_ServiceDesc.Streams[0], "/viam.service.worldstatestore.v1.WorldStateStoreService/StreamTransformChanges", opts...) + if err != nil { + return nil, err + } + x := &worldStateStoreServiceStreamTransformChangesClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type WorldStateStoreService_StreamTransformChangesClient interface { + Recv() (*StreamTransformChangesResponse, error) + grpc.ClientStream +} + +type worldStateStoreServiceStreamTransformChangesClient struct { + grpc.ClientStream +} + +func (x *worldStateStoreServiceStreamTransformChangesClient) Recv() (*StreamTransformChangesResponse, error) { + m := new(StreamTransformChangesResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *worldStateStoreServiceClient) DoCommand(ctx context.Context, in *v1.DoCommandRequest, opts ...grpc.CallOption) (*v1.DoCommandResponse, error) { + out := new(v1.DoCommandResponse) + err := c.cc.Invoke(ctx, "/viam.service.worldstatestore.v1.WorldStateStoreService/DoCommand", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// WorldStateStoreServiceServer is the server API for WorldStateStoreService service. +// All implementations must embed UnimplementedWorldStateStoreServiceServer +// for forward compatibility +type WorldStateStoreServiceServer interface { + // ListUUIDs returns all world state transform UUIDs + ListUUIDs(context.Context, *ListUUIDsRequest) (*ListUUIDsResponse, error) + // GetTransform returns a world state transform by uuid + GetTransform(context.Context, *GetTransformRequest) (*GetTransformResponse, error) + // StreamTransformChanges streams changes to world state transforms + StreamTransformChanges(*StreamTransformChangesRequest, WorldStateStoreService_StreamTransformChangesServer) error + // DoCommand sends/receives arbitrary commands + DoCommand(context.Context, *v1.DoCommandRequest) (*v1.DoCommandResponse, error) + mustEmbedUnimplementedWorldStateStoreServiceServer() +} + +// UnimplementedWorldStateStoreServiceServer must be embedded to have forward compatible implementations. +type UnimplementedWorldStateStoreServiceServer struct { +} + +func (UnimplementedWorldStateStoreServiceServer) ListUUIDs(context.Context, *ListUUIDsRequest) (*ListUUIDsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListUUIDs not implemented") +} +func (UnimplementedWorldStateStoreServiceServer) GetTransform(context.Context, *GetTransformRequest) (*GetTransformResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetTransform not implemented") +} +func (UnimplementedWorldStateStoreServiceServer) StreamTransformChanges(*StreamTransformChangesRequest, WorldStateStoreService_StreamTransformChangesServer) error { + return status.Errorf(codes.Unimplemented, "method StreamTransformChanges not implemented") +} +func (UnimplementedWorldStateStoreServiceServer) DoCommand(context.Context, *v1.DoCommandRequest) (*v1.DoCommandResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DoCommand not implemented") +} +func (UnimplementedWorldStateStoreServiceServer) mustEmbedUnimplementedWorldStateStoreServiceServer() { +} + +// UnsafeWorldStateStoreServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to WorldStateStoreServiceServer will +// result in compilation errors. +type UnsafeWorldStateStoreServiceServer interface { + mustEmbedUnimplementedWorldStateStoreServiceServer() +} + +func RegisterWorldStateStoreServiceServer(s grpc.ServiceRegistrar, srv WorldStateStoreServiceServer) { + s.RegisterService(&WorldStateStoreService_ServiceDesc, srv) +} + +func _WorldStateStoreService_ListUUIDs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListUUIDsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorldStateStoreServiceServer).ListUUIDs(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/viam.service.worldstatestore.v1.WorldStateStoreService/ListUUIDs", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorldStateStoreServiceServer).ListUUIDs(ctx, req.(*ListUUIDsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _WorldStateStoreService_GetTransform_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetTransformRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorldStateStoreServiceServer).GetTransform(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/viam.service.worldstatestore.v1.WorldStateStoreService/GetTransform", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorldStateStoreServiceServer).GetTransform(ctx, req.(*GetTransformRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _WorldStateStoreService_StreamTransformChanges_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(StreamTransformChangesRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(WorldStateStoreServiceServer).StreamTransformChanges(m, &worldStateStoreServiceStreamTransformChangesServer{stream}) +} + +type WorldStateStoreService_StreamTransformChangesServer interface { + Send(*StreamTransformChangesResponse) error + grpc.ServerStream +} + +type worldStateStoreServiceStreamTransformChangesServer struct { + grpc.ServerStream +} + +func (x *worldStateStoreServiceStreamTransformChangesServer) Send(m *StreamTransformChangesResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _WorldStateStoreService_DoCommand_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1.DoCommandRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorldStateStoreServiceServer).DoCommand(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/viam.service.worldstatestore.v1.WorldStateStoreService/DoCommand", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorldStateStoreServiceServer).DoCommand(ctx, req.(*v1.DoCommandRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// WorldStateStoreService_ServiceDesc is the grpc.ServiceDesc for WorldStateStoreService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var WorldStateStoreService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "viam.service.worldstatestore.v1.WorldStateStoreService", + HandlerType: (*WorldStateStoreServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "ListUUIDs", + Handler: _WorldStateStoreService_ListUUIDs_Handler, + }, + { + MethodName: "GetTransform", + Handler: _WorldStateStoreService_GetTransform_Handler, + }, + { + MethodName: "DoCommand", + Handler: _WorldStateStoreService_DoCommand_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "StreamTransformChanges", + Handler: _WorldStateStoreService_StreamTransformChanges_Handler, + ServerStreams: true, + }, + }, + Metadata: "service/worldstatestore/v1/world_state_store.proto", +}