@@ -106,7 +106,7 @@ defmodule Opamp.Proto.AgentToServer do
106106
107107 use Protobuf , syntax: :proto3 , protoc_gen_elixir_version: "0.12.0"
108108
109- field ( :instance_uid , 1 , type: :string , json_name: "instanceUid" )
109+ field ( :instance_uid , 1 , type: :bytes , json_name: "instanceUid" )
110110 field ( :sequence_num , 2 , type: :uint64 , json_name: "sequenceNum" )
111111 field ( :agent_description , 3 , type: Opamp.Proto.AgentDescription , json_name: "agentDescription" )
112112 field ( :capabilities , 4 , type: :uint64 )
@@ -126,6 +126,13 @@ defmodule Opamp.Proto.AgentToServer do
126126 type: Opamp.Proto.ConnectionSettingsRequest ,
127127 json_name: "connectionSettingsRequest"
128128 )
129+
130+ field ( :custom_capabilities , 12 ,
131+ type: Opamp.Proto.CustomCapabilities ,
132+ json_name: "customCapabilities"
133+ )
134+
135+ field ( :custom_message , 13 , type: Opamp.Proto.CustomMessage , json_name: "customMessage" )
129136end
130137
131138defmodule Opamp.Proto.AgentDisconnect do
@@ -166,7 +173,7 @@ defmodule Opamp.Proto.ServerToAgent do
166173
167174 use Protobuf , syntax: :proto3 , protoc_gen_elixir_version: "0.12.0"
168175
169- field ( :instance_uid , 1 , type: :string , json_name: "instanceUid" )
176+ field ( :instance_uid , 1 , type: :bytes , json_name: "instanceUid" )
170177 field ( :error_response , 2 , type: Opamp.Proto.ServerErrorResponse , json_name: "errorResponse" )
171178 field ( :remote_config , 3 , type: Opamp.Proto.AgentRemoteConfig , json_name: "remoteConfig" )
172179
@@ -189,6 +196,13 @@ defmodule Opamp.Proto.ServerToAgent do
189196 )
190197
191198 field ( :command , 9 , type: Opamp.Proto.ServerToAgentCommand )
199+
200+ field ( :custom_capabilities , 10 ,
201+ type: Opamp.Proto.CustomCapabilities ,
202+ json_name: "customCapabilities"
203+ )
204+
205+ field ( :custom_message , 11 , type: Opamp.Proto.CustomMessage , json_name: "customMessage" )
192206end
193207
194208defmodule Opamp.Proto.OpAMPConnectionSettings do
@@ -471,7 +485,7 @@ defmodule Opamp.Proto.AgentIdentification do
471485
472486 use Protobuf , syntax: :proto3 , protoc_gen_elixir_version: "0.12.0"
473487
474- field ( :new_instance_uid , 1 , type: :string , json_name: "newInstanceUid" )
488+ field ( :new_instance_uid , 1 , type: :bytes , json_name: "newInstanceUid" )
475489end
476490
477491defmodule Opamp.Proto.AgentRemoteConfig do
@@ -513,3 +527,21 @@ defmodule Opamp.Proto.AgentConfigFile do
513527 field ( :body , 1 , type: :bytes )
514528 field ( :content_type , 2 , type: :string , json_name: "contentType" )
515529end
530+
531+ defmodule Opamp.Proto.CustomCapabilities do
532+ @ moduledoc false
533+
534+ use Protobuf , syntax: :proto3 , protoc_gen_elixir_version: "0.12.0"
535+
536+ field ( :capabilities , 1 , repeated: true , type: :string )
537+ end
538+
539+ defmodule Opamp.Proto.CustomMessage do
540+ @ moduledoc false
541+
542+ use Protobuf , syntax: :proto3 , protoc_gen_elixir_version: "0.12.0"
543+
544+ field ( :capability , 1 , type: :string )
545+ field ( :type , 2 , type: :string )
546+ field ( :data , 3 , type: :bytes )
547+ end
0 commit comments