From 7c10e611f0755a2f61cdca464a00f6218934fdec Mon Sep 17 00:00:00 2001 From: hexbabe Date: Wed, 1 Oct 2025 15:31:04 -0400 Subject: [PATCH 1/4] Remove GetImage, Format, and RenderFrame from camera.proto --- proto/viam/component/camera/v1/camera.proto | 39 +-------------------- 1 file changed, 1 insertion(+), 38 deletions(-) diff --git a/proto/viam/component/camera/v1/camera.proto b/proto/viam/component/camera/v1/camera.proto index 174ac0a46..21936ef2c 100644 --- a/proto/viam/component/camera/v1/camera.proto +++ b/proto/viam/component/camera/v1/camera.proto @@ -12,22 +12,10 @@ option java_package = "com.viam.component.camera.v1"; // A CameraService services all cameras associated with a robot service CameraService { - // GetImage returns a frame from a camera of the underlying robot. A specific MIME type - // can be requested but may not necessarily be the same one returned. - rpc GetImage(GetImageRequest) returns (GetImageResponse) { - option (google.api.http) = {get: "/viam/api/v1/component/camera/{name}/image"}; - } - rpc GetImages(GetImagesRequest) returns (GetImagesResponse) { option (google.api.http) = {get: "/viam/api/v1/component/camera/{name}/images"}; } - // RenderFrame renders a frame from a camera of the underlying robot to an HTTP response. A specific MIME type - // can be requested but may not necessarily be the same one returned. - rpc RenderFrame(RenderFrameRequest) returns (google.api.HttpBody) { - option (google.api.http) = {get: "/viam/api/v1/component/camera/{name}/render_frame"}; - } - // GetPointCloud returns a point cloud from a camera of the underlying robot. A specific MIME type // can be requested but may not necessarily be the same one returned. rpc GetPointCloud(GetPointCloudRequest) returns (GetPointCloudResponse) { @@ -50,22 +38,6 @@ service CameraService { } } -message GetImageRequest { - // Name of a camera - string name = 1; - // Requested MIME type of response - string mime_type = 2; - // Additional arguments to the method - google.protobuf.Struct extra = 99; -} - -message GetImageResponse { - // Actual MIME type of response - string mime_type = 1; - // Frame in bytes - bytes image = 2; -} - message GetImagesRequest { // Name of a camera string name = 1; @@ -86,22 +58,13 @@ message GetImagesResponse { message Image { // the name of the sensor where the image came from string source_name = 1; - // format of the response image bytes - Format format = 2; + reserved 2; // previously use for Format, reserving as per https://protobuf.dev/programming-guides/proto3/#deleting // image in bytes bytes image = 3; // The mime type of the image string mime_type = 4; } -enum Format { - FORMAT_UNSPECIFIED = 0; - FORMAT_RAW_RGBA = 1; - FORMAT_RAW_DEPTH = 2; - FORMAT_JPEG = 3; - FORMAT_PNG = 4; -} - message RenderFrameRequest { // Name of a camera string name = 1; From eb665c5e525eb6fdb63b83686d186ae47a616e2f Mon Sep 17 00:00:00 2001 From: hexbabe Date: Wed, 1 Oct 2025 16:04:50 -0400 Subject: [PATCH 2/4] Remove unused import --- proto/viam/component/camera/v1/camera.proto | 1 - 1 file changed, 1 deletion(-) diff --git a/proto/viam/component/camera/v1/camera.proto b/proto/viam/component/camera/v1/camera.proto index 21936ef2c..d08659d70 100644 --- a/proto/viam/component/camera/v1/camera.proto +++ b/proto/viam/component/camera/v1/camera.proto @@ -4,7 +4,6 @@ package viam.component.camera.v1; import "common/v1/common.proto"; import "google/api/annotations.proto"; -import "google/api/httpbody.proto"; import "google/protobuf/struct.proto"; option go_package = "go.viam.com/api/component/camera/v1"; From f6b9d47841e1c361ebca9571a011b05062c2a482 Mon Sep 17 00:00:00 2001 From: hexbabe Date: Thu, 2 Oct 2025 10:15:33 -0400 Subject: [PATCH 3/4] Delete renderframe request --- proto/viam/component/camera/v1/camera.proto | 9 --------- 1 file changed, 9 deletions(-) diff --git a/proto/viam/component/camera/v1/camera.proto b/proto/viam/component/camera/v1/camera.proto index d08659d70..9254b4dca 100644 --- a/proto/viam/component/camera/v1/camera.proto +++ b/proto/viam/component/camera/v1/camera.proto @@ -64,15 +64,6 @@ message Image { string mime_type = 4; } -message RenderFrameRequest { - // Name of a camera - string name = 1; - // Requested MIME type of response - string mime_type = 2; - // Additional arguments to the method - google.protobuf.Struct extra = 99; -} - message GetPointCloudRequest { // Name of a camera string name = 1; From dc69587f56cab253244f2860a628c44eaab05640 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 12 Dec 2025 17:27:57 +0000 Subject: [PATCH 4/4] Built new protos from 03e3bd1 --- component/camera/v1/camera.pb.go | 793 ++++++------------ component/camera/v1/camera.pb.gw.go | 242 ------ component/camera/v1/camera_grpc.pb.go | 81 -- .../component/camera/v1/camera_grpc_web_pb.js | 124 --- gen/js/component/camera/v1/camera_pb.d.ts | 101 --- gen/js/component/camera/v1/camera_pb.js | 792 +---------------- .../camera/v1/camera_pb_service.d.ts | 39 - .../component/camera/v1/camera_pb_service.js | 81 -- 8 files changed, 279 insertions(+), 1974 deletions(-) diff --git a/component/camera/v1/camera.pb.go b/component/camera/v1/camera.pb.go index fa141b13c..ac5f6a0d6 100644 --- a/component/camera/v1/camera.pb.go +++ b/component/camera/v1/camera.pb.go @@ -10,7 +10,6 @@ import ( v11 "go.viam.com/api/app/data/v1" v1 "go.viam.com/api/common/v1" _ "google.golang.org/genproto/googleapis/api/annotations" - httpbody "google.golang.org/genproto/googleapis/api/httpbody" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" structpb "google.golang.org/protobuf/types/known/structpb" @@ -25,180 +24,6 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -type Format int32 - -const ( - Format_FORMAT_UNSPECIFIED Format = 0 - Format_FORMAT_RAW_RGBA Format = 1 - Format_FORMAT_RAW_DEPTH Format = 2 - Format_FORMAT_JPEG Format = 3 - Format_FORMAT_PNG Format = 4 -) - -// Enum value maps for Format. -var ( - Format_name = map[int32]string{ - 0: "FORMAT_UNSPECIFIED", - 1: "FORMAT_RAW_RGBA", - 2: "FORMAT_RAW_DEPTH", - 3: "FORMAT_JPEG", - 4: "FORMAT_PNG", - } - Format_value = map[string]int32{ - "FORMAT_UNSPECIFIED": 0, - "FORMAT_RAW_RGBA": 1, - "FORMAT_RAW_DEPTH": 2, - "FORMAT_JPEG": 3, - "FORMAT_PNG": 4, - } -) - -func (x Format) Enum() *Format { - p := new(Format) - *p = x - return p -} - -func (x Format) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (Format) Descriptor() protoreflect.EnumDescriptor { - return file_component_camera_v1_camera_proto_enumTypes[0].Descriptor() -} - -func (Format) Type() protoreflect.EnumType { - return &file_component_camera_v1_camera_proto_enumTypes[0] -} - -func (x Format) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use Format.Descriptor instead. -func (Format) EnumDescriptor() ([]byte, []int) { - return file_component_camera_v1_camera_proto_rawDescGZIP(), []int{0} -} - -type GetImageRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Name of a camera - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // Requested MIME type of response - MimeType string `protobuf:"bytes,2,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"` - // Additional arguments to the method - Extra *structpb.Struct `protobuf:"bytes,99,opt,name=extra,proto3" json:"extra,omitempty"` -} - -func (x *GetImageRequest) Reset() { - *x = GetImageRequest{} - mi := &file_component_camera_v1_camera_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetImageRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetImageRequest) ProtoMessage() {} - -func (x *GetImageRequest) ProtoReflect() protoreflect.Message { - mi := &file_component_camera_v1_camera_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 GetImageRequest.ProtoReflect.Descriptor instead. -func (*GetImageRequest) Descriptor() ([]byte, []int) { - return file_component_camera_v1_camera_proto_rawDescGZIP(), []int{0} -} - -func (x *GetImageRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *GetImageRequest) GetMimeType() string { - if x != nil { - return x.MimeType - } - return "" -} - -func (x *GetImageRequest) GetExtra() *structpb.Struct { - if x != nil { - return x.Extra - } - return nil -} - -type GetImageResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Actual MIME type of response - MimeType string `protobuf:"bytes,1,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"` - // Frame in bytes - Image []byte `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"` -} - -func (x *GetImageResponse) Reset() { - *x = GetImageResponse{} - mi := &file_component_camera_v1_camera_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetImageResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetImageResponse) ProtoMessage() {} - -func (x *GetImageResponse) ProtoReflect() protoreflect.Message { - mi := &file_component_camera_v1_camera_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 GetImageResponse.ProtoReflect.Descriptor instead. -func (*GetImageResponse) Descriptor() ([]byte, []int) { - return file_component_camera_v1_camera_proto_rawDescGZIP(), []int{1} -} - -func (x *GetImageResponse) GetMimeType() string { - if x != nil { - return x.MimeType - } - return "" -} - -func (x *GetImageResponse) GetImage() []byte { - if x != nil { - return x.Image - } - return nil -} - type GetImagesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -215,7 +40,7 @@ type GetImagesRequest struct { func (x *GetImagesRequest) Reset() { *x = GetImagesRequest{} - mi := &file_component_camera_v1_camera_proto_msgTypes[2] + mi := &file_component_camera_v1_camera_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -227,7 +52,7 @@ func (x *GetImagesRequest) String() string { func (*GetImagesRequest) ProtoMessage() {} func (x *GetImagesRequest) ProtoReflect() protoreflect.Message { - mi := &file_component_camera_v1_camera_proto_msgTypes[2] + mi := &file_component_camera_v1_camera_proto_msgTypes[0] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -240,7 +65,7 @@ func (x *GetImagesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetImagesRequest.ProtoReflect.Descriptor instead. func (*GetImagesRequest) Descriptor() ([]byte, []int) { - return file_component_camera_v1_camera_proto_rawDescGZIP(), []int{2} + return file_component_camera_v1_camera_proto_rawDescGZIP(), []int{0} } func (x *GetImagesRequest) GetName() string { @@ -277,7 +102,7 @@ type GetImagesResponse struct { func (x *GetImagesResponse) Reset() { *x = GetImagesResponse{} - mi := &file_component_camera_v1_camera_proto_msgTypes[3] + mi := &file_component_camera_v1_camera_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -289,7 +114,7 @@ func (x *GetImagesResponse) String() string { func (*GetImagesResponse) ProtoMessage() {} func (x *GetImagesResponse) ProtoReflect() protoreflect.Message { - mi := &file_component_camera_v1_camera_proto_msgTypes[3] + mi := &file_component_camera_v1_camera_proto_msgTypes[1] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -302,7 +127,7 @@ func (x *GetImagesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetImagesResponse.ProtoReflect.Descriptor instead. func (*GetImagesResponse) Descriptor() ([]byte, []int) { - return file_component_camera_v1_camera_proto_rawDescGZIP(), []int{3} + return file_component_camera_v1_camera_proto_rawDescGZIP(), []int{1} } func (x *GetImagesResponse) GetImages() []*Image { @@ -326,8 +151,6 @@ type Image struct { // the name of the sensor where the image came from SourceName string `protobuf:"bytes,1,opt,name=source_name,json=sourceName,proto3" json:"source_name,omitempty"` - // format of the response image bytes - Format Format `protobuf:"varint,2,opt,name=format,proto3,enum=viam.component.camera.v1.Format" json:"format,omitempty"` // image in bytes Image []byte `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"` // The mime type of the image @@ -338,7 +161,7 @@ type Image struct { func (x *Image) Reset() { *x = Image{} - mi := &file_component_camera_v1_camera_proto_msgTypes[4] + mi := &file_component_camera_v1_camera_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -350,7 +173,7 @@ func (x *Image) String() string { func (*Image) ProtoMessage() {} func (x *Image) ProtoReflect() protoreflect.Message { - mi := &file_component_camera_v1_camera_proto_msgTypes[4] + mi := &file_component_camera_v1_camera_proto_msgTypes[2] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -363,7 +186,7 @@ func (x *Image) ProtoReflect() protoreflect.Message { // Deprecated: Use Image.ProtoReflect.Descriptor instead. func (*Image) Descriptor() ([]byte, []int) { - return file_component_camera_v1_camera_proto_rawDescGZIP(), []int{4} + return file_component_camera_v1_camera_proto_rawDescGZIP(), []int{2} } func (x *Image) GetSourceName() string { @@ -373,13 +196,6 @@ func (x *Image) GetSourceName() string { return "" } -func (x *Image) GetFormat() Format { - if x != nil { - return x.Format - } - return Format_FORMAT_UNSPECIFIED -} - func (x *Image) GetImage() []byte { if x != nil { return x.Image @@ -401,70 +217,6 @@ func (x *Image) GetAnnotations() *v11.Annotations { return nil } -type RenderFrameRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Name of a camera - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // Requested MIME type of response - MimeType string `protobuf:"bytes,2,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"` - // Additional arguments to the method - Extra *structpb.Struct `protobuf:"bytes,99,opt,name=extra,proto3" json:"extra,omitempty"` -} - -func (x *RenderFrameRequest) Reset() { - *x = RenderFrameRequest{} - mi := &file_component_camera_v1_camera_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *RenderFrameRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RenderFrameRequest) ProtoMessage() {} - -func (x *RenderFrameRequest) ProtoReflect() protoreflect.Message { - mi := &file_component_camera_v1_camera_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 RenderFrameRequest.ProtoReflect.Descriptor instead. -func (*RenderFrameRequest) Descriptor() ([]byte, []int) { - return file_component_camera_v1_camera_proto_rawDescGZIP(), []int{5} -} - -func (x *RenderFrameRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *RenderFrameRequest) GetMimeType() string { - if x != nil { - return x.MimeType - } - return "" -} - -func (x *RenderFrameRequest) GetExtra() *structpb.Struct { - if x != nil { - return x.Extra - } - return nil -} - type GetPointCloudRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -480,7 +232,7 @@ type GetPointCloudRequest struct { func (x *GetPointCloudRequest) Reset() { *x = GetPointCloudRequest{} - mi := &file_component_camera_v1_camera_proto_msgTypes[6] + mi := &file_component_camera_v1_camera_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -492,7 +244,7 @@ func (x *GetPointCloudRequest) String() string { func (*GetPointCloudRequest) ProtoMessage() {} func (x *GetPointCloudRequest) ProtoReflect() protoreflect.Message { - mi := &file_component_camera_v1_camera_proto_msgTypes[6] + mi := &file_component_camera_v1_camera_proto_msgTypes[3] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -505,7 +257,7 @@ func (x *GetPointCloudRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetPointCloudRequest.ProtoReflect.Descriptor instead. func (*GetPointCloudRequest) Descriptor() ([]byte, []int) { - return file_component_camera_v1_camera_proto_rawDescGZIP(), []int{6} + return file_component_camera_v1_camera_proto_rawDescGZIP(), []int{3} } func (x *GetPointCloudRequest) GetName() string { @@ -542,7 +294,7 @@ type GetPointCloudResponse struct { func (x *GetPointCloudResponse) Reset() { *x = GetPointCloudResponse{} - mi := &file_component_camera_v1_camera_proto_msgTypes[7] + mi := &file_component_camera_v1_camera_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -554,7 +306,7 @@ func (x *GetPointCloudResponse) String() string { func (*GetPointCloudResponse) ProtoMessage() {} func (x *GetPointCloudResponse) ProtoReflect() protoreflect.Message { - mi := &file_component_camera_v1_camera_proto_msgTypes[7] + mi := &file_component_camera_v1_camera_proto_msgTypes[4] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -567,7 +319,7 @@ func (x *GetPointCloudResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetPointCloudResponse.ProtoReflect.Descriptor instead. func (*GetPointCloudResponse) Descriptor() ([]byte, []int) { - return file_component_camera_v1_camera_proto_rawDescGZIP(), []int{7} + return file_component_camera_v1_camera_proto_rawDescGZIP(), []int{4} } func (x *GetPointCloudResponse) GetMimeType() string { @@ -595,7 +347,7 @@ type GetPropertiesRequest struct { func (x *GetPropertiesRequest) Reset() { *x = GetPropertiesRequest{} - mi := &file_component_camera_v1_camera_proto_msgTypes[8] + mi := &file_component_camera_v1_camera_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -607,7 +359,7 @@ func (x *GetPropertiesRequest) String() string { func (*GetPropertiesRequest) ProtoMessage() {} func (x *GetPropertiesRequest) ProtoReflect() protoreflect.Message { - mi := &file_component_camera_v1_camera_proto_msgTypes[8] + mi := &file_component_camera_v1_camera_proto_msgTypes[5] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -620,7 +372,7 @@ func (x *GetPropertiesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetPropertiesRequest.ProtoReflect.Descriptor instead. func (*GetPropertiesRequest) Descriptor() ([]byte, []int) { - return file_component_camera_v1_camera_proto_rawDescGZIP(), []int{8} + return file_component_camera_v1_camera_proto_rawDescGZIP(), []int{5} } func (x *GetPropertiesRequest) GetName() string { @@ -653,7 +405,7 @@ type GetPropertiesResponse struct { func (x *GetPropertiesResponse) Reset() { *x = GetPropertiesResponse{} - mi := &file_component_camera_v1_camera_proto_msgTypes[9] + mi := &file_component_camera_v1_camera_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -665,7 +417,7 @@ func (x *GetPropertiesResponse) String() string { func (*GetPropertiesResponse) ProtoMessage() {} func (x *GetPropertiesResponse) ProtoReflect() protoreflect.Message { - mi := &file_component_camera_v1_camera_proto_msgTypes[9] + mi := &file_component_camera_v1_camera_proto_msgTypes[6] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -678,7 +430,7 @@ func (x *GetPropertiesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetPropertiesResponse.ProtoReflect.Descriptor instead. func (*GetPropertiesResponse) Descriptor() ([]byte, []int) { - return file_component_camera_v1_camera_proto_rawDescGZIP(), []int{9} + return file_component_camera_v1_camera_proto_rawDescGZIP(), []int{6} } func (x *GetPropertiesResponse) GetSupportsPcd() bool { @@ -726,7 +478,7 @@ type Webcams struct { func (x *Webcams) Reset() { *x = Webcams{} - mi := &file_component_camera_v1_camera_proto_msgTypes[10] + mi := &file_component_camera_v1_camera_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -738,7 +490,7 @@ func (x *Webcams) String() string { func (*Webcams) ProtoMessage() {} func (x *Webcams) ProtoReflect() protoreflect.Message { - mi := &file_component_camera_v1_camera_proto_msgTypes[10] + mi := &file_component_camera_v1_camera_proto_msgTypes[7] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -751,7 +503,7 @@ func (x *Webcams) ProtoReflect() protoreflect.Message { // Deprecated: Use Webcams.ProtoReflect.Descriptor instead. func (*Webcams) Descriptor() ([]byte, []int) { - return file_component_camera_v1_camera_proto_rawDescGZIP(), []int{10} + return file_component_camera_v1_camera_proto_rawDescGZIP(), []int{7} } func (x *Webcams) GetWebcams() []*Webcam { @@ -780,7 +532,7 @@ type Webcam struct { func (x *Webcam) Reset() { *x = Webcam{} - mi := &file_component_camera_v1_camera_proto_msgTypes[11] + mi := &file_component_camera_v1_camera_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -792,7 +544,7 @@ func (x *Webcam) String() string { func (*Webcam) ProtoMessage() {} func (x *Webcam) ProtoReflect() protoreflect.Message { - mi := &file_component_camera_v1_camera_proto_msgTypes[11] + mi := &file_component_camera_v1_camera_proto_msgTypes[8] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -805,7 +557,7 @@ func (x *Webcam) ProtoReflect() protoreflect.Message { // Deprecated: Use Webcam.ProtoReflect.Descriptor instead. func (*Webcam) Descriptor() ([]byte, []int) { - return file_component_camera_v1_camera_proto_rawDescGZIP(), []int{11} + return file_component_camera_v1_camera_proto_rawDescGZIP(), []int{8} } func (x *Webcam) GetLabel() string { @@ -860,7 +612,7 @@ type Property struct { func (x *Property) Reset() { *x = Property{} - mi := &file_component_camera_v1_camera_proto_msgTypes[12] + mi := &file_component_camera_v1_camera_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -872,7 +624,7 @@ func (x *Property) String() string { func (*Property) ProtoMessage() {} func (x *Property) ProtoReflect() protoreflect.Message { - mi := &file_component_camera_v1_camera_proto_msgTypes[12] + mi := &file_component_camera_v1_camera_proto_msgTypes[9] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -885,7 +637,7 @@ func (x *Property) ProtoReflect() protoreflect.Message { // Deprecated: Use Property.ProtoReflect.Descriptor instead. func (*Property) Descriptor() ([]byte, []int) { - return file_component_camera_v1_camera_proto_rawDescGZIP(), []int{12} + return file_component_camera_v1_camera_proto_rawDescGZIP(), []int{9} } func (x *Property) GetWidthPx() int32 { @@ -931,7 +683,7 @@ type IntrinsicParameters struct { func (x *IntrinsicParameters) Reset() { *x = IntrinsicParameters{} - mi := &file_component_camera_v1_camera_proto_msgTypes[13] + mi := &file_component_camera_v1_camera_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -943,7 +695,7 @@ func (x *IntrinsicParameters) String() string { func (*IntrinsicParameters) ProtoMessage() {} func (x *IntrinsicParameters) ProtoReflect() protoreflect.Message { - mi := &file_component_camera_v1_camera_proto_msgTypes[13] + mi := &file_component_camera_v1_camera_proto_msgTypes[10] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -956,7 +708,7 @@ func (x *IntrinsicParameters) ProtoReflect() protoreflect.Message { // Deprecated: Use IntrinsicParameters.ProtoReflect.Descriptor instead. func (*IntrinsicParameters) Descriptor() ([]byte, []int) { - return file_component_camera_v1_camera_proto_rawDescGZIP(), []int{13} + return file_component_camera_v1_camera_proto_rawDescGZIP(), []int{10} } func (x *IntrinsicParameters) GetWidthPx() uint32 { @@ -1012,7 +764,7 @@ type DistortionParameters struct { func (x *DistortionParameters) Reset() { *x = DistortionParameters{} - mi := &file_component_camera_v1_camera_proto_msgTypes[14] + mi := &file_component_camera_v1_camera_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1024,7 +776,7 @@ func (x *DistortionParameters) String() string { func (*DistortionParameters) ProtoMessage() {} func (x *DistortionParameters) ProtoReflect() protoreflect.Message { - mi := &file_component_camera_v1_camera_proto_msgTypes[14] + mi := &file_component_camera_v1_camera_proto_msgTypes[11] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1037,7 +789,7 @@ func (x *DistortionParameters) ProtoReflect() protoreflect.Message { // Deprecated: Use DistortionParameters.ProtoReflect.Descriptor instead. func (*DistortionParameters) Descriptor() ([]byte, []int) { - return file_component_camera_v1_camera_proto_rawDescGZIP(), []int{14} + return file_component_camera_v1_camera_proto_rawDescGZIP(), []int{11} } func (x *DistortionParameters) GetModel() string { @@ -1065,220 +817,171 @@ var file_component_camera_v1_camera_proto_rawDesc = []byte{ 0x72, 0x6f, 0x74, 0x6f, 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, 0x19, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x62, 0x6f, 0x64, 0x79, 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, 0x71, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x49, 0x6d, 0x61, 0x67, 0x65, 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, 0x1b, 0x0a, 0x09, 0x6d, 0x69, - 0x6d, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, - 0x69, 0x6d, 0x65, 0x54, 0x79, 0x70, 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, 0x45, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x49, 0x6d, 0x61, - 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x69, - 0x6d, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, - 0x69, 0x6d, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x22, 0x85, 0x01, - 0x0a, 0x10, 0x47, 0x65, 0x74, 0x49, 0x6d, 0x61, 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, 0x2e, 0x0a, 0x13, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, - 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x09, 0x52, 0x11, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x53, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 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, 0x9d, 0x01, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x49, 0x6d, 0x61, - 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x06, 0x69, - 0x6d, 0x61, 0x67, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x69, - 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x2e, 0x63, 0x61, 0x6d, - 0x65, 0x72, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x06, 0x69, 0x6d, - 0x61, 0x67, 0x65, 0x73, 0x12, 0x4f, 0x0a, 0x11, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0xa4, 0x92, 0x05, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x20, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, - 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x52, 0x10, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0xd6, 0x01, 0x0a, 0x05, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, - 0x1f, 0x0a, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, - 0x12, 0x38, 0x0a, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x20, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, - 0x74, 0x2e, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x6f, 0x72, 0x6d, - 0x61, 0x74, 0x52, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, - 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, - 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x69, 0x6d, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x69, 0x6d, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3f, 0x0a, - 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x61, - 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x74, - 0x0a, 0x12, 0x52, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x46, 0x72, 0x61, 0x6d, 0x65, 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, 0x1b, 0x0a, 0x09, 0x6d, 0x69, 0x6d, 0x65, - 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x69, 0x6d, - 0x65, 0x54, 0x79, 0x70, 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, 0x76, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x69, 0x6e, 0x74, - 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, + 0x69, 0x6f, 0x6e, 0x73, 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, 0x85, 0x01, 0x0a, 0x10, 0x47, 0x65, 0x74, + 0x49, 0x6d, 0x61, 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, 0x2e, 0x0a, 0x13, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, + 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, + 0x73, 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, 0x9d, 0x01, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x06, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, + 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x2e, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2e, 0x76, + 0x31, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x06, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x12, + 0x4f, 0x0a, 0x11, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x18, 0xa4, 0x92, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x76, + 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x10, + 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x22, 0xa2, 0x01, 0x0a, 0x05, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x69, + 0x6d, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, + 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x69, 0x6d, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x69, 0x6d, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3f, + 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, + 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x4a, + 0x04, 0x08, 0x02, 0x10, 0x03, 0x22, 0x76, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x69, 0x6e, + 0x74, 0x43, 0x6c, 0x6f, 0x75, 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, 0x1b, 0x0a, 0x09, 0x6d, 0x69, 0x6d, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x69, 0x6d, 0x65, 0x54, 0x79, 0x70, 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, 0x55, 0x0a, + 0x15, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x69, 0x6d, 0x65, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x69, 0x6d, 0x65, 0x54, + 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x63, 0x6c, 0x6f, + 0x75, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x43, + 0x6c, 0x6f, 0x75, 0x64, 0x22, 0x2a, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x65, + 0x72, 0x74, 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, 0x1b, 0x0a, 0x09, 0x6d, 0x69, 0x6d, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x69, 0x6d, 0x65, 0x54, 0x79, 0x70, 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, 0x55, 0x0a, 0x15, - 0x47, 0x65, 0x74, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x69, 0x6d, 0x65, 0x5f, 0x74, 0x79, - 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x69, 0x6d, 0x65, 0x54, 0x79, - 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x63, 0x6c, 0x6f, 0x75, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x43, 0x6c, - 0x6f, 0x75, 0x64, 0x22, 0x2a, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, - 0x74, 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, 0x22, - 0xd3, 0x02, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x75, 0x70, - 0x70, 0x6f, 0x72, 0x74, 0x73, 0x5f, 0x70, 0x63, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x0b, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x50, 0x63, 0x64, 0x12, 0x60, 0x0a, 0x14, - 0x69, 0x6e, 0x74, 0x72, 0x69, 0x6e, 0x73, 0x69, 0x63, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, - 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x76, 0x69, 0x61, + 0x22, 0xd3, 0x02, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, + 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x75, + 0x70, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x5f, 0x70, 0x63, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x0b, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x50, 0x63, 0x64, 0x12, 0x60, 0x0a, + 0x14, 0x69, 0x6e, 0x74, 0x72, 0x69, 0x6e, 0x73, 0x69, 0x63, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, + 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x76, 0x69, + 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x2e, 0x63, 0x61, 0x6d, + 0x65, 0x72, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x74, 0x72, 0x69, 0x6e, 0x73, 0x69, 0x63, + 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x52, 0x13, 0x69, 0x6e, 0x74, 0x72, + 0x69, 0x6e, 0x73, 0x69, 0x63, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, + 0x63, 0x0a, 0x15, 0x64, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x61, + 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, + 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x2e, + 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x6f, 0x72, + 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x52, 0x14, + 0x64, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, + 0x74, 0x65, 0x72, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x69, 0x6d, 0x65, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x69, 0x6d, 0x65, 0x54, 0x79, + 0x70, 0x65, 0x73, 0x12, 0x22, 0x0a, 0x0a, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x5f, 0x72, 0x61, 0x74, + 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x09, 0x66, 0x72, 0x61, 0x6d, 0x65, + 0x52, 0x61, 0x74, 0x65, 0x88, 0x01, 0x01, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x66, 0x72, 0x61, 0x6d, + 0x65, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x22, 0x45, 0x0a, 0x07, 0x57, 0x65, 0x62, 0x63, 0x61, 0x6d, + 0x73, 0x12, 0x3a, 0x0a, 0x07, 0x77, 0x65, 0x62, 0x63, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, + 0x65, 0x6e, 0x74, 0x2e, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x65, + 0x62, 0x63, 0x61, 0x6d, 0x52, 0x07, 0x77, 0x65, 0x62, 0x63, 0x61, 0x6d, 0x73, 0x22, 0x9e, 0x01, + 0x0a, 0x06, 0x57, 0x65, 0x62, 0x63, 0x61, 0x6d, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x61, 0x62, 0x65, + 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x16, + 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x42, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, + 0x74, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x2e, 0x63, 0x61, 0x6d, 0x65, - 0x72, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x74, 0x72, 0x69, 0x6e, 0x73, 0x69, 0x63, 0x50, - 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x52, 0x13, 0x69, 0x6e, 0x74, 0x72, 0x69, - 0x6e, 0x73, 0x69, 0x63, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x63, - 0x0a, 0x15, 0x64, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x61, 0x72, - 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, - 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x2e, 0x63, - 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x74, - 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x52, 0x14, 0x64, - 0x69, 0x73, 0x74, 0x6f, 0x72, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, - 0x65, 0x72, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x69, 0x6d, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x69, 0x6d, 0x65, 0x54, 0x79, 0x70, - 0x65, 0x73, 0x12, 0x22, 0x0a, 0x0a, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x5f, 0x72, 0x61, 0x74, 0x65, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x09, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x52, - 0x61, 0x74, 0x65, 0x88, 0x01, 0x01, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x66, 0x72, 0x61, 0x6d, 0x65, - 0x5f, 0x72, 0x61, 0x74, 0x65, 0x22, 0x45, 0x0a, 0x07, 0x57, 0x65, 0x62, 0x63, 0x61, 0x6d, 0x73, - 0x12, 0x3a, 0x0a, 0x07, 0x77, 0x65, 0x62, 0x63, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x20, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, - 0x6e, 0x74, 0x2e, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x65, 0x62, - 0x63, 0x61, 0x6d, 0x52, 0x07, 0x77, 0x65, 0x62, 0x63, 0x61, 0x6d, 0x73, 0x22, 0x9e, 0x01, 0x0a, - 0x06, 0x57, 0x65, 0x62, 0x63, 0x61, 0x6d, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x16, 0x0a, - 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x42, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, - 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x76, 0x69, 0x61, 0x6d, - 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x2e, 0x63, 0x61, 0x6d, 0x65, 0x72, - 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x52, 0x0a, 0x70, - 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x0e, 0x0a, - 0x02, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x84, 0x01, - 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x12, 0x19, 0x0a, 0x08, 0x77, 0x69, - 0x64, 0x74, 0x68, 0x5f, 0x70, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x77, 0x69, - 0x64, 0x74, 0x68, 0x50, 0x78, 0x12, 0x1b, 0x0a, 0x09, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x5f, - 0x70, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, - 0x50, 0x78, 0x12, 0x21, 0x0a, 0x0c, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x5f, 0x66, 0x6f, 0x72, 0x6d, - 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x46, - 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x5f, 0x72, - 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x52, 0x09, 0x66, 0x72, 0x61, 0x6d, 0x65, - 0x52, 0x61, 0x74, 0x65, 0x22, 0xc9, 0x01, 0x0a, 0x13, 0x49, 0x6e, 0x74, 0x72, 0x69, 0x6e, 0x73, - 0x69, 0x63, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x19, 0x0a, 0x08, - 0x77, 0x69, 0x64, 0x74, 0x68, 0x5f, 0x70, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, - 0x77, 0x69, 0x64, 0x74, 0x68, 0x50, 0x78, 0x12, 0x1b, 0x0a, 0x09, 0x68, 0x65, 0x69, 0x67, 0x68, - 0x74, 0x5f, 0x70, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x68, 0x65, 0x69, 0x67, - 0x68, 0x74, 0x50, 0x78, 0x12, 0x1c, 0x0a, 0x0a, 0x66, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x78, 0x5f, - 0x70, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x01, 0x52, 0x08, 0x66, 0x6f, 0x63, 0x61, 0x6c, 0x58, - 0x50, 0x78, 0x12, 0x1c, 0x0a, 0x0a, 0x66, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x79, 0x5f, 0x70, 0x78, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x01, 0x52, 0x08, 0x66, 0x6f, 0x63, 0x61, 0x6c, 0x59, 0x50, 0x78, - 0x12, 0x1e, 0x0a, 0x0b, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5f, 0x78, 0x5f, 0x70, 0x78, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x01, 0x52, 0x09, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x58, 0x50, 0x78, - 0x12, 0x1e, 0x0a, 0x0b, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5f, 0x79, 0x5f, 0x70, 0x78, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x01, 0x52, 0x09, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x59, 0x50, 0x78, - 0x22, 0x4c, 0x0a, 0x14, 0x44, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, - 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x6f, 0x64, 0x65, - 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x1e, - 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, - 0x28, 0x01, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x2a, 0x6c, - 0x0a, 0x06, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x16, 0x0a, 0x12, 0x46, 0x4f, 0x52, 0x4d, - 0x41, 0x54, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, - 0x12, 0x13, 0x0a, 0x0f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x52, 0x41, 0x57, 0x5f, 0x52, - 0x47, 0x42, 0x41, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, - 0x52, 0x41, 0x57, 0x5f, 0x44, 0x45, 0x50, 0x54, 0x48, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x46, - 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x4a, 0x50, 0x45, 0x47, 0x10, 0x03, 0x12, 0x0e, 0x0a, 0x0a, - 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x50, 0x4e, 0x47, 0x10, 0x04, 0x32, 0xcf, 0x08, 0x0a, - 0x0d, 0x43, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x95, - 0x01, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x29, 0x2e, 0x76, 0x69, + 0x72, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x52, 0x0a, + 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x0e, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x84, + 0x01, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x12, 0x19, 0x0a, 0x08, 0x77, + 0x69, 0x64, 0x74, 0x68, 0x5f, 0x70, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x77, + 0x69, 0x64, 0x74, 0x68, 0x50, 0x78, 0x12, 0x1b, 0x0a, 0x09, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, + 0x5f, 0x70, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x68, 0x65, 0x69, 0x67, 0x68, + 0x74, 0x50, 0x78, 0x12, 0x21, 0x0a, 0x0c, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x5f, 0x66, 0x6f, 0x72, + 0x6d, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x66, 0x72, 0x61, 0x6d, 0x65, + 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x5f, + 0x72, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x52, 0x09, 0x66, 0x72, 0x61, 0x6d, + 0x65, 0x52, 0x61, 0x74, 0x65, 0x22, 0xc9, 0x01, 0x0a, 0x13, 0x49, 0x6e, 0x74, 0x72, 0x69, 0x6e, + 0x73, 0x69, 0x63, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x19, 0x0a, + 0x08, 0x77, 0x69, 0x64, 0x74, 0x68, 0x5f, 0x70, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x07, 0x77, 0x69, 0x64, 0x74, 0x68, 0x50, 0x78, 0x12, 0x1b, 0x0a, 0x09, 0x68, 0x65, 0x69, 0x67, + 0x68, 0x74, 0x5f, 0x70, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x68, 0x65, 0x69, + 0x67, 0x68, 0x74, 0x50, 0x78, 0x12, 0x1c, 0x0a, 0x0a, 0x66, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x78, + 0x5f, 0x70, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x01, 0x52, 0x08, 0x66, 0x6f, 0x63, 0x61, 0x6c, + 0x58, 0x50, 0x78, 0x12, 0x1c, 0x0a, 0x0a, 0x66, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x79, 0x5f, 0x70, + 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x01, 0x52, 0x08, 0x66, 0x6f, 0x63, 0x61, 0x6c, 0x59, 0x50, + 0x78, 0x12, 0x1e, 0x0a, 0x0b, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5f, 0x78, 0x5f, 0x70, 0x78, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x01, 0x52, 0x09, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x58, 0x50, + 0x78, 0x12, 0x1e, 0x0a, 0x0b, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5f, 0x79, 0x5f, 0x70, 0x78, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x01, 0x52, 0x09, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x59, 0x50, + 0x78, 0x22, 0x4c, 0x0a, 0x14, 0x44, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x74, 0x69, 0x6f, 0x6e, 0x50, + 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x6f, 0x64, + 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x12, + 0x1e, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x01, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x32, + 0xa8, 0x06, 0x0a, 0x0d, 0x43, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x12, 0x99, 0x01, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x12, + 0x2a, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, + 0x2e, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6d, + 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x2e, 0x63, 0x61, 0x6d, - 0x65, 0x72, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, - 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x2e, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2e, 0x76, - 0x31, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x32, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x12, 0x2a, 0x2f, 0x76, 0x69, 0x61, - 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, - 0x6e, 0x74, 0x2f, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x7d, - 0x2f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x99, 0x01, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x49, 0x6d, - 0x61, 0x67, 0x65, 0x73, 0x12, 0x2a, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x70, - 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x2e, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2e, 0x76, 0x31, 0x2e, - 0x47, 0x65, 0x74, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x2b, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, - 0x74, 0x2e, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x49, - 0x6d, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x33, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x12, 0x2b, 0x2f, 0x76, 0x69, 0x61, 0x6d, 0x2f, 0x61, 0x70, 0x69, + 0x65, 0x72, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x33, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, + 0x12, 0x2b, 0x2f, 0x76, 0x69, 0x61, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x63, + 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x2f, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2f, + 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x12, 0xaa, 0x01, + 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x12, + 0x2e, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, + 0x2e, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x6f, + 0x69, 0x6e, 0x74, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x2f, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, + 0x2e, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x6f, + 0x69, 0x6e, 0x74, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x38, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x32, 0x12, 0x30, 0x2f, 0x76, 0x69, 0x61, 0x6d, 0x2f, + 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, + 0x2f, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x70, + 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x12, 0xa9, 0x01, 0x0a, 0x0d, 0x47, + 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x12, 0x2e, 0x2e, 0x76, + 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x2e, 0x63, 0x61, + 0x6d, 0x65, 0x72, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x65, + 0x72, 0x74, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x76, + 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x2e, 0x63, 0x61, + 0x6d, 0x65, 0x72, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x65, + 0x72, 0x74, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x37, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x31, 0x12, 0x2f, 0x2f, 0x76, 0x69, 0x61, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x2f, 0x63, 0x61, - 0x6d, 0x65, 0x72, 0x61, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x69, 0x6d, 0x61, 0x67, - 0x65, 0x73, 0x12, 0x8c, 0x01, 0x0a, 0x0b, 0x52, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x46, 0x72, 0x61, - 0x6d, 0x65, 0x12, 0x2c, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, - 0x65, 0x6e, 0x74, 0x2e, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, - 0x6e, 0x64, 0x65, 0x72, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x48, 0x74, - 0x74, 0x70, 0x42, 0x6f, 0x64, 0x79, 0x22, 0x39, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x33, 0x12, 0x31, - 0x2f, 0x76, 0x69, 0x61, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, - 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x2f, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2f, 0x7b, 0x6e, - 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x72, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x66, 0x72, 0x61, 0x6d, - 0x65, 0x12, 0xaa, 0x01, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x43, 0x6c, - 0x6f, 0x75, 0x64, 0x12, 0x2e, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, - 0x6e, 0x65, 0x6e, 0x74, 0x2e, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x47, - 0x65, 0x74, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, - 0x6e, 0x65, 0x6e, 0x74, 0x2e, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x47, - 0x65, 0x74, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x38, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x32, 0x12, 0x30, 0x2f, 0x76, - 0x69, 0x61, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, - 0x6e, 0x65, 0x6e, 0x74, 0x2f, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, - 0x65, 0x7d, 0x2f, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x12, 0xa9, - 0x01, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, - 0x12, 0x2e, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, - 0x74, 0x2e, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, - 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x2f, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, - 0x74, 0x2e, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, - 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x6d, 0x65, 0x72, 0x61, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x70, 0x72, 0x6f, 0x70, + 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x12, 0x89, 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, 0x37, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x31, 0x22, 0x2f, 0x2f, 0x76, 0x69, 0x61, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, + 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x2f, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, + 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x64, 0x6f, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, + 0x6e, 0x64, 0x12, 0x95, 0x01, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x47, 0x65, 0x6f, 0x6d, 0x65, 0x74, + 0x72, 0x69, 0x65, 0x73, 0x12, 0x24, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, + 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x76, 0x69, 0x61, + 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x47, + 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x37, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x31, 0x12, 0x2f, 0x2f, 0x76, 0x69, 0x61, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x2f, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, - 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x12, 0x89, 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, 0x37, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x31, 0x22, 0x2f, 0x2f, 0x76, 0x69, 0x61, 0x6d, 0x2f, 0x61, 0x70, 0x69, - 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x2f, 0x63, 0x61, - 0x6d, 0x65, 0x72, 0x61, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x64, 0x6f, 0x5f, 0x63, - 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x95, 0x01, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x47, 0x65, - 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0x24, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, - 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x65, 0x6f, - 0x6d, 0x65, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, - 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, - 0x47, 0x65, 0x74, 0x47, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x37, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x31, 0x12, 0x2f, 0x2f, - 0x76, 0x69, 0x61, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x70, - 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x2f, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2f, 0x7b, 0x6e, 0x61, - 0x6d, 0x65, 0x7d, 0x2f, 0x67, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x65, 0x73, 0x42, 0x43, - 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, - 0x6e, 0x65, 0x6e, 0x74, 0x2e, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2e, 0x76, 0x31, 0x5a, 0x23, - 0x67, 0x6f, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x2f, - 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x2f, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, - 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x67, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x65, 0x73, 0x42, 0x43, 0x0a, 0x1c, 0x63, 0x6f, + 0x6d, 0x2e, 0x76, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, + 0x2e, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2e, 0x76, 0x31, 0x5a, 0x23, 0x67, 0x6f, 0x2e, 0x76, + 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x70, + 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x2f, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x2f, 0x76, 0x31, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1293,66 +996,53 @@ func file_component_camera_v1_camera_proto_rawDescGZIP() []byte { return file_component_camera_v1_camera_proto_rawDescData } -var file_component_camera_v1_camera_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_component_camera_v1_camera_proto_msgTypes = make([]protoimpl.MessageInfo, 15) +var file_component_camera_v1_camera_proto_msgTypes = make([]protoimpl.MessageInfo, 12) var file_component_camera_v1_camera_proto_goTypes = []any{ - (Format)(0), // 0: viam.component.camera.v1.Format - (*GetImageRequest)(nil), // 1: viam.component.camera.v1.GetImageRequest - (*GetImageResponse)(nil), // 2: viam.component.camera.v1.GetImageResponse - (*GetImagesRequest)(nil), // 3: viam.component.camera.v1.GetImagesRequest - (*GetImagesResponse)(nil), // 4: viam.component.camera.v1.GetImagesResponse - (*Image)(nil), // 5: viam.component.camera.v1.Image - (*RenderFrameRequest)(nil), // 6: viam.component.camera.v1.RenderFrameRequest - (*GetPointCloudRequest)(nil), // 7: viam.component.camera.v1.GetPointCloudRequest - (*GetPointCloudResponse)(nil), // 8: viam.component.camera.v1.GetPointCloudResponse - (*GetPropertiesRequest)(nil), // 9: viam.component.camera.v1.GetPropertiesRequest - (*GetPropertiesResponse)(nil), // 10: viam.component.camera.v1.GetPropertiesResponse - (*Webcams)(nil), // 11: viam.component.camera.v1.Webcams - (*Webcam)(nil), // 12: viam.component.camera.v1.Webcam - (*Property)(nil), // 13: viam.component.camera.v1.Property - (*IntrinsicParameters)(nil), // 14: viam.component.camera.v1.IntrinsicParameters - (*DistortionParameters)(nil), // 15: viam.component.camera.v1.DistortionParameters - (*structpb.Struct)(nil), // 16: google.protobuf.Struct - (*v1.ResponseMetadata)(nil), // 17: viam.common.v1.ResponseMetadata - (*v11.Annotations)(nil), // 18: viam.app.data.v1.Annotations - (*v1.DoCommandRequest)(nil), // 19: viam.common.v1.DoCommandRequest - (*v1.GetGeometriesRequest)(nil), // 20: viam.common.v1.GetGeometriesRequest - (*httpbody.HttpBody)(nil), // 21: google.api.HttpBody - (*v1.DoCommandResponse)(nil), // 22: viam.common.v1.DoCommandResponse - (*v1.GetGeometriesResponse)(nil), // 23: viam.common.v1.GetGeometriesResponse + (*GetImagesRequest)(nil), // 0: viam.component.camera.v1.GetImagesRequest + (*GetImagesResponse)(nil), // 1: viam.component.camera.v1.GetImagesResponse + (*Image)(nil), // 2: viam.component.camera.v1.Image + (*GetPointCloudRequest)(nil), // 3: viam.component.camera.v1.GetPointCloudRequest + (*GetPointCloudResponse)(nil), // 4: viam.component.camera.v1.GetPointCloudResponse + (*GetPropertiesRequest)(nil), // 5: viam.component.camera.v1.GetPropertiesRequest + (*GetPropertiesResponse)(nil), // 6: viam.component.camera.v1.GetPropertiesResponse + (*Webcams)(nil), // 7: viam.component.camera.v1.Webcams + (*Webcam)(nil), // 8: viam.component.camera.v1.Webcam + (*Property)(nil), // 9: viam.component.camera.v1.Property + (*IntrinsicParameters)(nil), // 10: viam.component.camera.v1.IntrinsicParameters + (*DistortionParameters)(nil), // 11: viam.component.camera.v1.DistortionParameters + (*structpb.Struct)(nil), // 12: google.protobuf.Struct + (*v1.ResponseMetadata)(nil), // 13: viam.common.v1.ResponseMetadata + (*v11.Annotations)(nil), // 14: viam.app.data.v1.Annotations + (*v1.DoCommandRequest)(nil), // 15: viam.common.v1.DoCommandRequest + (*v1.GetGeometriesRequest)(nil), // 16: viam.common.v1.GetGeometriesRequest + (*v1.DoCommandResponse)(nil), // 17: viam.common.v1.DoCommandResponse + (*v1.GetGeometriesResponse)(nil), // 18: viam.common.v1.GetGeometriesResponse } var file_component_camera_v1_camera_proto_depIdxs = []int32{ - 16, // 0: viam.component.camera.v1.GetImageRequest.extra:type_name -> google.protobuf.Struct - 16, // 1: viam.component.camera.v1.GetImagesRequest.extra:type_name -> google.protobuf.Struct - 5, // 2: viam.component.camera.v1.GetImagesResponse.images:type_name -> viam.component.camera.v1.Image - 17, // 3: viam.component.camera.v1.GetImagesResponse.response_metadata:type_name -> viam.common.v1.ResponseMetadata - 0, // 4: viam.component.camera.v1.Image.format:type_name -> viam.component.camera.v1.Format - 18, // 5: viam.component.camera.v1.Image.annotations:type_name -> viam.app.data.v1.Annotations - 16, // 6: viam.component.camera.v1.RenderFrameRequest.extra:type_name -> google.protobuf.Struct - 16, // 7: viam.component.camera.v1.GetPointCloudRequest.extra:type_name -> google.protobuf.Struct - 14, // 8: viam.component.camera.v1.GetPropertiesResponse.intrinsic_parameters:type_name -> viam.component.camera.v1.IntrinsicParameters - 15, // 9: viam.component.camera.v1.GetPropertiesResponse.distortion_parameters:type_name -> viam.component.camera.v1.DistortionParameters - 12, // 10: viam.component.camera.v1.Webcams.webcams:type_name -> viam.component.camera.v1.Webcam - 13, // 11: viam.component.camera.v1.Webcam.properties:type_name -> viam.component.camera.v1.Property - 1, // 12: viam.component.camera.v1.CameraService.GetImage:input_type -> viam.component.camera.v1.GetImageRequest - 3, // 13: viam.component.camera.v1.CameraService.GetImages:input_type -> viam.component.camera.v1.GetImagesRequest - 6, // 14: viam.component.camera.v1.CameraService.RenderFrame:input_type -> viam.component.camera.v1.RenderFrameRequest - 7, // 15: viam.component.camera.v1.CameraService.GetPointCloud:input_type -> viam.component.camera.v1.GetPointCloudRequest - 9, // 16: viam.component.camera.v1.CameraService.GetProperties:input_type -> viam.component.camera.v1.GetPropertiesRequest - 19, // 17: viam.component.camera.v1.CameraService.DoCommand:input_type -> viam.common.v1.DoCommandRequest - 20, // 18: viam.component.camera.v1.CameraService.GetGeometries:input_type -> viam.common.v1.GetGeometriesRequest - 2, // 19: viam.component.camera.v1.CameraService.GetImage:output_type -> viam.component.camera.v1.GetImageResponse - 4, // 20: viam.component.camera.v1.CameraService.GetImages:output_type -> viam.component.camera.v1.GetImagesResponse - 21, // 21: viam.component.camera.v1.CameraService.RenderFrame:output_type -> google.api.HttpBody - 8, // 22: viam.component.camera.v1.CameraService.GetPointCloud:output_type -> viam.component.camera.v1.GetPointCloudResponse - 10, // 23: viam.component.camera.v1.CameraService.GetProperties:output_type -> viam.component.camera.v1.GetPropertiesResponse - 22, // 24: viam.component.camera.v1.CameraService.DoCommand:output_type -> viam.common.v1.DoCommandResponse - 23, // 25: viam.component.camera.v1.CameraService.GetGeometries:output_type -> viam.common.v1.GetGeometriesResponse - 19, // [19:26] is the sub-list for method output_type - 12, // [12:19] is the sub-list for method input_type - 12, // [12:12] is the sub-list for extension type_name - 12, // [12:12] is the sub-list for extension extendee - 0, // [0:12] is the sub-list for field type_name + 12, // 0: viam.component.camera.v1.GetImagesRequest.extra:type_name -> google.protobuf.Struct + 2, // 1: viam.component.camera.v1.GetImagesResponse.images:type_name -> viam.component.camera.v1.Image + 13, // 2: viam.component.camera.v1.GetImagesResponse.response_metadata:type_name -> viam.common.v1.ResponseMetadata + 14, // 3: viam.component.camera.v1.Image.annotations:type_name -> viam.app.data.v1.Annotations + 12, // 4: viam.component.camera.v1.GetPointCloudRequest.extra:type_name -> google.protobuf.Struct + 10, // 5: viam.component.camera.v1.GetPropertiesResponse.intrinsic_parameters:type_name -> viam.component.camera.v1.IntrinsicParameters + 11, // 6: viam.component.camera.v1.GetPropertiesResponse.distortion_parameters:type_name -> viam.component.camera.v1.DistortionParameters + 8, // 7: viam.component.camera.v1.Webcams.webcams:type_name -> viam.component.camera.v1.Webcam + 9, // 8: viam.component.camera.v1.Webcam.properties:type_name -> viam.component.camera.v1.Property + 0, // 9: viam.component.camera.v1.CameraService.GetImages:input_type -> viam.component.camera.v1.GetImagesRequest + 3, // 10: viam.component.camera.v1.CameraService.GetPointCloud:input_type -> viam.component.camera.v1.GetPointCloudRequest + 5, // 11: viam.component.camera.v1.CameraService.GetProperties:input_type -> viam.component.camera.v1.GetPropertiesRequest + 15, // 12: viam.component.camera.v1.CameraService.DoCommand:input_type -> viam.common.v1.DoCommandRequest + 16, // 13: viam.component.camera.v1.CameraService.GetGeometries:input_type -> viam.common.v1.GetGeometriesRequest + 1, // 14: viam.component.camera.v1.CameraService.GetImages:output_type -> viam.component.camera.v1.GetImagesResponse + 4, // 15: viam.component.camera.v1.CameraService.GetPointCloud:output_type -> viam.component.camera.v1.GetPointCloudResponse + 6, // 16: viam.component.camera.v1.CameraService.GetProperties:output_type -> viam.component.camera.v1.GetPropertiesResponse + 17, // 17: viam.component.camera.v1.CameraService.DoCommand:output_type -> viam.common.v1.DoCommandResponse + 18, // 18: viam.component.camera.v1.CameraService.GetGeometries:output_type -> viam.common.v1.GetGeometriesResponse + 14, // [14:19] is the sub-list for method output_type + 9, // [9:14] is the sub-list for method input_type + 9, // [9:9] is the sub-list for extension type_name + 9, // [9:9] is the sub-list for extension extendee + 0, // [0:9] is the sub-list for field type_name } func init() { file_component_camera_v1_camera_proto_init() } @@ -1360,20 +1050,19 @@ func file_component_camera_v1_camera_proto_init() { if File_component_camera_v1_camera_proto != nil { return } - file_component_camera_v1_camera_proto_msgTypes[9].OneofWrappers = []any{} + file_component_camera_v1_camera_proto_msgTypes[6].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_component_camera_v1_camera_proto_rawDesc, - NumEnums: 1, - NumMessages: 15, + NumEnums: 0, + NumMessages: 12, NumExtensions: 0, NumServices: 1, }, GoTypes: file_component_camera_v1_camera_proto_goTypes, DependencyIndexes: file_component_camera_v1_camera_proto_depIdxs, - EnumInfos: file_component_camera_v1_camera_proto_enumTypes, MessageInfos: file_component_camera_v1_camera_proto_msgTypes, }.Build() File_component_camera_v1_camera_proto = out.File diff --git a/component/camera/v1/camera.pb.gw.go b/component/camera/v1/camera.pb.gw.go index a60984d6e..404f218cb 100644 --- a/component/camera/v1/camera.pb.gw.go +++ b/component/camera/v1/camera.pb.gw.go @@ -32,76 +32,6 @@ var _ = runtime.String var _ = utilities.NewDoubleArray var _ = metadata.Join -var ( - filter_CameraService_GetImage_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} -) - -func request_CameraService_GetImage_0(ctx context.Context, marshaler runtime.Marshaler, client CameraServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetImageRequest - 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_CameraService_GetImage_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetImage(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_CameraService_GetImage_0(ctx context.Context, marshaler runtime.Marshaler, server CameraServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetImageRequest - 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_CameraService_GetImage_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.GetImage(ctx, &protoReq) - return msg, metadata, err - -} - var ( filter_CameraService_GetImages_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) @@ -172,76 +102,6 @@ func local_request_CameraService_GetImages_0(ctx context.Context, marshaler runt } -var ( - filter_CameraService_RenderFrame_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} -) - -func request_CameraService_RenderFrame_0(ctx context.Context, marshaler runtime.Marshaler, client CameraServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq RenderFrameRequest - 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_CameraService_RenderFrame_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.RenderFrame(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_CameraService_RenderFrame_0(ctx context.Context, marshaler runtime.Marshaler, server CameraServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq RenderFrameRequest - 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_CameraService_RenderFrame_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.RenderFrame(ctx, &protoReq) - return msg, metadata, err - -} - var ( filter_CameraService_GetPointCloud_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) @@ -510,31 +370,6 @@ func local_request_CameraService_GetGeometries_0(ctx context.Context, marshaler // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterCameraServiceHandlerFromEndpoint instead. func RegisterCameraServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CameraServiceServer) error { - mux.Handle("GET", pattern_CameraService_GetImage_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.component.camera.v1.CameraService/GetImage", runtime.WithHTTPPathPattern("/viam/api/v1/component/camera/{name}/image")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CameraService_GetImage_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_CameraService_GetImage_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_CameraService_GetImages_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -560,31 +395,6 @@ func RegisterCameraServiceHandlerServer(ctx context.Context, mux *runtime.ServeM }) - mux.Handle("GET", pattern_CameraService_RenderFrame_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.component.camera.v1.CameraService/RenderFrame", runtime.WithHTTPPathPattern("/viam/api/v1/component/camera/{name}/render_frame")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CameraService_RenderFrame_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_CameraService_RenderFrame_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_CameraService_GetPointCloud_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -726,28 +536,6 @@ func RegisterCameraServiceHandler(ctx context.Context, mux *runtime.ServeMux, co // "CameraServiceClient" to call the correct interceptors. func RegisterCameraServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CameraServiceClient) error { - mux.Handle("GET", pattern_CameraService_GetImage_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.component.camera.v1.CameraService/GetImage", runtime.WithHTTPPathPattern("/viam/api/v1/component/camera/{name}/image")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CameraService_GetImage_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_CameraService_GetImage_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_CameraService_GetImages_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -770,28 +558,6 @@ func RegisterCameraServiceHandlerClient(ctx context.Context, mux *runtime.ServeM }) - mux.Handle("GET", pattern_CameraService_RenderFrame_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.component.camera.v1.CameraService/RenderFrame", runtime.WithHTTPPathPattern("/viam/api/v1/component/camera/{name}/render_frame")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CameraService_RenderFrame_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_CameraService_RenderFrame_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_CameraService_GetPointCloud_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -884,12 +650,8 @@ func RegisterCameraServiceHandlerClient(ctx context.Context, mux *runtime.ServeM } var ( - pattern_CameraService_GetImage_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", "component", "camera", "name", "image"}, "")) - pattern_CameraService_GetImages_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", "component", "camera", "name", "images"}, "")) - pattern_CameraService_RenderFrame_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", "component", "camera", "name", "render_frame"}, "")) - pattern_CameraService_GetPointCloud_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", "component", "camera", "name", "point_cloud"}, "")) pattern_CameraService_GetProperties_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", "component", "camera", "name", "properties"}, "")) @@ -900,12 +662,8 @@ var ( ) var ( - forward_CameraService_GetImage_0 = runtime.ForwardResponseMessage - forward_CameraService_GetImages_0 = runtime.ForwardResponseMessage - forward_CameraService_RenderFrame_0 = runtime.ForwardResponseMessage - forward_CameraService_GetPointCloud_0 = runtime.ForwardResponseMessage forward_CameraService_GetProperties_0 = runtime.ForwardResponseMessage diff --git a/component/camera/v1/camera_grpc.pb.go b/component/camera/v1/camera_grpc.pb.go index cfd3cd8f9..568eb4af9 100644 --- a/component/camera/v1/camera_grpc.pb.go +++ b/component/camera/v1/camera_grpc.pb.go @@ -9,7 +9,6 @@ package v1 import ( context "context" v1 "go.viam.com/api/common/v1" - httpbody "google.golang.org/genproto/googleapis/api/httpbody" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -24,13 +23,7 @@ const _ = grpc.SupportPackageIsVersion7 // // 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 CameraServiceClient interface { - // GetImage returns a frame from a camera of the underlying robot. A specific MIME type - // can be requested but may not necessarily be the same one returned. - GetImage(ctx context.Context, in *GetImageRequest, opts ...grpc.CallOption) (*GetImageResponse, error) GetImages(ctx context.Context, in *GetImagesRequest, opts ...grpc.CallOption) (*GetImagesResponse, error) - // RenderFrame renders a frame from a camera of the underlying robot to an HTTP response. A specific MIME type - // can be requested but may not necessarily be the same one returned. - RenderFrame(ctx context.Context, in *RenderFrameRequest, opts ...grpc.CallOption) (*httpbody.HttpBody, error) // GetPointCloud returns a point cloud from a camera of the underlying robot. A specific MIME type // can be requested but may not necessarily be the same one returned. GetPointCloud(ctx context.Context, in *GetPointCloudRequest, opts ...grpc.CallOption) (*GetPointCloudResponse, error) @@ -50,15 +43,6 @@ func NewCameraServiceClient(cc grpc.ClientConnInterface) CameraServiceClient { return &cameraServiceClient{cc} } -func (c *cameraServiceClient) GetImage(ctx context.Context, in *GetImageRequest, opts ...grpc.CallOption) (*GetImageResponse, error) { - out := new(GetImageResponse) - err := c.cc.Invoke(ctx, "/viam.component.camera.v1.CameraService/GetImage", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *cameraServiceClient) GetImages(ctx context.Context, in *GetImagesRequest, opts ...grpc.CallOption) (*GetImagesResponse, error) { out := new(GetImagesResponse) err := c.cc.Invoke(ctx, "/viam.component.camera.v1.CameraService/GetImages", in, out, opts...) @@ -68,15 +52,6 @@ func (c *cameraServiceClient) GetImages(ctx context.Context, in *GetImagesReques return out, nil } -func (c *cameraServiceClient) RenderFrame(ctx context.Context, in *RenderFrameRequest, opts ...grpc.CallOption) (*httpbody.HttpBody, error) { - out := new(httpbody.HttpBody) - err := c.cc.Invoke(ctx, "/viam.component.camera.v1.CameraService/RenderFrame", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *cameraServiceClient) GetPointCloud(ctx context.Context, in *GetPointCloudRequest, opts ...grpc.CallOption) (*GetPointCloudResponse, error) { out := new(GetPointCloudResponse) err := c.cc.Invoke(ctx, "/viam.component.camera.v1.CameraService/GetPointCloud", in, out, opts...) @@ -117,13 +92,7 @@ func (c *cameraServiceClient) GetGeometries(ctx context.Context, in *v1.GetGeome // All implementations must embed UnimplementedCameraServiceServer // for forward compatibility type CameraServiceServer interface { - // GetImage returns a frame from a camera of the underlying robot. A specific MIME type - // can be requested but may not necessarily be the same one returned. - GetImage(context.Context, *GetImageRequest) (*GetImageResponse, error) GetImages(context.Context, *GetImagesRequest) (*GetImagesResponse, error) - // RenderFrame renders a frame from a camera of the underlying robot to an HTTP response. A specific MIME type - // can be requested but may not necessarily be the same one returned. - RenderFrame(context.Context, *RenderFrameRequest) (*httpbody.HttpBody, error) // GetPointCloud returns a point cloud from a camera of the underlying robot. A specific MIME type // can be requested but may not necessarily be the same one returned. GetPointCloud(context.Context, *GetPointCloudRequest) (*GetPointCloudResponse, error) @@ -140,15 +109,9 @@ type CameraServiceServer interface { type UnimplementedCameraServiceServer struct { } -func (UnimplementedCameraServiceServer) GetImage(context.Context, *GetImageRequest) (*GetImageResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetImage not implemented") -} func (UnimplementedCameraServiceServer) GetImages(context.Context, *GetImagesRequest) (*GetImagesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetImages not implemented") } -func (UnimplementedCameraServiceServer) RenderFrame(context.Context, *RenderFrameRequest) (*httpbody.HttpBody, error) { - return nil, status.Errorf(codes.Unimplemented, "method RenderFrame not implemented") -} func (UnimplementedCameraServiceServer) GetPointCloud(context.Context, *GetPointCloudRequest) (*GetPointCloudResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetPointCloud not implemented") } @@ -174,24 +137,6 @@ func RegisterCameraServiceServer(s grpc.ServiceRegistrar, srv CameraServiceServe s.RegisterService(&CameraService_ServiceDesc, srv) } -func _CameraService_GetImage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetImageRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CameraServiceServer).GetImage(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/viam.component.camera.v1.CameraService/GetImage", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CameraServiceServer).GetImage(ctx, req.(*GetImageRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _CameraService_GetImages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetImagesRequest) if err := dec(in); err != nil { @@ -210,24 +155,6 @@ func _CameraService_GetImages_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } -func _CameraService_RenderFrame_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RenderFrameRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CameraServiceServer).RenderFrame(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/viam.component.camera.v1.CameraService/RenderFrame", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CameraServiceServer).RenderFrame(ctx, req.(*RenderFrameRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _CameraService_GetPointCloud_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetPointCloudRequest) if err := dec(in); err != nil { @@ -307,18 +234,10 @@ var CameraService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "viam.component.camera.v1.CameraService", HandlerType: (*CameraServiceServer)(nil), Methods: []grpc.MethodDesc{ - { - MethodName: "GetImage", - Handler: _CameraService_GetImage_Handler, - }, { MethodName: "GetImages", Handler: _CameraService_GetImages_Handler, }, - { - MethodName: "RenderFrame", - Handler: _CameraService_RenderFrame_Handler, - }, { MethodName: "GetPointCloud", Handler: _CameraService_GetPointCloud_Handler, diff --git a/gen/js/component/camera/v1/camera_grpc_web_pb.js b/gen/js/component/camera/v1/camera_grpc_web_pb.js index 8352acf40..b39612069 100644 --- a/gen/js/component/camera/v1/camera_grpc_web_pb.js +++ b/gen/js/component/camera/v1/camera_grpc_web_pb.js @@ -26,8 +26,6 @@ var common_v1_common_pb = require('../../../common/v1/common_pb.js') var google_api_annotations_pb = require('../../../google/api/annotations_pb.js') -var google_api_httpbody_pb = require('../../../google/api/httpbody_pb.js') - var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js') const proto = {}; proto.viam = {}; @@ -87,67 +85,6 @@ proto.viam.component.camera.v1.CameraServicePromiseClient = }; -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.viam.component.camera.v1.GetImageRequest, - * !proto.viam.component.camera.v1.GetImageResponse>} - */ -const methodDescriptor_CameraService_GetImage = new grpc.web.MethodDescriptor( - '/viam.component.camera.v1.CameraService/GetImage', - grpc.web.MethodType.UNARY, - proto.viam.component.camera.v1.GetImageRequest, - proto.viam.component.camera.v1.GetImageResponse, - /** - * @param {!proto.viam.component.camera.v1.GetImageRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.viam.component.camera.v1.GetImageResponse.deserializeBinary -); - - -/** - * @param {!proto.viam.component.camera.v1.GetImageRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.viam.component.camera.v1.GetImageResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.viam.component.camera.v1.CameraServiceClient.prototype.getImage = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/viam.component.camera.v1.CameraService/GetImage', - request, - metadata || {}, - methodDescriptor_CameraService_GetImage, - callback); -}; - - -/** - * @param {!proto.viam.component.camera.v1.GetImageRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.viam.component.camera.v1.CameraServicePromiseClient.prototype.getImage = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/viam.component.camera.v1.CameraService/GetImage', - request, - metadata || {}, - methodDescriptor_CameraService_GetImage); -}; - - /** * @const * @type {!grpc.web.MethodDescriptor< @@ -209,67 +146,6 @@ proto.viam.component.camera.v1.CameraServicePromiseClient.prototype.getImages = }; -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.viam.component.camera.v1.RenderFrameRequest, - * !proto.google.api.HttpBody>} - */ -const methodDescriptor_CameraService_RenderFrame = new grpc.web.MethodDescriptor( - '/viam.component.camera.v1.CameraService/RenderFrame', - grpc.web.MethodType.UNARY, - proto.viam.component.camera.v1.RenderFrameRequest, - google_api_httpbody_pb.HttpBody, - /** - * @param {!proto.viam.component.camera.v1.RenderFrameRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_api_httpbody_pb.HttpBody.deserializeBinary -); - - -/** - * @param {!proto.viam.component.camera.v1.RenderFrameRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.api.HttpBody)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.viam.component.camera.v1.CameraServiceClient.prototype.renderFrame = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/viam.component.camera.v1.CameraService/RenderFrame', - request, - metadata || {}, - methodDescriptor_CameraService_RenderFrame, - callback); -}; - - -/** - * @param {!proto.viam.component.camera.v1.RenderFrameRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.viam.component.camera.v1.CameraServicePromiseClient.prototype.renderFrame = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/viam.component.camera.v1.CameraService/RenderFrame', - request, - metadata || {}, - methodDescriptor_CameraService_RenderFrame); -}; - - /** * @const * @type {!grpc.web.MethodDescriptor< diff --git a/gen/js/component/camera/v1/camera_pb.d.ts b/gen/js/component/camera/v1/camera_pb.d.ts index db9260b4d..48c11bdbf 100644 --- a/gen/js/component/camera/v1/camera_pb.d.ts +++ b/gen/js/component/camera/v1/camera_pb.d.ts @@ -5,65 +5,8 @@ import * as jspb from "google-protobuf"; import * as app_data_v1_data_pb from "../../../app/data/v1/data_pb"; 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_api_httpbody_pb from "../../../google/api/httpbody_pb"; import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb"; -export class GetImageRequest extends jspb.Message { - getName(): string; - setName(value: string): void; - - getMimeType(): string; - setMimeType(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): GetImageRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetImageRequest): GetImageRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetImageRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetImageRequest; - static deserializeBinaryFromReader(message: GetImageRequest, reader: jspb.BinaryReader): GetImageRequest; -} - -export namespace GetImageRequest { - export type AsObject = { - name: string, - mimeType: string, - extra?: google_protobuf_struct_pb.Struct.AsObject, - } -} - -export class GetImageResponse extends jspb.Message { - getMimeType(): string; - setMimeType(value: string): void; - - getImage(): Uint8Array | string; - getImage_asU8(): Uint8Array; - getImage_asB64(): string; - setImage(value: Uint8Array | string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetImageResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetImageResponse): GetImageResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetImageResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetImageResponse; - static deserializeBinaryFromReader(message: GetImageResponse, reader: jspb.BinaryReader): GetImageResponse; -} - -export namespace GetImageResponse { - export type AsObject = { - mimeType: string, - image: Uint8Array | string, - } -} - export class GetImagesRequest extends jspb.Message { getName(): string; setName(value: string): void; @@ -128,9 +71,6 @@ export class Image extends jspb.Message { getSourceName(): string; setSourceName(value: string): void; - getFormat(): FormatMap[keyof FormatMap]; - setFormat(value: FormatMap[keyof FormatMap]): void; - getImage(): Uint8Array | string; getImage_asU8(): Uint8Array; getImage_asB64(): string; @@ -157,43 +97,12 @@ export class Image extends jspb.Message { export namespace Image { export type AsObject = { sourceName: string, - format: FormatMap[keyof FormatMap], image: Uint8Array | string, mimeType: string, annotations?: app_data_v1_data_pb.Annotations.AsObject, } } -export class RenderFrameRequest extends jspb.Message { - getName(): string; - setName(value: string): void; - - getMimeType(): string; - setMimeType(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): RenderFrameRequest.AsObject; - static toObject(includeInstance: boolean, msg: RenderFrameRequest): RenderFrameRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RenderFrameRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RenderFrameRequest; - static deserializeBinaryFromReader(message: RenderFrameRequest, reader: jspb.BinaryReader): RenderFrameRequest; -} - -export namespace RenderFrameRequest { - export type AsObject = { - name: string, - mimeType: string, - extra?: google_protobuf_struct_pb.Struct.AsObject, - } -} - export class GetPointCloudRequest extends jspb.Message { getName(): string; setName(value: string): void; @@ -472,13 +381,3 @@ export namespace DistortionParameters { } } -export interface FormatMap { - FORMAT_UNSPECIFIED: 0; - FORMAT_RAW_RGBA: 1; - FORMAT_RAW_DEPTH: 2; - FORMAT_JPEG: 3; - FORMAT_PNG: 4; -} - -export const Format: FormatMap; - diff --git a/gen/js/component/camera/v1/camera_pb.js b/gen/js/component/camera/v1/camera_pb.js index 5fdb12964..4526b5e2d 100644 --- a/gen/js/component/camera/v1/camera_pb.js +++ b/gen/js/component/camera/v1/camera_pb.js @@ -21,14 +21,9 @@ 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_api_httpbody_pb = require('../../../google/api/httpbody_pb.js'); -goog.object.extend(proto, google_api_httpbody_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.component.camera.v1.DistortionParameters', null, global); -goog.exportSymbol('proto.viam.component.camera.v1.Format', null, global); -goog.exportSymbol('proto.viam.component.camera.v1.GetImageRequest', null, global); -goog.exportSymbol('proto.viam.component.camera.v1.GetImageResponse', null, global); goog.exportSymbol('proto.viam.component.camera.v1.GetImagesRequest', null, global); goog.exportSymbol('proto.viam.component.camera.v1.GetImagesResponse', null, global); goog.exportSymbol('proto.viam.component.camera.v1.GetPointCloudRequest', null, global); @@ -38,51 +33,8 @@ goog.exportSymbol('proto.viam.component.camera.v1.GetPropertiesResponse', null, goog.exportSymbol('proto.viam.component.camera.v1.Image', null, global); goog.exportSymbol('proto.viam.component.camera.v1.IntrinsicParameters', null, global); goog.exportSymbol('proto.viam.component.camera.v1.Property', null, global); -goog.exportSymbol('proto.viam.component.camera.v1.RenderFrameRequest', null, global); goog.exportSymbol('proto.viam.component.camera.v1.Webcam', null, global); goog.exportSymbol('proto.viam.component.camera.v1.Webcams', 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.component.camera.v1.GetImageRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.viam.component.camera.v1.GetImageRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.viam.component.camera.v1.GetImageRequest.displayName = 'proto.viam.component.camera.v1.GetImageRequest'; -} -/** - * 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.component.camera.v1.GetImageResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.viam.component.camera.v1.GetImageResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.viam.component.camera.v1.GetImageResponse.displayName = 'proto.viam.component.camera.v1.GetImageResponse'; -} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -146,27 +98,6 @@ if (goog.DEBUG && !COMPILED) { */ proto.viam.component.camera.v1.Image.displayName = 'proto.viam.component.camera.v1.Image'; } -/** - * 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.component.camera.v1.RenderFrameRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.viam.component.camera.v1.RenderFrameRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.viam.component.camera.v1.RenderFrameRequest.displayName = 'proto.viam.component.camera.v1.RenderFrameRequest'; -} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -312,445 +243,50 @@ if (goog.DEBUG && !COMPILED) { * @public * @override */ - proto.viam.component.camera.v1.Property.displayName = 'proto.viam.component.camera.v1.Property'; -} -/** - * 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.component.camera.v1.IntrinsicParameters = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.viam.component.camera.v1.IntrinsicParameters, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.viam.component.camera.v1.IntrinsicParameters.displayName = 'proto.viam.component.camera.v1.IntrinsicParameters'; -} -/** - * 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.component.camera.v1.DistortionParameters = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.viam.component.camera.v1.DistortionParameters.repeatedFields_, null); -}; -goog.inherits(proto.viam.component.camera.v1.DistortionParameters, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.viam.component.camera.v1.DistortionParameters.displayName = 'proto.viam.component.camera.v1.DistortionParameters'; -} - - - -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.component.camera.v1.GetImageRequest.prototype.toObject = function(opt_includeInstance) { - return proto.viam.component.camera.v1.GetImageRequest.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.component.camera.v1.GetImageRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.viam.component.camera.v1.GetImageRequest.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - mimeType: jspb.Message.getFieldWithDefault(msg, 2, ""), - 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.component.camera.v1.GetImageRequest} - */ -proto.viam.component.camera.v1.GetImageRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.viam.component.camera.v1.GetImageRequest; - return proto.viam.component.camera.v1.GetImageRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.viam.component.camera.v1.GetImageRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.viam.component.camera.v1.GetImageRequest} - */ -proto.viam.component.camera.v1.GetImageRequest.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 {string} */ (reader.readString()); - msg.setMimeType(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.component.camera.v1.GetImageRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.viam.component.camera.v1.GetImageRequest.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.component.camera.v1.GetImageRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.viam.component.camera.v1.GetImageRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getMimeType(); - if (f.length > 0) { - writer.writeString( - 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.component.camera.v1.GetImageRequest.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.viam.component.camera.v1.GetImageRequest} returns this - */ -proto.viam.component.camera.v1.GetImageRequest.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string mime_type = 2; - * @return {string} - */ -proto.viam.component.camera.v1.GetImageRequest.prototype.getMimeType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.viam.component.camera.v1.GetImageRequest} returns this - */ -proto.viam.component.camera.v1.GetImageRequest.prototype.setMimeType = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional google.protobuf.Struct extra = 99; - * @return {?proto.google.protobuf.Struct} - */ -proto.viam.component.camera.v1.GetImageRequest.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.component.camera.v1.GetImageRequest} returns this -*/ -proto.viam.component.camera.v1.GetImageRequest.prototype.setExtra = function(value) { - return jspb.Message.setWrapperField(this, 99, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.viam.component.camera.v1.GetImageRequest} returns this - */ -proto.viam.component.camera.v1.GetImageRequest.prototype.clearExtra = function() { - return this.setExtra(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.viam.component.camera.v1.GetImageRequest.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.component.camera.v1.GetImageResponse.prototype.toObject = function(opt_includeInstance) { - return proto.viam.component.camera.v1.GetImageResponse.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.component.camera.v1.GetImageResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.viam.component.camera.v1.GetImageResponse.toObject = function(includeInstance, msg) { - var f, obj = { - mimeType: jspb.Message.getFieldWithDefault(msg, 1, ""), - image: msg.getImage_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.component.camera.v1.GetImageResponse} - */ -proto.viam.component.camera.v1.GetImageResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.viam.component.camera.v1.GetImageResponse; - return proto.viam.component.camera.v1.GetImageResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.viam.component.camera.v1.GetImageResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.viam.component.camera.v1.GetImageResponse} - */ -proto.viam.component.camera.v1.GetImageResponse.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.setMimeType(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setImage(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.viam.component.camera.v1.GetImageResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.viam.component.camera.v1.GetImageResponse.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.component.camera.v1.GetImageResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.viam.component.camera.v1.GetImageResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMimeType(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getImage_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } -}; - - -/** - * optional string mime_type = 1; - * @return {string} - */ -proto.viam.component.camera.v1.GetImageResponse.prototype.getMimeType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.viam.component.camera.v1.GetImageResponse} returns this - */ -proto.viam.component.camera.v1.GetImageResponse.prototype.setMimeType = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bytes image = 2; - * @return {string} - */ -proto.viam.component.camera.v1.GetImageResponse.prototype.getImage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes image = 2; - * This is a type-conversion wrapper around `getImage()` - * @return {string} - */ -proto.viam.component.camera.v1.GetImageResponse.prototype.getImage_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getImage())); -}; - - + proto.viam.component.camera.v1.Property.displayName = 'proto.viam.component.camera.v1.Property'; +} /** - * optional bytes image = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getImage()` - * @return {!Uint8Array} + * 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.component.camera.v1.GetImageResponse.prototype.getImage_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getImage())); +proto.viam.component.camera.v1.IntrinsicParameters = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; - - +goog.inherits(proto.viam.component.camera.v1.IntrinsicParameters, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.viam.component.camera.v1.IntrinsicParameters.displayName = 'proto.viam.component.camera.v1.IntrinsicParameters'; +} /** - * @param {!(string|Uint8Array)} value - * @return {!proto.viam.component.camera.v1.GetImageResponse} returns this + * 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.component.camera.v1.GetImageResponse.prototype.setImage = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); +proto.viam.component.camera.v1.DistortionParameters = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.viam.component.camera.v1.DistortionParameters.repeatedFields_, null); }; - - +goog.inherits(proto.viam.component.camera.v1.DistortionParameters, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.viam.component.camera.v1.DistortionParameters.displayName = 'proto.viam.component.camera.v1.DistortionParameters'; +} /** * List of repeated fields within this message type. @@ -1232,7 +768,6 @@ proto.viam.component.camera.v1.Image.prototype.toObject = function(opt_includeIn proto.viam.component.camera.v1.Image.toObject = function(includeInstance, msg) { var f, obj = { sourceName: jspb.Message.getFieldWithDefault(msg, 1, ""), - format: jspb.Message.getFieldWithDefault(msg, 2, 0), image: msg.getImage_asB64(), mimeType: jspb.Message.getFieldWithDefault(msg, 4, ""), annotations: (f = msg.getAnnotations()) && app_data_v1_data_pb.Annotations.toObject(includeInstance, f) @@ -1276,10 +811,6 @@ proto.viam.component.camera.v1.Image.deserializeBinaryFromReader = function(msg, var value = /** @type {string} */ (reader.readString()); msg.setSourceName(value); break; - case 2: - var value = /** @type {!proto.viam.component.camera.v1.Format} */ (reader.readEnum()); - msg.setFormat(value); - break; case 3: var value = /** @type {!Uint8Array} */ (reader.readBytes()); msg.setImage(value); @@ -1329,13 +860,6 @@ proto.viam.component.camera.v1.Image.serializeBinaryToWriter = function(message, f ); } - f = message.getFormat(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } f = message.getImage_asU8(); if (f.length > 0) { writer.writeBytes( @@ -1379,24 +903,6 @@ proto.viam.component.camera.v1.Image.prototype.setSourceName = function(value) { }; -/** - * optional Format format = 2; - * @return {!proto.viam.component.camera.v1.Format} - */ -proto.viam.component.camera.v1.Image.prototype.getFormat = function() { - return /** @type {!proto.viam.component.camera.v1.Format} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.viam.component.camera.v1.Format} value - * @return {!proto.viam.component.camera.v1.Image} returns this - */ -proto.viam.component.camera.v1.Image.prototype.setFormat = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - /** * optional bytes image = 3; * @return {string} @@ -1497,217 +1003,6 @@ proto.viam.component.camera.v1.Image.prototype.hasAnnotations = function() { -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.component.camera.v1.RenderFrameRequest.prototype.toObject = function(opt_includeInstance) { - return proto.viam.component.camera.v1.RenderFrameRequest.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.component.camera.v1.RenderFrameRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.viam.component.camera.v1.RenderFrameRequest.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - mimeType: jspb.Message.getFieldWithDefault(msg, 2, ""), - 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.component.camera.v1.RenderFrameRequest} - */ -proto.viam.component.camera.v1.RenderFrameRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.viam.component.camera.v1.RenderFrameRequest; - return proto.viam.component.camera.v1.RenderFrameRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.viam.component.camera.v1.RenderFrameRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.viam.component.camera.v1.RenderFrameRequest} - */ -proto.viam.component.camera.v1.RenderFrameRequest.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 {string} */ (reader.readString()); - msg.setMimeType(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.component.camera.v1.RenderFrameRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.viam.component.camera.v1.RenderFrameRequest.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.component.camera.v1.RenderFrameRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.viam.component.camera.v1.RenderFrameRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getMimeType(); - if (f.length > 0) { - writer.writeString( - 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.component.camera.v1.RenderFrameRequest.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.viam.component.camera.v1.RenderFrameRequest} returns this - */ -proto.viam.component.camera.v1.RenderFrameRequest.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string mime_type = 2; - * @return {string} - */ -proto.viam.component.camera.v1.RenderFrameRequest.prototype.getMimeType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.viam.component.camera.v1.RenderFrameRequest} returns this - */ -proto.viam.component.camera.v1.RenderFrameRequest.prototype.setMimeType = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional google.protobuf.Struct extra = 99; - * @return {?proto.google.protobuf.Struct} - */ -proto.viam.component.camera.v1.RenderFrameRequest.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.component.camera.v1.RenderFrameRequest} returns this -*/ -proto.viam.component.camera.v1.RenderFrameRequest.prototype.setExtra = function(value) { - return jspb.Message.setWrapperField(this, 99, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.viam.component.camera.v1.RenderFrameRequest} returns this - */ -proto.viam.component.camera.v1.RenderFrameRequest.prototype.clearExtra = function() { - return this.setExtra(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.viam.component.camera.v1.RenderFrameRequest.prototype.hasExtra = function() { - return jspb.Message.getField(this, 99) != null; -}; - - - - - if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. @@ -3694,15 +2989,4 @@ proto.viam.component.camera.v1.DistortionParameters.prototype.clearParametersLis }; -/** - * @enum {number} - */ -proto.viam.component.camera.v1.Format = { - FORMAT_UNSPECIFIED: 0, - FORMAT_RAW_RGBA: 1, - FORMAT_RAW_DEPTH: 2, - FORMAT_JPEG: 3, - FORMAT_PNG: 4 -}; - goog.object.extend(exports, proto.viam.component.camera.v1); diff --git a/gen/js/component/camera/v1/camera_pb_service.d.ts b/gen/js/component/camera/v1/camera_pb_service.d.ts index 788fbcdd6..4ac269f98 100644 --- a/gen/js/component/camera/v1/camera_pb_service.d.ts +++ b/gen/js/component/camera/v1/camera_pb_service.d.ts @@ -3,18 +3,8 @@ import * as component_camera_v1_camera_pb from "../../../component/camera/v1/camera_pb"; import * as common_v1_common_pb from "../../../common/v1/common_pb"; -import * as google_api_httpbody_pb from "../../../google/api/httpbody_pb"; import {grpc} from "@improbable-eng/grpc-web"; -type CameraServiceGetImage = { - readonly methodName: string; - readonly service: typeof CameraService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof component_camera_v1_camera_pb.GetImageRequest; - readonly responseType: typeof component_camera_v1_camera_pb.GetImageResponse; -}; - type CameraServiceGetImages = { readonly methodName: string; readonly service: typeof CameraService; @@ -24,15 +14,6 @@ type CameraServiceGetImages = { readonly responseType: typeof component_camera_v1_camera_pb.GetImagesResponse; }; -type CameraServiceRenderFrame = { - readonly methodName: string; - readonly service: typeof CameraService; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof component_camera_v1_camera_pb.RenderFrameRequest; - readonly responseType: typeof google_api_httpbody_pb.HttpBody; -}; - type CameraServiceGetPointCloud = { readonly methodName: string; readonly service: typeof CameraService; @@ -71,9 +52,7 @@ type CameraServiceGetGeometries = { export class CameraService { static readonly serviceName: string; - static readonly GetImage: CameraServiceGetImage; static readonly GetImages: CameraServiceGetImages; - static readonly RenderFrame: CameraServiceRenderFrame; static readonly GetPointCloud: CameraServiceGetPointCloud; static readonly GetProperties: CameraServiceGetProperties; static readonly DoCommand: CameraServiceDoCommand; @@ -112,15 +91,6 @@ export class CameraServiceClient { readonly serviceHost: string; constructor(serviceHost: string, options?: grpc.RpcOptions); - getImage( - requestMessage: component_camera_v1_camera_pb.GetImageRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: component_camera_v1_camera_pb.GetImageResponse|null) => void - ): UnaryResponse; - getImage( - requestMessage: component_camera_v1_camera_pb.GetImageRequest, - callback: (error: ServiceError|null, responseMessage: component_camera_v1_camera_pb.GetImageResponse|null) => void - ): UnaryResponse; getImages( requestMessage: component_camera_v1_camera_pb.GetImagesRequest, metadata: grpc.Metadata, @@ -130,15 +100,6 @@ export class CameraServiceClient { requestMessage: component_camera_v1_camera_pb.GetImagesRequest, callback: (error: ServiceError|null, responseMessage: component_camera_v1_camera_pb.GetImagesResponse|null) => void ): UnaryResponse; - renderFrame( - requestMessage: component_camera_v1_camera_pb.RenderFrameRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: google_api_httpbody_pb.HttpBody|null) => void - ): UnaryResponse; - renderFrame( - requestMessage: component_camera_v1_camera_pb.RenderFrameRequest, - callback: (error: ServiceError|null, responseMessage: google_api_httpbody_pb.HttpBody|null) => void - ): UnaryResponse; getPointCloud( requestMessage: component_camera_v1_camera_pb.GetPointCloudRequest, metadata: grpc.Metadata, diff --git a/gen/js/component/camera/v1/camera_pb_service.js b/gen/js/component/camera/v1/camera_pb_service.js index a331a4180..18699fea6 100644 --- a/gen/js/component/camera/v1/camera_pb_service.js +++ b/gen/js/component/camera/v1/camera_pb_service.js @@ -3,7 +3,6 @@ var component_camera_v1_camera_pb = require("../../../component/camera/v1/camera_pb"); var common_v1_common_pb = require("../../../common/v1/common_pb"); -var google_api_httpbody_pb = require("../../../google/api/httpbody_pb"); var grpc = require("@improbable-eng/grpc-web").grpc; var CameraService = (function () { @@ -12,15 +11,6 @@ var CameraService = (function () { return CameraService; }()); -CameraService.GetImage = { - methodName: "GetImage", - service: CameraService, - requestStream: false, - responseStream: false, - requestType: component_camera_v1_camera_pb.GetImageRequest, - responseType: component_camera_v1_camera_pb.GetImageResponse -}; - CameraService.GetImages = { methodName: "GetImages", service: CameraService, @@ -30,15 +20,6 @@ CameraService.GetImages = { responseType: component_camera_v1_camera_pb.GetImagesResponse }; -CameraService.RenderFrame = { - methodName: "RenderFrame", - service: CameraService, - requestStream: false, - responseStream: false, - requestType: component_camera_v1_camera_pb.RenderFrameRequest, - responseType: google_api_httpbody_pb.HttpBody -}; - CameraService.GetPointCloud = { methodName: "GetPointCloud", service: CameraService, @@ -82,37 +63,6 @@ function CameraServiceClient(serviceHost, options) { this.options = options || {}; } -CameraServiceClient.prototype.getImage = function getImage(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(CameraService.GetImage, { - 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(); - } - }; -}; - CameraServiceClient.prototype.getImages = function getImages(requestMessage, metadata, callback) { if (arguments.length === 2) { callback = arguments[1]; @@ -144,37 +94,6 @@ CameraServiceClient.prototype.getImages = function getImages(requestMessage, met }; }; -CameraServiceClient.prototype.renderFrame = function renderFrame(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(CameraService.RenderFrame, { - 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(); - } - }; -}; - CameraServiceClient.prototype.getPointCloud = function getPointCloud(requestMessage, metadata, callback) { if (arguments.length === 2) { callback = arguments[1];