diff --git a/src/viam/api/api_proto_tag.lock b/src/viam/api/api_proto_tag.lock index 8a2511b07..670c13050 100644 --- a/src/viam/api/api_proto_tag.lock +++ b/src/viam/api/api_proto_tag.lock @@ -1 +1 @@ -v0.1.491 +v0.1.493 diff --git a/src/viam/api/app/v1/robot.pb.cc b/src/viam/api/app/v1/robot.pb.cc index 745ce51fa..c27bfae1c 100644 --- a/src/viam/api/app/v1/robot.pb.cc +++ b/src/viam/api/app/v1/robot.pb.cc @@ -71,7 +71,8 @@ PROTOBUF_CONSTEXPR JobConfig::JobConfig( , schedule_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) , resource_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) , method_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) - , command_(nullptr){} + , command_(nullptr) + , log_configuration_(nullptr){} struct JobConfigDefaultTypeInternal { PROTOBUF_CONSTEXPR JobConfigDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -745,6 +746,7 @@ const uint32_t TableStruct_app_2fv1_2frobot_2eproto::offsets[] PROTOBUF_SECTION_ PROTOBUF_FIELD_OFFSET(::viam::app::v1::JobConfig, resource_), PROTOBUF_FIELD_OFFSET(::viam::app::v1::JobConfig, method_), PROTOBUF_FIELD_OFFSET(::viam::app::v1::JobConfig, command_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::JobConfig, log_configuration_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::viam::app::v1::LocationSecret, _internal_metadata_), ~0u, // no _extensions_ @@ -1164,47 +1166,47 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 0, 24, -1, sizeof(::viam::app::v1::RobotConfig)}, { 42, -1, -1, sizeof(::viam::app::v1::LogPatternConfig)}, { 50, -1, -1, sizeof(::viam::app::v1::JobConfig)}, - { 61, -1, -1, sizeof(::viam::app::v1::LocationSecret)}, - { 69, -1, -1, sizeof(::viam::app::v1::AppValidationStatus)}, - { 76, -1, -1, sizeof(::viam::app::v1::CloudConfig)}, - { 94, -1, -1, sizeof(::viam::app::v1::ComponentConfig)}, - { 110, -1, -1, sizeof(::viam::app::v1::ResourceLevelServiceConfig)}, - { 118, 126, -1, sizeof(::viam::app::v1::ProcessConfig_EnvEntry_DoNotUse)}, - { 128, -1, -1, sizeof(::viam::app::v1::ProcessConfig)}, - { 144, -1, -1, sizeof(::viam::app::v1::ServiceConfig)}, - { 159, -1, -1, sizeof(::viam::app::v1::NetworkConfig)}, - { 172, -1, -1, sizeof(::viam::app::v1::SessionsConfig)}, - { 179, -1, -1, sizeof(::viam::app::v1::TrafficTunnelEndpoint)}, - { 187, 196, -1, sizeof(::viam::app::v1::AuthConfig)}, - { 199, -1, -1, sizeof(::viam::app::v1::JWKSFile)}, - { 206, -1, -1, sizeof(::viam::app::v1::ExternalAuthConfig)}, - { 213, -1, -1, sizeof(::viam::app::v1::AuthHandlerConfig)}, - { 221, -1, -1, sizeof(::viam::app::v1::Frame)}, - { 231, -1, -1, sizeof(::viam::app::v1::LogConfiguration)}, - { 238, -1, -1, sizeof(::viam::app::v1::Translation)}, - { 247, -1, -1, sizeof(::viam::app::v1::Orientation_NoOrientation)}, - { 253, -1, -1, sizeof(::viam::app::v1::Orientation_OrientationVectorRadians)}, - { 263, -1, -1, sizeof(::viam::app::v1::Orientation_OrientationVectorDegrees)}, - { 273, -1, -1, sizeof(::viam::app::v1::Orientation_EulerAngles)}, - { 282, -1, -1, sizeof(::viam::app::v1::Orientation_AxisAngles)}, - { 292, -1, -1, sizeof(::viam::app::v1::Orientation_Quaternion)}, - { 302, -1, -1, sizeof(::viam::app::v1::Orientation)}, - { 315, -1, -1, sizeof(::viam::app::v1::RemoteConfig)}, - { 332, -1, -1, sizeof(::viam::app::v1::RemoteAuth_Credentials)}, - { 340, -1, -1, sizeof(::viam::app::v1::RemoteAuth)}, - { 348, 361, -1, sizeof(::viam::app::v1::AgentInfo)}, - { 368, 376, -1, sizeof(::viam::app::v1::ConfigRequest)}, - { 378, -1, -1, sizeof(::viam::app::v1::ConfigResponse)}, - { 385, -1, -1, sizeof(::viam::app::v1::CertificateRequest)}, - { 392, -1, -1, sizeof(::viam::app::v1::CertificateResponse)}, - { 401, -1, -1, sizeof(::viam::app::v1::LogRequest)}, - { 409, -1, -1, sizeof(::viam::app::v1::LogResponse)}, - { 415, -1, -1, sizeof(::viam::app::v1::NeedsRestartRequest)}, - { 422, -1, -1, sizeof(::viam::app::v1::NeedsRestartResponse)}, - { 431, 439, -1, sizeof(::viam::app::v1::ModuleConfig_EnvEntry_DoNotUse)}, - { 441, -1, -1, sizeof(::viam::app::v1::ModuleConfig)}, - { 456, -1, -1, sizeof(::viam::app::v1::PackageConfig)}, - { 467, -1, -1, sizeof(::viam::app::v1::MaintenanceConfig)}, + { 62, -1, -1, sizeof(::viam::app::v1::LocationSecret)}, + { 70, -1, -1, sizeof(::viam::app::v1::AppValidationStatus)}, + { 77, -1, -1, sizeof(::viam::app::v1::CloudConfig)}, + { 95, -1, -1, sizeof(::viam::app::v1::ComponentConfig)}, + { 111, -1, -1, sizeof(::viam::app::v1::ResourceLevelServiceConfig)}, + { 119, 127, -1, sizeof(::viam::app::v1::ProcessConfig_EnvEntry_DoNotUse)}, + { 129, -1, -1, sizeof(::viam::app::v1::ProcessConfig)}, + { 145, -1, -1, sizeof(::viam::app::v1::ServiceConfig)}, + { 160, -1, -1, sizeof(::viam::app::v1::NetworkConfig)}, + { 173, -1, -1, sizeof(::viam::app::v1::SessionsConfig)}, + { 180, -1, -1, sizeof(::viam::app::v1::TrafficTunnelEndpoint)}, + { 188, 197, -1, sizeof(::viam::app::v1::AuthConfig)}, + { 200, -1, -1, sizeof(::viam::app::v1::JWKSFile)}, + { 207, -1, -1, sizeof(::viam::app::v1::ExternalAuthConfig)}, + { 214, -1, -1, sizeof(::viam::app::v1::AuthHandlerConfig)}, + { 222, -1, -1, sizeof(::viam::app::v1::Frame)}, + { 232, -1, -1, sizeof(::viam::app::v1::LogConfiguration)}, + { 239, -1, -1, sizeof(::viam::app::v1::Translation)}, + { 248, -1, -1, sizeof(::viam::app::v1::Orientation_NoOrientation)}, + { 254, -1, -1, sizeof(::viam::app::v1::Orientation_OrientationVectorRadians)}, + { 264, -1, -1, sizeof(::viam::app::v1::Orientation_OrientationVectorDegrees)}, + { 274, -1, -1, sizeof(::viam::app::v1::Orientation_EulerAngles)}, + { 283, -1, -1, sizeof(::viam::app::v1::Orientation_AxisAngles)}, + { 293, -1, -1, sizeof(::viam::app::v1::Orientation_Quaternion)}, + { 303, -1, -1, sizeof(::viam::app::v1::Orientation)}, + { 316, -1, -1, sizeof(::viam::app::v1::RemoteConfig)}, + { 333, -1, -1, sizeof(::viam::app::v1::RemoteAuth_Credentials)}, + { 341, -1, -1, sizeof(::viam::app::v1::RemoteAuth)}, + { 349, 362, -1, sizeof(::viam::app::v1::AgentInfo)}, + { 369, 377, -1, sizeof(::viam::app::v1::ConfigRequest)}, + { 379, -1, -1, sizeof(::viam::app::v1::ConfigResponse)}, + { 386, -1, -1, sizeof(::viam::app::v1::CertificateRequest)}, + { 393, -1, -1, sizeof(::viam::app::v1::CertificateResponse)}, + { 402, -1, -1, sizeof(::viam::app::v1::LogRequest)}, + { 410, -1, -1, sizeof(::viam::app::v1::LogResponse)}, + { 416, -1, -1, sizeof(::viam::app::v1::NeedsRestartRequest)}, + { 423, -1, -1, sizeof(::viam::app::v1::NeedsRestartResponse)}, + { 432, 440, -1, sizeof(::viam::app::v1::ModuleConfig_EnvEntry_DoNotUse)}, + { 442, -1, -1, sizeof(::viam::app::v1::ModuleConfig)}, + { 457, -1, -1, sizeof(::viam::app::v1::PackageConfig)}, + { 468, -1, -1, sizeof(::viam::app::v1::MaintenanceConfig)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -1286,186 +1288,188 @@ const char descriptor_table_protodef_app_2fv1_2frobot_2eproto[] PROTOBUF_SECTION "nfigR\004jobsB\n\n\010_networkB\007\n\005_authB\010\n\006_debu" "gB\030\n\026_disable_partial_startB\016\n\014_maintena" "nce\"B\n\020LogPatternConfig\022\030\n\007pattern\030\001 \001(\t" - "R\007pattern\022\024\n\005level\030\002 \001(\tR\005level\"\242\001\n\tJobC" + "R\007pattern\022\024\n\005level\030\002 \001(\tR\005level\"\356\001\n\tJobC" "onfig\022\022\n\004name\030\001 \001(\tR\004name\022\032\n\010schedule\030\002 " "\001(\tR\010schedule\022\032\n\010resource\030\003 \001(\tR\010resourc" "e\022\026\n\006method\030\004 \001(\tR\006method\0221\n\007command\030\005 \001" - "(\0132\027.google.protobuf.StructR\007command\"8\n\016" - "LocationSecret\022\016\n\002id\030\001 \001(\tR\002id\022\026\n\006secret" - "\030\002 \001(\tR\006secret\"+\n\023AppValidationStatus\022\024\n" - "\005error\030\001 \001(\tR\005error\"\276\003\n\013CloudConfig\022\016\n\002i" - "d\030\001 \001(\tR\002id\022\022\n\004fqdn\030\002 \001(\tR\004fqdn\022\035\n\nlocal" - "_fqdn\030\003 \001(\tR\tlocalFqdn\022\035\n\nmanaged_by\030\004 \001" - "(\tR\tmanagedBy\022+\n\021signaling_address\030\005 \001(\t" - "R\020signalingAddress\022-\n\022signaling_insecure" - "\030\006 \001(\010R\021signalingInsecure\022+\n\017location_se" - "cret\030\007 \001(\tB\002\030\001R\016locationSecret\022\026\n\006secret" - "\030\010 \001(\tR\006secret\022F\n\020location_secrets\030\t \003(\013" - "2\033.viam.app.v1.LocationSecretR\017locationS" - "ecrets\022$\n\016primary_org_id\030\n \001(\tR\014primaryO" - "rgId\022\037\n\013location_id\030\013 \001(\tR\nlocationId\022\035\n" - "\nmachine_id\030\014 \001(\tR\tmachineId\"\273\003\n\017Compone" - "ntConfig\022\022\n\004name\030\001 \001(\tR\004name\022\034\n\tnamespac" - "e\030\002 \001(\tR\tnamespace\022\022\n\004type\030\003 \001(\tR\004type\022\024" - "\n\005model\030\004 \001(\tR\005model\022(\n\005frame\030\005 \001(\0132\022.vi" - "am.app.v1.FrameR\005frame\022\035\n\ndepends_on\030\006 \003" - "(\tR\tdependsOn\022l\n\017service_configs\030\007 \003(\0132\'" - ".viam.app.v1.ResourceLevelServiceConfigB" - "\032\232\204\236\003\025json:\"service_config\"R\016serviceConf" - "igs\0227\n\nattributes\030\010 \001(\0132\027.google.protobu" - "f.StructR\nattributes\022\020\n\003api\030\t \001(\tR\003api\022J" - "\n\021log_configuration\030\n \001(\0132\035.viam.app.v1." - "LogConfigurationR\020logConfiguration\"i\n\032Re" - "sourceLevelServiceConfig\022\022\n\004type\030\001 \001(\tR\004" - "type\0227\n\nattributes\030\002 \001(\0132\027.google.protob" - "uf.StructR\nattributes\"\360\002\n\rProcessConfig\022" - "\016\n\002id\030\001 \001(\tR\002id\022\022\n\004name\030\002 \001(\tR\004name\022\022\n\004a" - "rgs\030\003 \003(\tR\004args\022\020\n\003cwd\030\004 \001(\tR\003cwd\022\031\n\010one" - "_shot\030\005 \001(\010R\007oneShot\022\020\n\003log\030\006 \001(\010R\003log\022\037" - "\n\013stop_signal\030\007 \001(\005R\nstopSignal\022<\n\014stop_" - "timeout\030\010 \001(\0132\031.google.protobuf.Duration" - "R\013stopTimeout\0225\n\003env\030\t \003(\0132#.viam.app.v1" - ".ProcessConfig.EnvEntryR\003env\022\032\n\010username" - "\030\n \001(\tR\010username\0326\n\010EnvEntry\022\020\n\003key\030\001 \001(" - "\tR\003key\022\024\n\005value\030\002 \001(\tR\005value:\0028\001\"\217\003\n\rSer" - "viceConfig\022\022\n\004name\030\001 \001(\tR\004name\022\034\n\tnamesp" - "ace\030\002 \001(\tR\tnamespace\022\022\n\004type\030\003 \001(\tR\004type" - "\0227\n\nattributes\030\004 \001(\0132\027.google.protobuf.S" - "tructR\nattributes\022\035\n\ndepends_on\030\005 \003(\tR\td" - "ependsOn\022\024\n\005model\030\006 \001(\tR\005model\022\020\n\003api\030\t " - "\001(\tR\003api\022l\n\017service_configs\030\n \003(\0132\'.viam" - ".app.v1.ResourceLevelServiceConfigB\032\232\204\236\003" - "\025json:\"service_config\"R\016serviceConfigs\022J" - "\n\021log_configuration\030\013 \001(\0132\035.viam.app.v1." - "LogConfigurationR\020logConfiguration\"\272\002\n\rN" - "etworkConfig\022\022\n\004fqdn\030\001 \001(\tR\004fqdn\022!\n\014bind" - "_address\030\002 \001(\tR\013bindAddress\022\"\n\rtls_cert_" - "file\030\003 \001(\tR\013tlsCertFile\022 \n\014tls_key_file\030" - "\004 \001(\tR\ntlsKeyFile\0227\n\010sessions\030\005 \001(\0132\033.vi" - "am.app.v1.SessionsConfigR\010sessions\022\\\n\030tr" - "affic_tunnel_endpoints\030\006 \003(\0132\".viam.app." - "v1.TrafficTunnelEndpointR\026trafficTunnelE" - "ndpoints\022\025\n\006no_tls\030\007 \001(\010R\005noTls\"V\n\016Sessi" - "onsConfig\022D\n\020heartbeat_window\030\001 \001(\0132\031.go" - "ogle.protobuf.DurationR\017heartbeatWindow\"" - "u\n\025TrafficTunnelEndpoint\022\022\n\004port\030\001 \001(\005R\004" - "port\022H\n\022connection_timeout\030\002 \001(\0132\031.googl" - "e.protobuf.DurationR\021connectionTimeout\"\345" - "\001\n\nAuthConfig\022:\n\010handlers\030\001 \003(\0132\036.viam.a" - "pp.v1.AuthHandlerConfigR\010handlers\022*\n\021tls" - "_auth_entities\030\002 \003(\tR\017tlsAuthEntities\022V\n" - "\024external_auth_config\030\003 \001(\0132\037.viam.app.v" - "1.ExternalAuthConfigH\000R\022externalAuthConf" - "ig\210\001\001B\027\n\025_external_auth_config\"7\n\010JWKSFi" - "le\022+\n\004json\030\001 \001(\0132\027.google.protobuf.Struc" - "tR\004json\"\?\n\022ExternalAuthConfig\022)\n\004jwks\030\001 " - "\001(\0132\025.viam.app.v1.JWKSFileR\004jwks\"v\n\021Auth" - "HandlerConfig\0220\n\004type\030\001 \001(\0162\034.viam.app.v" - "1.CredentialsTypeR\004type\022/\n\006config\030\005 \001(\0132" - "\027.google.protobuf.StructR\006config\"\315\001\n\005Fra" - "me\022\026\n\006parent\030\001 \001(\tR\006parent\022:\n\013translatio" - "n\030\002 \001(\0132\030.viam.app.v1.TranslationR\013trans" - "lation\022:\n\013orientation\030\003 \001(\0132\030.viam.app.v" - "1.OrientationR\013orientation\0224\n\010geometry\030\004" - " \001(\0132\030.viam.common.v1.GeometryR\010geometry" - "\"(\n\020LogConfiguration\022\024\n\005level\030\001 \001(\tR\005lev" - "el\"7\n\013Translation\022\014\n\001x\030\001 \001(\001R\001x\022\014\n\001y\030\002 \001" - "(\001R\001y\022\014\n\001z\030\003 \001(\001R\001z\"\320\007\n\013Orientation\022O\n\016n" - "o_orientation\030\001 \001(\0132&.viam.app.v1.Orient" - "ation.NoOrientationH\000R\rnoOrientation\022Z\n\016" - "vector_radians\030\002 \001(\01321.viam.app.v1.Orien" - "tation.OrientationVectorRadiansH\000R\rvecto" - "rRadians\022Z\n\016vector_degrees\030\003 \001(\01321.viam." - "app.v1.Orientation.OrientationVectorDegr" - "eesH\000R\rvectorDegrees\022I\n\014euler_angles\030\004 \001" - "(\0132$.viam.app.v1.Orientation.EulerAngles" - "H\000R\013eulerAngles\022F\n\013axis_angles\030\005 \001(\0132#.v" - "iam.app.v1.Orientation.AxisAnglesH\000R\naxi" - "sAngles\022E\n\nquaternion\030\006 \001(\0132#.viam.app.v" - "1.Orientation.QuaternionH\000R\nquaternion\032\017" - "\n\rNoOrientation\032j\n\030OrientationVectorRadi" - "ans\022$\n\005theta\030\001 \001(\001B\016\232\204\236\003\tjson:\"th\"R\005thet" - "a\022\014\n\001x\030\002 \001(\001R\001x\022\014\n\001y\030\003 \001(\001R\001y\022\014\n\001z\030\004 \001(\001" - "R\001z\032j\n\030OrientationVectorDegrees\022$\n\005theta" - "\030\001 \001(\001B\016\232\204\236\003\tjson:\"th\"R\005theta\022\014\n\001x\030\002 \001(\001" - "R\001x\022\014\n\001y\030\003 \001(\001R\001y\022\014\n\001z\030\004 \001(\001R\001z\032I\n\013Euler" - "Angles\022\022\n\004roll\030\001 \001(\001R\004roll\022\024\n\005pitch\030\002 \001(" - "\001R\005pitch\022\020\n\003yaw\030\003 \001(\001R\003yaw\032\\\n\nAxisAngles" - "\022$\n\005theta\030\001 \001(\001B\016\232\204\236\003\tjson:\"th\"R\005theta\022\014" - "\n\001x\030\002 \001(\001R\001x\022\014\n\001y\030\003 \001(\001R\001y\022\014\n\001z\030\004 \001(\001R\001z" - "\032D\n\nQuaternion\022\014\n\001w\030\001 \001(\001R\001w\022\014\n\001x\030\002 \001(\001R" - "\001x\022\014\n\001y\030\003 \001(\001R\001y\022\014\n\001z\030\004 \001(\001R\001zB\006\n\004type\"\215" - "\004\n\014RemoteConfig\022\022\n\004name\030\001 \001(\tR\004name\022\030\n\007a" - "ddress\030\002 \001(\tR\007address\022(\n\005frame\030\003 \001(\0132\022.v" - "iam.app.v1.FrameR\005frame\022+\n\004auth\030\004 \001(\0132\027." - "viam.app.v1.RemoteAuthR\004auth\022\035\n\nmanaged_" - "by\030\005 \001(\tR\tmanagedBy\022\032\n\010insecure\030\006 \001(\010R\010i" - "nsecure\022U\n\031connection_check_interval\030\007 \001" - "(\0132\031.google.protobuf.DurationR\027connectio" - "nCheckInterval\022H\n\022reconnect_interval\030\010 \001" - "(\0132\031.google.protobuf.DurationR\021reconnect" - "Interval\022l\n\017service_configs\030\t \003(\0132\'.viam" - ".app.v1.ResourceLevelServiceConfigB\032\232\204\236\003" - "\025json:\"service_config\"R\016serviceConfigs\022\026" - "\n\006secret\030\n \001(\tR\006secret\022\026\n\006prefix\030\013 \001(\tR\006" - "prefix\"\306\001\n\nRemoteAuth\022E\n\013credentials\030\001 \001" - "(\0132#.viam.app.v1.RemoteAuth.CredentialsR" - "\013credentials\022\026\n\006entity\030\002 \001(\tR\006entity\032Y\n\013" - "Credentials\0220\n\004type\030\001 \001(\0162\034.viam.app.v1." - "CredentialsTypeR\004type\022\030\n\007payload\030\002 \001(\tR\007" - "payload\"\321\001\n\tAgentInfo\022\022\n\004host\030\001 \001(\tR\004hos" - "t\022\016\n\002os\030\002 \001(\tR\002os\022\020\n\003ips\030\003 \003(\tR\003ips\022\030\n\007v" - "ersion\030\004 \001(\tR\007version\022!\n\014git_revision\030\005 " - "\001(\tR\013gitRevision\022\037\n\010platform\030\006 \001(\tH\000R\010pl" - "atform\210\001\001\022#\n\rplatform_tags\030\007 \003(\tR\014platfo" - "rmTagsB\013\n\t_platform\"j\n\rConfigRequest\022\016\n\002" - "id\030\001 \001(\tR\002id\022:\n\nagent_info\030\002 \001(\0132\026.viam." - "app.v1.AgentInfoH\000R\tagentInfo\210\001\001B\r\n\013_age" - "nt_info\"B\n\016ConfigResponse\0220\n\006config\030\001 \001(" - "\0132\030.viam.app.v1.RobotConfigR\006config\"$\n\022C" - "ertificateRequest\022\016\n\002id\030\001 \001(\tR\002id\"v\n\023Cer" - "tificateResponse\022\016\n\002id\030\001 \001(\tR\002id\022\'\n\017tls_" - "certificate\030\002 \001(\tR\016tlsCertificate\022&\n\017tls" - "_private_key\030\003 \001(\tR\rtlsPrivateKey\"J\n\nLog" - "Request\022\016\n\002id\030\001 \001(\tR\002id\022,\n\004logs\030\002 \003(\0132\030." - "viam.common.v1.LogEntryR\004logs\"\r\n\013LogResp" - "onse\"%\n\023NeedsRestartRequest\022\016\n\002id\030\001 \001(\tR" - "\002id\"\232\001\n\024NeedsRestartResponse\022\016\n\002id\030\001 \001(\t" - "R\002id\022!\n\014must_restart\030\002 \001(\010R\013mustRestart\022" - "O\n\026restart_check_interval\030\003 \001(\0132\031.google" - ".protobuf.DurationR\024restartCheckInterval" - "\"\216\003\n\014ModuleConfig\022\022\n\004name\030\001 \001(\tR\004name\022\022\n" - "\004path\030\002 \001(\tR\004path\022\033\n\tlog_level\030\003 \001(\tR\010lo" - "gLevel\022\022\n\004type\030\004 \001(\tR\004type\022\033\n\tmodule_id\030" - "\005 \001(\tR\010moduleId\0224\n\003env\030\006 \003(\0132\".viam.app." - "v1.ModuleConfig.EnvEntryR\003env\0228\n\006status\030" - "\007 \001(\0132 .viam.app.v1.AppValidationStatusR" - "\006status\022E\n\021first_run_timeout\030\010 \001(\0132\031.goo" - "gle.protobuf.DurationR\017firstRunTimeout\022\031" - "\n\010tcp_mode\030\t \001(\010R\007tcpMode\0326\n\010EnvEntry\022\020\n" - "\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005value:\0028" - "\001\"\245\001\n\rPackageConfig\022\022\n\004name\030\001 \001(\tR\004name\022" - "\030\n\007package\030\002 \001(\tR\007package\022\030\n\007version\030\003 \001" - "(\tR\007version\022\022\n\004type\030\004 \001(\tR\004type\0228\n\006statu" - "s\030\005 \001(\0132 .viam.app.v1.AppValidationStatu" - "sR\006status\"\212\001\n\021MaintenanceConfig\022=\n\013senso" - "r_name\030\001 \001(\0132\034.viam.common.v1.ResourceNa" - "meR\nsensorName\0226\n\027maintenance_allowed_ke" - "y\030\002 \001(\tR\025maintenanceAllowedKey*\277\001\n\017Crede" - "ntialsType\022 \n\034CREDENTIALS_TYPE_UNSPECIFI" - "ED\020\000\022\035\n\031CREDENTIALS_TYPE_INTERNAL\020\001\022\034\n\030C" - "REDENTIALS_TYPE_API_KEY\020\002\022!\n\035CREDENTIALS" - "_TYPE_ROBOT_SECRET\020\003\022*\n&CREDENTIALS_TYPE" - "_ROBOT_LOCATION_SECRET\020\0042\262\002\n\014RobotServic" - "e\022A\n\006Config\022\032.viam.app.v1.ConfigRequest\032" - "\033.viam.app.v1.ConfigResponse\022P\n\013Certific" - "ate\022\037.viam.app.v1.CertificateRequest\032 .v" - "iam.app.v1.CertificateResponse\0228\n\003Log\022\027." - "viam.app.v1.LogRequest\032\030.viam.app.v1.Log" - "Response\022S\n\014NeedsRestart\022 .viam.app.v1.N" - "eedsRestartRequest\032!.viam.app.v1.NeedsRe" - "startResponseB\030Z\026go.viam.com/api/app/v1b" - "\006proto3" + "(\0132\027.google.protobuf.StructR\007command\022J\n\021" + "log_configuration\030\006 \001(\0132\035.viam.app.v1.Lo" + "gConfigurationR\020logConfiguration\"8\n\016Loca" + "tionSecret\022\016\n\002id\030\001 \001(\tR\002id\022\026\n\006secret\030\002 \001" + "(\tR\006secret\"+\n\023AppValidationStatus\022\024\n\005err" + "or\030\001 \001(\tR\005error\"\276\003\n\013CloudConfig\022\016\n\002id\030\001 " + "\001(\tR\002id\022\022\n\004fqdn\030\002 \001(\tR\004fqdn\022\035\n\nlocal_fqd" + "n\030\003 \001(\tR\tlocalFqdn\022\035\n\nmanaged_by\030\004 \001(\tR\t" + "managedBy\022+\n\021signaling_address\030\005 \001(\tR\020si" + "gnalingAddress\022-\n\022signaling_insecure\030\006 \001" + "(\010R\021signalingInsecure\022+\n\017location_secret" + "\030\007 \001(\tB\002\030\001R\016locationSecret\022\026\n\006secret\030\010 \001" + "(\tR\006secret\022F\n\020location_secrets\030\t \003(\0132\033.v" + "iam.app.v1.LocationSecretR\017locationSecre" + "ts\022$\n\016primary_org_id\030\n \001(\tR\014primaryOrgId" + "\022\037\n\013location_id\030\013 \001(\tR\nlocationId\022\035\n\nmac" + "hine_id\030\014 \001(\tR\tmachineId\"\273\003\n\017ComponentCo" + "nfig\022\022\n\004name\030\001 \001(\tR\004name\022\034\n\tnamespace\030\002 " + "\001(\tR\tnamespace\022\022\n\004type\030\003 \001(\tR\004type\022\024\n\005mo" + "del\030\004 \001(\tR\005model\022(\n\005frame\030\005 \001(\0132\022.viam.a" + "pp.v1.FrameR\005frame\022\035\n\ndepends_on\030\006 \003(\tR\t" + "dependsOn\022l\n\017service_configs\030\007 \003(\0132\'.via" + "m.app.v1.ResourceLevelServiceConfigB\032\232\204\236" + "\003\025json:\"service_config\"R\016serviceConfigs\022" + "7\n\nattributes\030\010 \001(\0132\027.google.protobuf.St" + "ructR\nattributes\022\020\n\003api\030\t \001(\tR\003api\022J\n\021lo" + "g_configuration\030\n \001(\0132\035.viam.app.v1.LogC" + "onfigurationR\020logConfiguration\"i\n\032Resour" + "ceLevelServiceConfig\022\022\n\004type\030\001 \001(\tR\004type" + "\0227\n\nattributes\030\002 \001(\0132\027.google.protobuf.S" + "tructR\nattributes\"\360\002\n\rProcessConfig\022\016\n\002i" + "d\030\001 \001(\tR\002id\022\022\n\004name\030\002 \001(\tR\004name\022\022\n\004args\030" + "\003 \003(\tR\004args\022\020\n\003cwd\030\004 \001(\tR\003cwd\022\031\n\010one_sho" + "t\030\005 \001(\010R\007oneShot\022\020\n\003log\030\006 \001(\010R\003log\022\037\n\013st" + "op_signal\030\007 \001(\005R\nstopSignal\022<\n\014stop_time" + "out\030\010 \001(\0132\031.google.protobuf.DurationR\013st" + "opTimeout\0225\n\003env\030\t \003(\0132#.viam.app.v1.Pro" + "cessConfig.EnvEntryR\003env\022\032\n\010username\030\n \001" + "(\tR\010username\0326\n\010EnvEntry\022\020\n\003key\030\001 \001(\tR\003k" + "ey\022\024\n\005value\030\002 \001(\tR\005value:\0028\001\"\217\003\n\rService" + "Config\022\022\n\004name\030\001 \001(\tR\004name\022\034\n\tnamespace\030" + "\002 \001(\tR\tnamespace\022\022\n\004type\030\003 \001(\tR\004type\0227\n\n" + "attributes\030\004 \001(\0132\027.google.protobuf.Struc" + "tR\nattributes\022\035\n\ndepends_on\030\005 \003(\tR\tdepen" + "dsOn\022\024\n\005model\030\006 \001(\tR\005model\022\020\n\003api\030\t \001(\tR" + "\003api\022l\n\017service_configs\030\n \003(\0132\'.viam.app" + ".v1.ResourceLevelServiceConfigB\032\232\204\236\003\025jso" + "n:\"service_config\"R\016serviceConfigs\022J\n\021lo" + "g_configuration\030\013 \001(\0132\035.viam.app.v1.LogC" + "onfigurationR\020logConfiguration\"\272\002\n\rNetwo" + "rkConfig\022\022\n\004fqdn\030\001 \001(\tR\004fqdn\022!\n\014bind_add" + "ress\030\002 \001(\tR\013bindAddress\022\"\n\rtls_cert_file" + "\030\003 \001(\tR\013tlsCertFile\022 \n\014tls_key_file\030\004 \001(" + "\tR\ntlsKeyFile\0227\n\010sessions\030\005 \001(\0132\033.viam.a" + "pp.v1.SessionsConfigR\010sessions\022\\\n\030traffi" + "c_tunnel_endpoints\030\006 \003(\0132\".viam.app.v1.T" + "rafficTunnelEndpointR\026trafficTunnelEndpo" + "ints\022\025\n\006no_tls\030\007 \001(\010R\005noTls\"V\n\016SessionsC" + "onfig\022D\n\020heartbeat_window\030\001 \001(\0132\031.google" + ".protobuf.DurationR\017heartbeatWindow\"u\n\025T" + "rafficTunnelEndpoint\022\022\n\004port\030\001 \001(\005R\004port" + "\022H\n\022connection_timeout\030\002 \001(\0132\031.google.pr" + "otobuf.DurationR\021connectionTimeout\"\345\001\n\nA" + "uthConfig\022:\n\010handlers\030\001 \003(\0132\036.viam.app.v" + "1.AuthHandlerConfigR\010handlers\022*\n\021tls_aut" + "h_entities\030\002 \003(\tR\017tlsAuthEntities\022V\n\024ext" + "ernal_auth_config\030\003 \001(\0132\037.viam.app.v1.Ex" + "ternalAuthConfigH\000R\022externalAuthConfig\210\001" + "\001B\027\n\025_external_auth_config\"7\n\010JWKSFile\022+" + "\n\004json\030\001 \001(\0132\027.google.protobuf.StructR\004j" + "son\"\?\n\022ExternalAuthConfig\022)\n\004jwks\030\001 \001(\0132" + "\025.viam.app.v1.JWKSFileR\004jwks\"v\n\021AuthHand" + "lerConfig\0220\n\004type\030\001 \001(\0162\034.viam.app.v1.Cr" + "edentialsTypeR\004type\022/\n\006config\030\005 \001(\0132\027.go" + "ogle.protobuf.StructR\006config\"\315\001\n\005Frame\022\026" + "\n\006parent\030\001 \001(\tR\006parent\022:\n\013translation\030\002 " + "\001(\0132\030.viam.app.v1.TranslationR\013translati" + "on\022:\n\013orientation\030\003 \001(\0132\030.viam.app.v1.Or" + "ientationR\013orientation\0224\n\010geometry\030\004 \001(\013" + "2\030.viam.common.v1.GeometryR\010geometry\"(\n\020" + "LogConfiguration\022\024\n\005level\030\001 \001(\tR\005level\"7" + "\n\013Translation\022\014\n\001x\030\001 \001(\001R\001x\022\014\n\001y\030\002 \001(\001R\001" + "y\022\014\n\001z\030\003 \001(\001R\001z\"\320\007\n\013Orientation\022O\n\016no_or" + "ientation\030\001 \001(\0132&.viam.app.v1.Orientatio" + "n.NoOrientationH\000R\rnoOrientation\022Z\n\016vect" + "or_radians\030\002 \001(\01321.viam.app.v1.Orientati" + "on.OrientationVectorRadiansH\000R\rvectorRad" + "ians\022Z\n\016vector_degrees\030\003 \001(\01321.viam.app." + "v1.Orientation.OrientationVectorDegreesH" + "\000R\rvectorDegrees\022I\n\014euler_angles\030\004 \001(\0132$" + ".viam.app.v1.Orientation.EulerAnglesH\000R\013" + "eulerAngles\022F\n\013axis_angles\030\005 \001(\0132#.viam." + "app.v1.Orientation.AxisAnglesH\000R\naxisAng" + "les\022E\n\nquaternion\030\006 \001(\0132#.viam.app.v1.Or" + "ientation.QuaternionH\000R\nquaternion\032\017\n\rNo" + "Orientation\032j\n\030OrientationVectorRadians\022" + "$\n\005theta\030\001 \001(\001B\016\232\204\236\003\tjson:\"th\"R\005theta\022\014\n" + "\001x\030\002 \001(\001R\001x\022\014\n\001y\030\003 \001(\001R\001y\022\014\n\001z\030\004 \001(\001R\001z\032" + "j\n\030OrientationVectorDegrees\022$\n\005theta\030\001 \001" + "(\001B\016\232\204\236\003\tjson:\"th\"R\005theta\022\014\n\001x\030\002 \001(\001R\001x\022" + "\014\n\001y\030\003 \001(\001R\001y\022\014\n\001z\030\004 \001(\001R\001z\032I\n\013EulerAngl" + "es\022\022\n\004roll\030\001 \001(\001R\004roll\022\024\n\005pitch\030\002 \001(\001R\005p" + "itch\022\020\n\003yaw\030\003 \001(\001R\003yaw\032\\\n\nAxisAngles\022$\n\005" + "theta\030\001 \001(\001B\016\232\204\236\003\tjson:\"th\"R\005theta\022\014\n\001x\030" + "\002 \001(\001R\001x\022\014\n\001y\030\003 \001(\001R\001y\022\014\n\001z\030\004 \001(\001R\001z\032D\n\n" + "Quaternion\022\014\n\001w\030\001 \001(\001R\001w\022\014\n\001x\030\002 \001(\001R\001x\022\014" + "\n\001y\030\003 \001(\001R\001y\022\014\n\001z\030\004 \001(\001R\001zB\006\n\004type\"\215\004\n\014R" + "emoteConfig\022\022\n\004name\030\001 \001(\tR\004name\022\030\n\007addre" + "ss\030\002 \001(\tR\007address\022(\n\005frame\030\003 \001(\0132\022.viam." + "app.v1.FrameR\005frame\022+\n\004auth\030\004 \001(\0132\027.viam" + ".app.v1.RemoteAuthR\004auth\022\035\n\nmanaged_by\030\005" + " \001(\tR\tmanagedBy\022\032\n\010insecure\030\006 \001(\010R\010insec" + "ure\022U\n\031connection_check_interval\030\007 \001(\0132\031" + ".google.protobuf.DurationR\027connectionChe" + "ckInterval\022H\n\022reconnect_interval\030\010 \001(\0132\031" + ".google.protobuf.DurationR\021reconnectInte" + "rval\022l\n\017service_configs\030\t \003(\0132\'.viam.app" + ".v1.ResourceLevelServiceConfigB\032\232\204\236\003\025jso" + "n:\"service_config\"R\016serviceConfigs\022\026\n\006se" + "cret\030\n \001(\tR\006secret\022\026\n\006prefix\030\013 \001(\tR\006pref" + "ix\"\306\001\n\nRemoteAuth\022E\n\013credentials\030\001 \001(\0132#" + ".viam.app.v1.RemoteAuth.CredentialsR\013cre" + "dentials\022\026\n\006entity\030\002 \001(\tR\006entity\032Y\n\013Cred" + "entials\0220\n\004type\030\001 \001(\0162\034.viam.app.v1.Cred" + "entialsTypeR\004type\022\030\n\007payload\030\002 \001(\tR\007payl" + "oad\"\321\001\n\tAgentInfo\022\022\n\004host\030\001 \001(\tR\004host\022\016\n" + "\002os\030\002 \001(\tR\002os\022\020\n\003ips\030\003 \003(\tR\003ips\022\030\n\007versi" + "on\030\004 \001(\tR\007version\022!\n\014git_revision\030\005 \001(\tR" + "\013gitRevision\022\037\n\010platform\030\006 \001(\tH\000R\010platfo" + "rm\210\001\001\022#\n\rplatform_tags\030\007 \003(\tR\014platformTa" + "gsB\013\n\t_platform\"j\n\rConfigRequest\022\016\n\002id\030\001" + " \001(\tR\002id\022:\n\nagent_info\030\002 \001(\0132\026.viam.app." + "v1.AgentInfoH\000R\tagentInfo\210\001\001B\r\n\013_agent_i" + "nfo\"B\n\016ConfigResponse\0220\n\006config\030\001 \001(\0132\030." + "viam.app.v1.RobotConfigR\006config\"$\n\022Certi" + "ficateRequest\022\016\n\002id\030\001 \001(\tR\002id\"v\n\023Certifi" + "cateResponse\022\016\n\002id\030\001 \001(\tR\002id\022\'\n\017tls_cert" + "ificate\030\002 \001(\tR\016tlsCertificate\022&\n\017tls_pri" + "vate_key\030\003 \001(\tR\rtlsPrivateKey\"J\n\nLogRequ" + "est\022\016\n\002id\030\001 \001(\tR\002id\022,\n\004logs\030\002 \003(\0132\030.viam" + ".common.v1.LogEntryR\004logs\"\r\n\013LogResponse" + "\"%\n\023NeedsRestartRequest\022\016\n\002id\030\001 \001(\tR\002id\"" + "\232\001\n\024NeedsRestartResponse\022\016\n\002id\030\001 \001(\tR\002id" + "\022!\n\014must_restart\030\002 \001(\010R\013mustRestart\022O\n\026r" + "estart_check_interval\030\003 \001(\0132\031.google.pro" + "tobuf.DurationR\024restartCheckInterval\"\216\003\n" + "\014ModuleConfig\022\022\n\004name\030\001 \001(\tR\004name\022\022\n\004pat" + "h\030\002 \001(\tR\004path\022\033\n\tlog_level\030\003 \001(\tR\010logLev" + "el\022\022\n\004type\030\004 \001(\tR\004type\022\033\n\tmodule_id\030\005 \001(" + "\tR\010moduleId\0224\n\003env\030\006 \003(\0132\".viam.app.v1.M" + "oduleConfig.EnvEntryR\003env\0228\n\006status\030\007 \001(" + "\0132 .viam.app.v1.AppValidationStatusR\006sta" + "tus\022E\n\021first_run_timeout\030\010 \001(\0132\031.google." + "protobuf.DurationR\017firstRunTimeout\022\031\n\010tc" + "p_mode\030\t \001(\010R\007tcpMode\0326\n\010EnvEntry\022\020\n\003key" + "\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005value:\0028\001\"\245\001" + "\n\rPackageConfig\022\022\n\004name\030\001 \001(\tR\004name\022\030\n\007p" + "ackage\030\002 \001(\tR\007package\022\030\n\007version\030\003 \001(\tR\007" + "version\022\022\n\004type\030\004 \001(\tR\004type\0228\n\006status\030\005 " + "\001(\0132 .viam.app.v1.AppValidationStatusR\006s" + "tatus\"\212\001\n\021MaintenanceConfig\022=\n\013sensor_na" + "me\030\001 \001(\0132\034.viam.common.v1.ResourceNameR\n" + "sensorName\0226\n\027maintenance_allowed_key\030\002 " + "\001(\tR\025maintenanceAllowedKey*\277\001\n\017Credentia" + "lsType\022 \n\034CREDENTIALS_TYPE_UNSPECIFIED\020\000" + "\022\035\n\031CREDENTIALS_TYPE_INTERNAL\020\001\022\034\n\030CREDE" + "NTIALS_TYPE_API_KEY\020\002\022!\n\035CREDENTIALS_TYP" + "E_ROBOT_SECRET\020\003\022*\n&CREDENTIALS_TYPE_ROB" + "OT_LOCATION_SECRET\020\0042\262\002\n\014RobotService\022A\n" + "\006Config\022\032.viam.app.v1.ConfigRequest\032\033.vi" + "am.app.v1.ConfigResponse\022P\n\013Certificate\022" + "\037.viam.app.v1.CertificateRequest\032 .viam." + "app.v1.CertificateResponse\0228\n\003Log\022\027.viam" + ".app.v1.LogRequest\032\030.viam.app.v1.LogResp" + "onse\022S\n\014NeedsRestart\022 .viam.app.v1.Needs" + "RestartRequest\032!.viam.app.v1.NeedsRestar" + "tResponseB\030Z\026go.viam.com/api/app/v1b\006pro" + "to3" ; static const ::_pbi::DescriptorTable* const descriptor_table_app_2fv1_2frobot_2eproto_deps[4] = { &::descriptor_table_common_2fv1_2fcommon_2eproto, @@ -1475,7 +1479,7 @@ static const ::_pbi::DescriptorTable* const descriptor_table_app_2fv1_2frobot_2e }; static ::_pbi::once_flag descriptor_table_app_2fv1_2frobot_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_app_2fv1_2frobot_2eproto = { - false, false, 8407, descriptor_table_protodef_app_2fv1_2frobot_2eproto, + false, false, 8483, descriptor_table_protodef_app_2fv1_2frobot_2eproto, "app/v1/robot.proto", &descriptor_table_app_2fv1_2frobot_2eproto_once, descriptor_table_app_2fv1_2frobot_2eproto_deps, 4, 44, schemas, file_default_instances, TableStruct_app_2fv1_2frobot_2eproto::offsets, @@ -2549,12 +2553,17 @@ ::PROTOBUF_NAMESPACE_ID::Metadata LogPatternConfig::GetMetadata() const { class JobConfig::_Internal { public: static const ::PROTOBUF_NAMESPACE_ID::Struct& command(const JobConfig* msg); + static const ::viam::app::v1::LogConfiguration& log_configuration(const JobConfig* msg); }; const ::PROTOBUF_NAMESPACE_ID::Struct& JobConfig::_Internal::command(const JobConfig* msg) { return *msg->command_; } +const ::viam::app::v1::LogConfiguration& +JobConfig::_Internal::log_configuration(const JobConfig* msg) { + return *msg->log_configuration_; +} void JobConfig::clear_command() { if (GetArenaForAllocation() == nullptr && command_ != nullptr) { delete command_; @@ -2607,6 +2616,11 @@ JobConfig::JobConfig(const JobConfig& from) } else { command_ = nullptr; } + if (from._internal_has_log_configuration()) { + log_configuration_ = new ::viam::app::v1::LogConfiguration(*from.log_configuration_); + } else { + log_configuration_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.JobConfig) } @@ -2627,7 +2641,10 @@ method_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING method_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -command_ = nullptr; +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&command_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&log_configuration_) - + reinterpret_cast(&command_)) + sizeof(log_configuration_)); } JobConfig::~JobConfig() { @@ -2646,6 +2663,7 @@ inline void JobConfig::SharedDtor() { resource_.Destroy(); method_.Destroy(); if (this != internal_default_instance()) delete command_; + if (this != internal_default_instance()) delete log_configuration_; } void JobConfig::SetCachedSize(int size) const { @@ -2666,6 +2684,10 @@ void JobConfig::Clear() { delete command_; } command_ = nullptr; + if (GetArenaForAllocation() == nullptr && log_configuration_ != nullptr) { + delete log_configuration_; + } + log_configuration_ = nullptr; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -2723,6 +2745,14 @@ const char* JobConfig::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx } else goto handle_unusual; continue; + // .viam.app.v1.LogConfiguration log_configuration = 6 [json_name = "logConfiguration"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_log_configuration(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -2799,6 +2829,13 @@ uint8_t* JobConfig::_InternalSerialize( _Internal::command(this).GetCachedSize(), target, stream); } + // .viam.app.v1.LogConfiguration log_configuration = 6 [json_name = "logConfiguration"]; + if (this->_internal_has_log_configuration()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(6, _Internal::log_configuration(this), + _Internal::log_configuration(this).GetCachedSize(), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); @@ -2850,6 +2887,13 @@ size_t JobConfig::ByteSizeLong() const { *command_); } + // .viam.app.v1.LogConfiguration log_configuration = 6 [json_name = "logConfiguration"]; + if (this->_internal_has_log_configuration()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *log_configuration_); + } + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } @@ -2887,6 +2931,9 @@ void JobConfig::MergeFrom(const JobConfig& from) { if (from._internal_has_command()) { _internal_mutable_command()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_command()); } + if (from._internal_has_log_configuration()) { + _internal_mutable_log_configuration()->::viam::app::v1::LogConfiguration::MergeFrom(from._internal_log_configuration()); + } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } @@ -2922,7 +2969,12 @@ void JobConfig::InternalSwap(JobConfig* other) { &method_, lhs_arena, &other->method_, rhs_arena ); - swap(command_, other->command_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(JobConfig, log_configuration_) + + sizeof(JobConfig::log_configuration_) + - PROTOBUF_FIELD_OFFSET(JobConfig, command_)>( + reinterpret_cast(&command_), + reinterpret_cast(&other->command_)); } ::PROTOBUF_NAMESPACE_ID::Metadata JobConfig::GetMetadata() const { diff --git a/src/viam/api/app/v1/robot.pb.h b/src/viam/api/app/v1/robot.pb.h index 983ab416f..ca37a47ec 100644 --- a/src/viam/api/app/v1/robot.pb.h +++ b/src/viam/api/app/v1/robot.pb.h @@ -1020,6 +1020,7 @@ class JobConfig final : kResourceFieldNumber = 3, kMethodFieldNumber = 4, kCommandFieldNumber = 5, + kLogConfigurationFieldNumber = 6, }; // string name = 1 [json_name = "name"]; void clear_name(); @@ -1095,6 +1096,24 @@ class JobConfig final : ::PROTOBUF_NAMESPACE_ID::Struct* command); ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_command(); + // .viam.app.v1.LogConfiguration log_configuration = 6 [json_name = "logConfiguration"]; + bool has_log_configuration() const; + private: + bool _internal_has_log_configuration() const; + public: + void clear_log_configuration(); + const ::viam::app::v1::LogConfiguration& log_configuration() const; + PROTOBUF_NODISCARD ::viam::app::v1::LogConfiguration* release_log_configuration(); + ::viam::app::v1::LogConfiguration* mutable_log_configuration(); + void set_allocated_log_configuration(::viam::app::v1::LogConfiguration* log_configuration); + private: + const ::viam::app::v1::LogConfiguration& _internal_log_configuration() const; + ::viam::app::v1::LogConfiguration* _internal_mutable_log_configuration(); + public: + void unsafe_arena_set_allocated_log_configuration( + ::viam::app::v1::LogConfiguration* log_configuration); + ::viam::app::v1::LogConfiguration* unsafe_arena_release_log_configuration(); + // @@protoc_insertion_point(class_scope:viam.app.v1.JobConfig) private: class _Internal; @@ -1107,6 +1126,7 @@ class JobConfig final : ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr resource_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr method_; ::PROTOBUF_NAMESPACE_ID::Struct* command_; + ::viam::app::v1::LogConfiguration* log_configuration_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2frobot_2eproto; }; @@ -10030,6 +10050,96 @@ inline void JobConfig::set_allocated_command(::PROTOBUF_NAMESPACE_ID::Struct* co // @@protoc_insertion_point(field_set_allocated:viam.app.v1.JobConfig.command) } +// .viam.app.v1.LogConfiguration log_configuration = 6 [json_name = "logConfiguration"]; +inline bool JobConfig::_internal_has_log_configuration() const { + return this != internal_default_instance() && log_configuration_ != nullptr; +} +inline bool JobConfig::has_log_configuration() const { + return _internal_has_log_configuration(); +} +inline void JobConfig::clear_log_configuration() { + if (GetArenaForAllocation() == nullptr && log_configuration_ != nullptr) { + delete log_configuration_; + } + log_configuration_ = nullptr; +} +inline const ::viam::app::v1::LogConfiguration& JobConfig::_internal_log_configuration() const { + const ::viam::app::v1::LogConfiguration* p = log_configuration_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_LogConfiguration_default_instance_); +} +inline const ::viam::app::v1::LogConfiguration& JobConfig::log_configuration() const { + // @@protoc_insertion_point(field_get:viam.app.v1.JobConfig.log_configuration) + return _internal_log_configuration(); +} +inline void JobConfig::unsafe_arena_set_allocated_log_configuration( + ::viam::app::v1::LogConfiguration* log_configuration) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(log_configuration_); + } + log_configuration_ = log_configuration; + if (log_configuration) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.JobConfig.log_configuration) +} +inline ::viam::app::v1::LogConfiguration* JobConfig::release_log_configuration() { + + ::viam::app::v1::LogConfiguration* temp = log_configuration_; + log_configuration_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::app::v1::LogConfiguration* JobConfig::unsafe_arena_release_log_configuration() { + // @@protoc_insertion_point(field_release:viam.app.v1.JobConfig.log_configuration) + + ::viam::app::v1::LogConfiguration* temp = log_configuration_; + log_configuration_ = nullptr; + return temp; +} +inline ::viam::app::v1::LogConfiguration* JobConfig::_internal_mutable_log_configuration() { + + if (log_configuration_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::LogConfiguration>(GetArenaForAllocation()); + log_configuration_ = p; + } + return log_configuration_; +} +inline ::viam::app::v1::LogConfiguration* JobConfig::mutable_log_configuration() { + ::viam::app::v1::LogConfiguration* _msg = _internal_mutable_log_configuration(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.JobConfig.log_configuration) + return _msg; +} +inline void JobConfig::set_allocated_log_configuration(::viam::app::v1::LogConfiguration* log_configuration) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete log_configuration_; + } + if (log_configuration) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(log_configuration); + if (message_arena != submessage_arena) { + log_configuration = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, log_configuration, submessage_arena); + } + + } else { + + } + log_configuration_ = log_configuration; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.JobConfig.log_configuration) +} + // ------------------------------------------------------------------- // LocationSecret diff --git a/src/viam/api/buf.lock b/src/viam/api/buf.lock index ab12a614e..300eb28d0 100644 --- a/src/viam/api/buf.lock +++ b/src/viam/api/buf.lock @@ -8,7 +8,7 @@ deps: - remote: buf.build owner: viamrobotics repository: api - commit: 9b74218ab9324ef0b2e89b98bbdeac57 + commit: f9de2bf596e641fab0f7c4a26883e22a - remote: buf.build owner: viamrobotics repository: goutils diff --git a/src/viam/api/component/gantry/v1/gantry.grpc.pb.cc b/src/viam/api/component/gantry/v1/gantry.grpc.pb.cc index e600ef183..f7cb914a4 100644 --- a/src/viam/api/component/gantry/v1/gantry.grpc.pb.cc +++ b/src/viam/api/component/gantry/v1/gantry.grpc.pb.cc @@ -32,6 +32,7 @@ static const char* GantryService_method_names[] = { "/viam.component.gantry.v1.GantryService/Stop", "/viam.component.gantry.v1.GantryService/IsMoving", "/viam.component.gantry.v1.GantryService/DoCommand", + "/viam.component.gantry.v1.GantryService/GetKinematics", "/viam.component.gantry.v1.GantryService/GetGeometries", }; @@ -49,7 +50,8 @@ GantryService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& chan , rpcmethod_Stop_(GantryService_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_IsMoving_(GantryService_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_DoCommand_(GantryService_method_names[6], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetGeometries_(GantryService_method_names[7], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetKinematics_(GantryService_method_names[7], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetGeometries_(GantryService_method_names[8], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status GantryService::Stub::GetPosition(::grpc::ClientContext* context, const ::viam::component::gantry::v1::GetPositionRequest& request, ::viam::component::gantry::v1::GetPositionResponse* response) { @@ -213,6 +215,29 @@ ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* Gantr return result; } +::grpc::Status GantryService::Stub::GetKinematics(::grpc::ClientContext* context, const ::viam::common::v1::GetKinematicsRequest& request, ::viam::common::v1::GetKinematicsResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::common::v1::GetKinematicsRequest, ::viam::common::v1::GetKinematicsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetKinematics_, context, request, response); +} + +void GantryService::Stub::async::GetKinematics(::grpc::ClientContext* context, const ::viam::common::v1::GetKinematicsRequest* request, ::viam::common::v1::GetKinematicsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::common::v1::GetKinematicsRequest, ::viam::common::v1::GetKinematicsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetKinematics_, context, request, response, std::move(f)); +} + +void GantryService::Stub::async::GetKinematics(::grpc::ClientContext* context, const ::viam::common::v1::GetKinematicsRequest* request, ::viam::common::v1::GetKinematicsResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetKinematics_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetKinematicsResponse>* GantryService::Stub::PrepareAsyncGetKinematicsRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetKinematicsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::common::v1::GetKinematicsResponse, ::viam::common::v1::GetKinematicsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetKinematics_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetKinematicsResponse>* GantryService::Stub::AsyncGetKinematicsRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetKinematicsRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetKinematicsRaw(context, request, cq); + result->StartCall(); + return result; +} + ::grpc::Status GantryService::Stub::GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::viam::common::v1::GetGeometriesResponse* response) { return ::grpc::internal::BlockingUnaryCall< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetGeometries_, context, request, response); } @@ -310,6 +335,16 @@ GantryService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( GantryService_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< GantryService::Service, ::viam::common::v1::GetKinematicsRequest, ::viam::common::v1::GetKinematicsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](GantryService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::common::v1::GetKinematicsRequest* req, + ::viam::common::v1::GetKinematicsResponse* resp) { + return service->GetKinematics(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + GantryService_method_names[8], + ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< GantryService::Service, ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](GantryService::Service* service, ::grpc::ServerContext* ctx, @@ -371,6 +406,13 @@ ::grpc::Status GantryService::Service::DoCommand(::grpc::ServerContext* context, return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } +::grpc::Status GantryService::Service::GetKinematics(::grpc::ServerContext* context, const ::viam::common::v1::GetKinematicsRequest* request, ::viam::common::v1::GetKinematicsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + ::grpc::Status GantryService::Service::GetGeometries(::grpc::ServerContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response) { (void) context; (void) request; diff --git a/src/viam/api/component/gantry/v1/gantry.grpc.pb.h b/src/viam/api/component/gantry/v1/gantry.grpc.pb.h index 51ca10cd7..40c2b3a78 100644 --- a/src/viam/api/component/gantry/v1/gantry.grpc.pb.h +++ b/src/viam/api/component/gantry/v1/gantry.grpc.pb.h @@ -95,6 +95,13 @@ class GantryService final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::DoCommandResponse>> PrepareAsyncDoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::DoCommandResponse>>(PrepareAsyncDoCommandRaw(context, request, cq)); } + virtual ::grpc::Status GetKinematics(::grpc::ClientContext* context, const ::viam::common::v1::GetKinematicsRequest& request, ::viam::common::v1::GetKinematicsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::GetKinematicsResponse>> AsyncGetKinematics(::grpc::ClientContext* context, const ::viam::common::v1::GetKinematicsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::GetKinematicsResponse>>(AsyncGetKinematicsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::GetKinematicsResponse>> PrepareAsyncGetKinematics(::grpc::ClientContext* context, const ::viam::common::v1::GetKinematicsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::GetKinematicsResponse>>(PrepareAsyncGetKinematicsRaw(context, request, cq)); + } // GetGeometries returns the geometries of the component in their current configuration virtual ::grpc::Status GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::viam::common::v1::GetGeometriesResponse* response) = 0; std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::GetGeometriesResponse>> AsyncGetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { @@ -127,6 +134,8 @@ class GantryService final { // DoCommand sends/receives arbitrary commands virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function) = 0; virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void GetKinematics(::grpc::ClientContext* context, const ::viam::common::v1::GetKinematicsRequest* request, ::viam::common::v1::GetKinematicsResponse* response, std::function) = 0; + virtual void GetKinematics(::grpc::ClientContext* context, const ::viam::common::v1::GetKinematicsRequest* request, ::viam::common::v1::GetKinematicsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; // GetGeometries returns the geometries of the component in their current configuration virtual void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, std::function) = 0; virtual void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; @@ -149,6 +158,8 @@ class GantryService final { virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::gantry::v1::IsMovingResponse>* PrepareAsyncIsMovingRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::IsMovingRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::DoCommandResponse>* AsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::DoCommandResponse>* PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::GetKinematicsResponse>* AsyncGetKinematicsRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetKinematicsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::GetKinematicsResponse>* PrepareAsyncGetKinematicsRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetKinematicsRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::GetGeometriesResponse>* AsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::GetGeometriesResponse>* PrepareAsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) = 0; }; @@ -204,6 +215,13 @@ class GantryService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>> PrepareAsyncDoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>>(PrepareAsyncDoCommandRaw(context, request, cq)); } + ::grpc::Status GetKinematics(::grpc::ClientContext* context, const ::viam::common::v1::GetKinematicsRequest& request, ::viam::common::v1::GetKinematicsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetKinematicsResponse>> AsyncGetKinematics(::grpc::ClientContext* context, const ::viam::common::v1::GetKinematicsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetKinematicsResponse>>(AsyncGetKinematicsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetKinematicsResponse>> PrepareAsyncGetKinematics(::grpc::ClientContext* context, const ::viam::common::v1::GetKinematicsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetKinematicsResponse>>(PrepareAsyncGetKinematicsRaw(context, request, cq)); + } ::grpc::Status GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::viam::common::v1::GetGeometriesResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>> AsyncGetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>>(AsyncGetGeometriesRaw(context, request, cq)); @@ -228,6 +246,8 @@ class GantryService final { void IsMoving(::grpc::ClientContext* context, const ::viam::component::gantry::v1::IsMovingRequest* request, ::viam::component::gantry::v1::IsMovingResponse* response, ::grpc::ClientUnaryReactor* reactor) override; void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function) override; void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetKinematics(::grpc::ClientContext* context, const ::viam::common::v1::GetKinematicsRequest* request, ::viam::common::v1::GetKinematicsResponse* response, std::function) override; + void GetKinematics(::grpc::ClientContext* context, const ::viam::common::v1::GetKinematicsRequest* request, ::viam::common::v1::GetKinematicsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, std::function) override; void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; private: @@ -255,6 +275,8 @@ class GantryService final { ::grpc::ClientAsyncResponseReader< ::viam::component::gantry::v1::IsMovingResponse>* PrepareAsyncIsMovingRaw(::grpc::ClientContext* context, const ::viam::component::gantry::v1::IsMovingRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* AsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetKinematicsResponse>* AsyncGetKinematicsRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetKinematicsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetKinematicsResponse>* PrepareAsyncGetKinematicsRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetKinematicsRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* AsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* PrepareAsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) override; const ::grpc::internal::RpcMethod rpcmethod_GetPosition_; @@ -264,6 +286,7 @@ class GantryService final { const ::grpc::internal::RpcMethod rpcmethod_Stop_; const ::grpc::internal::RpcMethod rpcmethod_IsMoving_; const ::grpc::internal::RpcMethod rpcmethod_DoCommand_; + const ::grpc::internal::RpcMethod rpcmethod_GetKinematics_; const ::grpc::internal::RpcMethod rpcmethod_GetGeometries_; }; static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); @@ -286,6 +309,7 @@ class GantryService final { virtual ::grpc::Status IsMoving(::grpc::ServerContext* context, const ::viam::component::gantry::v1::IsMovingRequest* request, ::viam::component::gantry::v1::IsMovingResponse* response); // DoCommand sends/receives arbitrary commands virtual ::grpc::Status DoCommand(::grpc::ServerContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response); + virtual ::grpc::Status GetKinematics(::grpc::ServerContext* context, const ::viam::common::v1::GetKinematicsRequest* request, ::viam::common::v1::GetKinematicsResponse* response); // GetGeometries returns the geometries of the component in their current configuration virtual ::grpc::Status GetGeometries(::grpc::ServerContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response); }; @@ -430,12 +454,32 @@ class GantryService final { } }; template + class WithAsyncMethod_GetKinematics : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetKinematics() { + ::grpc::Service::MarkMethodAsync(7); + } + ~WithAsyncMethod_GetKinematics() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetKinematics(::grpc::ServerContext* /*context*/, const ::viam::common::v1::GetKinematicsRequest* /*request*/, ::viam::common::v1::GetKinematicsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetKinematics(::grpc::ServerContext* context, ::viam::common::v1::GetKinematicsRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::common::v1::GetKinematicsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template class WithAsyncMethod_GetGeometries : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_GetGeometries() { - ::grpc::Service::MarkMethodAsync(7); + ::grpc::Service::MarkMethodAsync(8); } ~WithAsyncMethod_GetGeometries() override { BaseClassMustBeDerivedFromService(this); @@ -446,10 +490,10 @@ class GantryService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetGeometries(::grpc::ServerContext* context, ::viam::common::v1::GetGeometriesRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::common::v1::GetGeometriesResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); } }; - typedef WithAsyncMethod_GetPosition > > > > > > > AsyncService; + typedef WithAsyncMethod_GetPosition > > > > > > > > AsyncService; template class WithCallbackMethod_GetPosition : public BaseClass { private: @@ -640,18 +684,45 @@ class GantryService final { ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) { return nullptr; } }; template + class WithCallbackMethod_GetKinematics : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetKinematics() { + ::grpc::Service::MarkMethodCallback(7, + new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetKinematicsRequest, ::viam::common::v1::GetKinematicsResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::common::v1::GetKinematicsRequest* request, ::viam::common::v1::GetKinematicsResponse* response) { return this->GetKinematics(context, request, response); }));} + void SetMessageAllocatorFor_GetKinematics( + ::grpc::MessageAllocator< ::viam::common::v1::GetKinematicsRequest, ::viam::common::v1::GetKinematicsResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(7); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetKinematicsRequest, ::viam::common::v1::GetKinematicsResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetKinematics() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetKinematics(::grpc::ServerContext* /*context*/, const ::viam::common::v1::GetKinematicsRequest* /*request*/, ::viam::common::v1::GetKinematicsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetKinematics( + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::GetKinematicsRequest* /*request*/, ::viam::common::v1::GetKinematicsResponse* /*response*/) { return nullptr; } + }; + template class WithCallbackMethod_GetGeometries : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_GetGeometries() { - ::grpc::Service::MarkMethodCallback(7, + ::grpc::Service::MarkMethodCallback(8, new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( [this]( ::grpc::CallbackServerContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response) { return this->GetGeometries(context, request, response); }));} void SetMessageAllocatorFor_GetGeometries( ::grpc::MessageAllocator< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(7); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(8); static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>*>(handler) ->SetMessageAllocator(allocator); } @@ -666,7 +737,7 @@ class GantryService final { virtual ::grpc::ServerUnaryReactor* GetGeometries( ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) { return nullptr; } }; - typedef WithCallbackMethod_GetPosition > > > > > > > CallbackService; + typedef WithCallbackMethod_GetPosition > > > > > > > > CallbackService; typedef CallbackService ExperimentalCallbackService; template class WithGenericMethod_GetPosition : public BaseClass { @@ -788,12 +859,29 @@ class GantryService final { } }; template + class WithGenericMethod_GetKinematics : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetKinematics() { + ::grpc::Service::MarkMethodGeneric(7); + } + ~WithGenericMethod_GetKinematics() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetKinematics(::grpc::ServerContext* /*context*/, const ::viam::common::v1::GetKinematicsRequest* /*request*/, ::viam::common::v1::GetKinematicsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template class WithGenericMethod_GetGeometries : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_GetGeometries() { - ::grpc::Service::MarkMethodGeneric(7); + ::grpc::Service::MarkMethodGeneric(8); } ~WithGenericMethod_GetGeometries() override { BaseClassMustBeDerivedFromService(this); @@ -945,12 +1033,32 @@ class GantryService final { } }; template + class WithRawMethod_GetKinematics : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetKinematics() { + ::grpc::Service::MarkMethodRaw(7); + } + ~WithRawMethod_GetKinematics() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetKinematics(::grpc::ServerContext* /*context*/, const ::viam::common::v1::GetKinematicsRequest* /*request*/, ::viam::common::v1::GetKinematicsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetKinematics(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template class WithRawMethod_GetGeometries : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_GetGeometries() { - ::grpc::Service::MarkMethodRaw(7); + ::grpc::Service::MarkMethodRaw(8); } ~WithRawMethod_GetGeometries() override { BaseClassMustBeDerivedFromService(this); @@ -961,7 +1069,7 @@ class GantryService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetGeometries(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1119,12 +1227,34 @@ class GantryService final { ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } }; template + class WithRawCallbackMethod_GetKinematics : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetKinematics() { + ::grpc::Service::MarkMethodRawCallback(7, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetKinematics(context, request, response); })); + } + ~WithRawCallbackMethod_GetKinematics() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetKinematics(::grpc::ServerContext* /*context*/, const ::viam::common::v1::GetKinematicsRequest* /*request*/, ::viam::common::v1::GetKinematicsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetKinematics( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template class WithRawCallbackMethod_GetGeometries : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_GetGeometries() { - ::grpc::Service::MarkMethodRawCallback(7, + ::grpc::Service::MarkMethodRawCallback(8, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetGeometries(context, request, response); })); @@ -1330,12 +1460,39 @@ class GantryService final { virtual ::grpc::Status StreamedDoCommand(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::common::v1::DoCommandRequest,::viam::common::v1::DoCommandResponse>* server_unary_streamer) = 0; }; template + class WithStreamedUnaryMethod_GetKinematics : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetKinematics() { + ::grpc::Service::MarkMethodStreamed(7, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::common::v1::GetKinematicsRequest, ::viam::common::v1::GetKinematicsResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::common::v1::GetKinematicsRequest, ::viam::common::v1::GetKinematicsResponse>* streamer) { + return this->StreamedGetKinematics(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetKinematics() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetKinematics(::grpc::ServerContext* /*context*/, const ::viam::common::v1::GetKinematicsRequest* /*request*/, ::viam::common::v1::GetKinematicsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetKinematics(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::common::v1::GetKinematicsRequest,::viam::common::v1::GetKinematicsResponse>* server_unary_streamer) = 0; + }; + template class WithStreamedUnaryMethod_GetGeometries : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_GetGeometries() { - ::grpc::Service::MarkMethodStreamed(7, + ::grpc::Service::MarkMethodStreamed(8, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::GetGeometriesRequest, ::viam::common::v1::GetGeometriesResponse>( [this](::grpc::ServerContext* context, @@ -1356,9 +1513,9 @@ class GantryService final { // replace default version of method with streamed unary virtual ::grpc::Status StreamedGetGeometries(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::common::v1::GetGeometriesRequest,::viam::common::v1::GetGeometriesResponse>* server_unary_streamer) = 0; }; - typedef WithStreamedUnaryMethod_GetPosition > > > > > > > StreamedUnaryService; + typedef WithStreamedUnaryMethod_GetPosition > > > > > > > > StreamedUnaryService; typedef Service SplitStreamedService; - typedef WithStreamedUnaryMethod_GetPosition > > > > > > > StreamedService; + typedef WithStreamedUnaryMethod_GetPosition > > > > > > > > StreamedService; }; } // namespace v1 diff --git a/src/viam/api/component/gantry/v1/gantry.pb.cc b/src/viam/api/component/gantry/v1/gantry.pb.cc index 93d2c6326..f9ed8c3f4 100644 --- a/src/viam/api/component/gantry/v1/gantry.pb.cc +++ b/src/viam/api/component/gantry/v1/gantry.pb.cc @@ -354,7 +354,7 @@ const char descriptor_table_protodef_component_2fgantry_2fv1_2fgantry_2eproto[] "sMm\022\033\n\tis_moving\030\003 \001(\010R\010isMoving\"%\n\017IsMo" "vingRequest\022\022\n\004name\030\001 \001(\tR\004name\"/\n\020IsMov" "ingResponse\022\033\n\tis_moving\030\001 \001(\010R\010isMoving" - "2\332\t\n\rGantryService\022\241\001\n\013GetPosition\022,.via" + "2\362\n\n\rGantryService\022\241\001\n\013GetPosition\022,.via" "m.component.gantry.v1.GetPositionRequest" "\032-.viam.component.gantry.v1.GetPositionR" "esponse\"5\202\323\344\223\002/\022-/viam/api/v1/component/" @@ -381,13 +381,16 @@ const char descriptor_table_protodef_component_2fgantry_2fv1_2fgantry_2eproto[] "Command\022 .viam.common.v1.DoCommandReques" "t\032!.viam.common.v1.DoCommandResponse\"7\202\323" "\344\223\0021\"//viam/api/v1/component/gantry/{nam" - "e}/do_command\022\225\001\n\rGetGeometries\022$.viam.c" - "ommon.v1.GetGeometriesRequest\032%.viam.com" - "mon.v1.GetGeometriesResponse\"7\202\323\344\223\0021\022//v" - "iam/api/v1/component/gantry/{name}/geome" - "triesBC\n\034com.viam.component.gantry.v1Z#g" - "o.viam.com/api/component/gantry/v1b\006prot" - "o3" + "e}/do_command\022\225\001\n\rGetKinematics\022$.viam.c" + "ommon.v1.GetKinematicsRequest\032%.viam.com" + "mon.v1.GetKinematicsResponse\"7\202\323\344\223\0021\022//v" + "iam/api/v1/component/gantry/{name}/kinem" + "atics\022\225\001\n\rGetGeometries\022$.viam.common.v1" + ".GetGeometriesRequest\032%.viam.common.v1.G" + "etGeometriesResponse\"7\202\323\344\223\0021\022//viam/api/" + "v1/component/gantry/{name}/geometriesBC\n" + "\034com.viam.component.gantry.v1Z#go.viam.c" + "om/api/component/gantry/v1b\006proto3" ; static const ::_pbi::DescriptorTable* const descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_deps[3] = { &::descriptor_table_common_2fv1_2fcommon_2eproto, @@ -396,7 +399,7 @@ static const ::_pbi::DescriptorTable* const descriptor_table_component_2fgantry_ }; static ::_pbi::once_flag descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto = { - false, false, 2362, descriptor_table_protodef_component_2fgantry_2fv1_2fgantry_2eproto, + false, false, 2514, descriptor_table_protodef_component_2fgantry_2fv1_2fgantry_2eproto, "component/gantry/v1/gantry.proto", &descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_once, descriptor_table_component_2fgantry_2fv1_2fgantry_2eproto_deps, 3, 13, schemas, file_default_instances, TableStruct_component_2fgantry_2fv1_2fgantry_2eproto::offsets,