From f3aa93406cf992c6453c2a076bc152f2637fefc2 Mon Sep 17 00:00:00 2001 From: Alek Kim Date: Tue, 17 Nov 2026 14:55:39 +0900 Subject: [PATCH 1/2] add client_id field to Deployment and Message messages in Protobufs --- c2o/operation.proto | 1 + deployment.proto | 1 + 2 files changed, 2 insertions(+) diff --git a/c2o/operation.proto b/c2o/operation.proto index 9cf1410..8c56429 100644 --- a/c2o/operation.proto +++ b/c2o/operation.proto @@ -11,4 +11,5 @@ enum RequestType { message Message { string request_id = 1; RequestType type = 2; + string client_id = 3; } diff --git a/deployment.proto b/deployment.proto index 3866a10..ceeff67 100644 --- a/deployment.proto +++ b/deployment.proto @@ -13,4 +13,5 @@ message Deployment { string id = 1; DeploymentAction action = 2; bytes hcl = 3; + string client_id = 4; } From c9a11b135b38ddffe4ab3534bcab488206baf4d0 Mon Sep 17 00:00:00 2001 From: "actions[bot]" Date: Tue, 17 Nov 2026 06:00:00 +0000 Subject: [PATCH 2/2] Update generated Protobufs --- c2o/operation.pb.go | 13 +++++++++++-- deployment.pb.go | 13 +++++++++++-- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/c2o/operation.pb.go b/c2o/operation.pb.go index 69fe646..c0ae79a 100644 --- a/c2o/operation.pb.go +++ b/c2o/operation.pb.go @@ -71,6 +71,7 @@ type Message struct { state protoimpl.MessageState `protogen:"open.v1"` RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` Type RequestType `protobuf:"varint,2,opt,name=type,proto3,enum=proto.RequestType" json:"type,omitempty"` + ClientId string `protobuf:"bytes,3,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -119,15 +120,23 @@ func (x *Message) GetType() RequestType { return RequestType_PING } +func (x *Message) GetClientId() string { + if x != nil { + return x.ClientId + } + return "" +} + var File_operation_proto protoreflect.FileDescriptor const file_operation_proto_rawDesc = "" + "\n" + - "\x0foperation.proto\x12\x05proto\"P\n" + + "\x0foperation.proto\x12\x05proto\"m\n" + "\aMessage\x12\x1d\n" + "\n" + "request_id\x18\x01 \x01(\tR\trequestId\x12&\n" + - "\x04type\x18\x02 \x01(\x0e2\x12.proto.RequestTypeR\x04type*'\n" + + "\x04type\x18\x02 \x01(\x0e2\x12.proto.RequestTypeR\x04type\x12\x1b\n" + + "\tclient_id\x18\x03 \x01(\tR\bclientId*'\n" + "\vRequestType\x12\b\n" + "\x04PING\x10\x00\x12\x0e\n" + "\n" + diff --git a/deployment.pb.go b/deployment.pb.go index cd60a72..34aed04 100644 --- a/deployment.pb.go +++ b/deployment.pb.go @@ -75,6 +75,7 @@ type Deployment struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Action DeploymentAction `protobuf:"varint,2,opt,name=action,proto3,enum=proto.DeploymentAction" json:"action,omitempty"` Hcl []byte `protobuf:"bytes,3,opt,name=hcl,proto3" json:"hcl,omitempty"` + ClientId string `protobuf:"bytes,4,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -130,16 +131,24 @@ func (x *Deployment) GetHcl() []byte { return nil } +func (x *Deployment) GetClientId() string { + if x != nil { + return x.ClientId + } + return "" +} + var File_deployment_proto protoreflect.FileDescriptor const file_deployment_proto_rawDesc = "" + "\n" + - "\x10deployment.proto\x12\x05proto\"_\n" + + "\x10deployment.proto\x12\x05proto\"|\n" + "\n" + "Deployment\x12\x0e\n" + "\x02id\x18\x01 \x01(\tR\x02id\x12/\n" + "\x06action\x18\x02 \x01(\x0e2\x17.proto.DeploymentActionR\x06action\x12\x10\n" + - "\x03hcl\x18\x03 \x01(\fR\x03hcl*4\n" + + "\x03hcl\x18\x03 \x01(\fR\x03hcl\x12\x1b\n" + + "\tclient_id\x18\x04 \x01(\tR\bclientId*4\n" + "\x10DeploymentAction\x12\b\n" + "\x04STOP\x10\x00\x12\t\n" + "\x05START\x10\x01\x12\v\n" +