From d0696a72d3b9eda9f8a34044a174780bf3ea25e6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 23 Sep 2024 13:07:26 -0400 Subject: [PATCH] Automated Protos Update (#286) Co-authored-by: viambot Co-authored-by: lia <167905060+lia-viam@users.noreply.github.com> --- src/viam/api/api_proto_tag.lock | 2 +- .../api/app/mltraining/v1/ml_training.pb.cc | 464 ++++++---- .../api/app/mltraining/v1/ml_training.pb.h | 797 ++++++++++-------- src/viam/api/app/v1/billing.grpc.pb.cc | 42 + src/viam/api/app/v1/billing.grpc.pb.h | 168 +++- src/viam/api/app/v1/billing.pb.cc | 339 +++++++- src/viam/api/app/v1/billing.pb.h | 456 ++++++++++ src/viam/api/buf.lock | 2 +- 8 files changed, 1714 insertions(+), 556 deletions(-) diff --git a/src/viam/api/api_proto_tag.lock b/src/viam/api/api_proto_tag.lock index c8cb3ce8b..ab4bbb54c 100644 --- a/src/viam/api/api_proto_tag.lock +++ b/src/viam/api/api_proto_tag.lock @@ -1 +1 @@ -v0.1.337 +v0.1.339 diff --git a/src/viam/api/app/mltraining/v1/ml_training.pb.cc b/src/viam/api/app/mltraining/v1/ml_training.pb.cc index bda1382eb..e78e3d4e5 100644 --- a/src/viam/api/app/mltraining/v1/ml_training.pb.cc +++ b/src/viam/api/app/mltraining/v1/ml_training.pb.cc @@ -98,42 +98,18 @@ struct SubmitCustomTrainingJobResponseDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubmitCustomTrainingJobResponseDefaultTypeInternal _SubmitCustomTrainingJobResponse_default_instance_; - -inline constexpr SubmitCustomTrainingJobRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : dataset_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - registry_item_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - organization_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - model_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - model_version_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - registry_item_version_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR SubmitCustomTrainingJobRequest::SubmitCustomTrainingJobRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SubmitCustomTrainingJobRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubmitCustomTrainingJobRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SubmitCustomTrainingJobRequestDefaultTypeInternal() {} + template +PROTOBUF_CONSTEXPR SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse::SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse(::_pbi::ConstantInitialized) {} +struct SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUseDefaultTypeInternal() {} union { - SubmitCustomTrainingJobRequest _instance; + SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubmitCustomTrainingJobRequestDefaultTypeInternal _SubmitCustomTrainingJobRequest_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUseDefaultTypeInternal _SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse_default_instance_; inline constexpr ListTrainingJobsRequest::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept @@ -293,6 +269,43 @@ struct TrainingJobLogEntryDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TrainingJobLogEntryDefaultTypeInternal _TrainingJobLogEntry_default_instance_; +inline constexpr SubmitCustomTrainingJobRequest::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : arguments_{}, + dataset_id_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + registry_item_id_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + organization_id_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + model_name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + model_version_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + registry_item_version_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR SubmitCustomTrainingJobRequest::SubmitCustomTrainingJobRequest(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct SubmitCustomTrainingJobRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SubmitCustomTrainingJobRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SubmitCustomTrainingJobRequestDefaultTypeInternal() {} + union { + SubmitCustomTrainingJobRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubmitCustomTrainingJobRequestDefaultTypeInternal _SubmitCustomTrainingJobRequest_default_instance_; + inline constexpr TrainingJobMetadata::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, @@ -408,7 +421,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT } // namespace mltraining } // namespace app } // namespace viam -static ::_pb::Metadata file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[16]; +static ::_pb::Metadata file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[17]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[3]; static constexpr const ::_pb::ServiceDescriptor** file_level_service_descriptors_app_2fmltraining_2fv1_2fml_5ftraining_2eproto = nullptr; @@ -437,6 +450,18 @@ const ::uint32_t TableStruct_app_2fmltraining_2fv1_2fml_5ftraining_2eproto::offs ~0u, // no _split_ ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitTrainingJobResponse, _impl_.id_), + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse, value_), + 0, + 1, ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest, _internal_metadata_), ~0u, // no _extensions_ @@ -451,6 +476,7 @@ const ::uint32_t TableStruct_app_2fmltraining_2fv1_2fml_5ftraining_2eproto::offs PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest, _impl_.organization_id_), PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest, _impl_.model_name_), PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest, _impl_.model_version_), + PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest, _impl_.arguments_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse, _internal_metadata_), ~0u, // no _extensions_ @@ -618,25 +644,27 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { {0, -1, -1, sizeof(::viam::app::mltraining::v1::SubmitTrainingJobRequest)}, {14, -1, -1, sizeof(::viam::app::mltraining::v1::SubmitTrainingJobResponse)}, - {23, -1, -1, sizeof(::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest)}, - {37, -1, -1, sizeof(::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse)}, - {46, -1, -1, sizeof(::viam::app::mltraining::v1::GetTrainingJobRequest)}, - {55, 64, -1, sizeof(::viam::app::mltraining::v1::GetTrainingJobResponse)}, - {65, -1, -1, sizeof(::viam::app::mltraining::v1::ListTrainingJobsRequest)}, - {75, -1, -1, sizeof(::viam::app::mltraining::v1::ListTrainingJobsResponse)}, - {84, 110, -1, sizeof(::viam::app::mltraining::v1::TrainingJobMetadata)}, - {128, -1, -1, sizeof(::viam::app::mltraining::v1::CancelTrainingJobRequest)}, - {137, -1, -1, sizeof(::viam::app::mltraining::v1::CancelTrainingJobResponse)}, - {145, -1, -1, sizeof(::viam::app::mltraining::v1::DeleteCompletedTrainingJobRequest)}, - {154, -1, -1, sizeof(::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse)}, - {162, 173, -1, sizeof(::viam::app::mltraining::v1::TrainingJobLogEntry)}, - {176, 186, -1, sizeof(::viam::app::mltraining::v1::GetTrainingJobLogsRequest)}, - {188, -1, -1, sizeof(::viam::app::mltraining::v1::GetTrainingJobLogsResponse)}, + {23, 33, -1, sizeof(::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse)}, + {35, -1, -1, sizeof(::viam::app::mltraining::v1::SubmitCustomTrainingJobRequest)}, + {50, -1, -1, sizeof(::viam::app::mltraining::v1::SubmitCustomTrainingJobResponse)}, + {59, -1, -1, sizeof(::viam::app::mltraining::v1::GetTrainingJobRequest)}, + {68, 77, -1, sizeof(::viam::app::mltraining::v1::GetTrainingJobResponse)}, + {78, -1, -1, sizeof(::viam::app::mltraining::v1::ListTrainingJobsRequest)}, + {88, -1, -1, sizeof(::viam::app::mltraining::v1::ListTrainingJobsResponse)}, + {97, 123, -1, sizeof(::viam::app::mltraining::v1::TrainingJobMetadata)}, + {141, -1, -1, sizeof(::viam::app::mltraining::v1::CancelTrainingJobRequest)}, + {150, -1, -1, sizeof(::viam::app::mltraining::v1::CancelTrainingJobResponse)}, + {158, -1, -1, sizeof(::viam::app::mltraining::v1::DeleteCompletedTrainingJobRequest)}, + {167, -1, -1, sizeof(::viam::app::mltraining::v1::DeleteCompletedTrainingJobResponse)}, + {175, 186, -1, sizeof(::viam::app::mltraining::v1::TrainingJobLogEntry)}, + {189, 199, -1, sizeof(::viam::app::mltraining::v1::GetTrainingJobLogsRequest)}, + {201, -1, -1, sizeof(::viam::app::mltraining::v1::GetTrainingJobLogsResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { &::viam::app::mltraining::v1::_SubmitTrainingJobRequest_default_instance_._instance, &::viam::app::mltraining::v1::_SubmitTrainingJobResponse_default_instance_._instance, + &::viam::app::mltraining::v1::_SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse_default_instance_._instance, &::viam::app::mltraining::v1::_SubmitCustomTrainingJobRequest_default_instance_._instance, &::viam::app::mltraining::v1::_SubmitCustomTrainingJobResponse_default_instance_._instance, &::viam::app::mltraining::v1::_GetTrainingJobRequest_default_instance_._instance, @@ -670,7 +698,7 @@ const char descriptor_table_protodef_app_2fmltraining_2fv1_2fml_5ftraining_2epro "on:\"model_type\" json:\"model_type\"R\tmodel" "Type\0220\n\004tags\030\006 \003(\tB\034\232\204\236\003\027bson:\"tags\" jso" "n:\"tags\"R\004tagsJ\004\010\001\020\002R\006filter\"+\n\031SubmitTr" - "ainingJobResponse\022\016\n\002id\030\001 \001(\tR\002id\"\270\004\n\036Su" + "ainingJobResponse\022\016\n\002id\030\001 \001(\tR\002id\"\333\005\n\036Su" "bmitCustomTrainingJobRequest\022G\n\ndataset_" "id\030\001 \001(\tB(\232\204\236\003#bson:\"dataset_id\" json:\"d" "ataset_id\"R\tdatasetId\022^\n\020registry_item_i" @@ -685,116 +713,120 @@ const char descriptor_table_protodef_app_2fmltraining_2fv1_2fml_5ftraining_2epro "odel_name\" json:\"model_name\"R\tmodelName\022" "S\n\rmodel_version\030\005 \001(\tB.\232\204\236\003)bson:\"model" "_version\" json:\"model_version\"R\014modelVer" - "sion\"1\n\037SubmitCustomTrainingJobResponse\022" - "\016\n\002id\030\001 \001(\tR\002id\"\'\n\025GetTrainingJobRequest" - "\022\016\n\002id\030\001 \001(\tR\002id\"a\n\026GetTrainingJobRespon" - "se\022G\n\010metadata\030\001 \001(\0132+.viam.app.mltraini" - "ng.v1.TrainingJobMetadataR\010metadata\"\202\001\n\027" - "ListTrainingJobsRequest\022\'\n\017organization_" - "id\030\001 \001(\tR\016organizationId\022>\n\006status\030\002 \001(\016" - "2&.viam.app.mltraining.v1.TrainingStatus" - "R\006status\"[\n\030ListTrainingJobsResponse\022\?\n\004" - "jobs\030\001 \003(\0132+.viam.app.mltraining.v1.Trai" - "ningJobMetadataR\004jobs\"\346\r\n\023TrainingJobMet" - "adata\0223\n\002id\030\007 \001(\tB#\232\204\236\003\036bson:\"_id\" json:" - "\"id,omitempty\"R\002id\022G\n\ndataset_id\030\013 \001(\tB(" - "\232\204\236\003#bson:\"dataset_id\" json:\"dataset_id\"" - "R\tdatasetId\022[\n\017organization_id\030\014 \001(\tB2\232\204" - "\236\003-bson:\"organization_id\" json:\"organiza" - "tion_id\"R\016organizationId\022G\n\nmodel_name\030\r" - " \001(\tB(\232\204\236\003#bson:\"model_name\" json:\"model" - "_name\"R\tmodelName\022S\n\rmodel_version\030\016 \001(\t" - "B.\232\204\236\003)bson:\"model_version\" json:\"model_" - "version\"R\014modelVersion\022j\n\nmodel_type\030\017 \001" - "(\0162!.viam.app.mltraining.v1.ModelTypeB(\232" - "\204\236\003#bson:\"model_type\" json:\"model_type\"R" - "\tmodelType\022\203\001\n\017model_framework\030\021 \001(\0162&.v" - "iam.app.mltraining.v1.ModelFrameworkB2\232\204" - "\236\003-bson:\"model_framework\" json:\"model_fr" - "amework\"R\016modelFramework\022R\n\ris_custom_jo" - "b\030\022 \001(\010B.\232\204\236\003)bson:\"is_custom_job\" json:" - "\"is_custom_job\"R\013isCustomJob\022^\n\020registry" - "_item_id\030\023 \001(\tB4\232\204\236\003/bson:\"registry_item" - "_id\" json:\"registry_item_id\"R\016registryIt" - "emId\022r\n\025registry_item_version\030\024 \001(\tB>\232\204\236" - "\0039bson:\"registry_item_version\" json:\"reg" - "istry_item_version\"R\023registryItemVersion" - "\022`\n\006status\030\002 \001(\0162&.viam.app.mltraining.v" - "1.TrainingStatusB \232\204\236\003\033bson:\"status\" jso" - "n:\"status\"R\006status\022c\n\014error_status\030\010 \001(\013" - "2\022.google.rpc.StatusB,\232\204\236\003\'bson:\"error_s" - "tatus\" json:\"error_status\"R\013errorStatus\022" - "c\n\ncreated_on\030\003 \001(\0132\032.google.protobuf.Ti" - "mestampB(\232\204\236\003#bson:\"created_on\" json:\"cr" - "eated_on\"R\tcreatedOn\022o\n\rlast_modified\030\004 " - "\001(\0132\032.google.protobuf.TimestampB.\232\204\236\003)bs" - "on:\"last_modified\" json:\"last_modified\"R" - "\014lastModified\022{\n\020training_started\030\t \001(\0132" - "\032.google.protobuf.TimestampB4\232\204\236\003/bson:\"" - "training_started\" json:\"training_started" - "\"R\017trainingStarted\022s\n\016training_ended\030\n \001" - "(\0132\032.google.protobuf.TimestampB0\232\204\236\003+bso" - "n:\"training_ended\" json:\"training_ended\"" - "R\rtrainingEnded\022Z\n\017synced_model_id\030\005 \001(\t" - "B2\232\204\236\003-bson:\"synced_model_id\" json:\"sync" - "ed_model_id\"R\rsyncedModelId\0220\n\004tags\030\020 \003(" - "\tB\034\232\204\236\003\027bson:\"tags\" json:\"tags\"R\004tagsJ\004\010" - "\001\020\002J\004\010\006\020\007R\007requestR\nuser_email\"*\n\030Cancel" - "TrainingJobRequest\022\016\n\002id\030\001 \001(\tR\002id\"\033\n\031Ca" - "ncelTrainingJobResponse\"3\n!DeleteComplet" - "edTrainingJobRequest\022\016\n\002id\030\001 \001(\tR\002id\"$\n\"" - "DeleteCompletedTrainingJobResponse\"u\n\023Tr" - "ainingJobLogEntry\022\024\n\005level\030\001 \001(\tR\005level\022" - ".\n\004time\030\002 \001(\0132\032.google.protobuf.Timestam" - "pR\004time\022\030\n\007message\030\003 \001(\tR\007message\"^\n\031Get" - "TrainingJobLogsRequest\022\016\n\002id\030\001 \001(\tR\002id\022\"" - "\n\npage_token\030\002 \001(\tH\000R\tpageToken\210\001\001B\r\n\013_p" - "age_token\"\205\001\n\032GetTrainingJobLogsResponse" - "\022\?\n\004logs\030\001 \003(\0132+.viam.app.mltraining.v1." - "TrainingJobLogEntryR\004logs\022&\n\017next_page_t" - "oken\030\002 \001(\tR\rnextPageToken*\237\001\n\tModelType\022" - "\032\n\026MODEL_TYPE_UNSPECIFIED\020\000\022*\n&MODEL_TYP" - "E_SINGLE_LABEL_CLASSIFICATION\020\001\022)\n%MODEL" - "_TYPE_MULTI_LABEL_CLASSIFICATION\020\002\022\037\n\033MO" - "DEL_TYPE_OBJECT_DETECTION\020\003*\244\001\n\016ModelFra" - "mework\022\037\n\033MODEL_FRAMEWORK_UNSPECIFIED\020\000\022" - "\032\n\026MODEL_FRAMEWORK_TFLITE\020\001\022\036\n\032MODEL_FRA" - "MEWORK_TENSORFLOW\020\002\022\033\n\027MODEL_FRAMEWORK_P" - "YTORCH\020\003\022\030\n\024MODEL_FRAMEWORK_ONNX\020\004*\347\001\n\016T" - "rainingStatus\022\037\n\033TRAINING_STATUS_UNSPECI" - "FIED\020\000\022\033\n\027TRAINING_STATUS_PENDING\020\001\022\037\n\033T" - "RAINING_STATUS_IN_PROGRESS\020\002\022\035\n\031TRAINING" - "_STATUS_COMPLETED\020\003\022\032\n\026TRAINING_STATUS_F" - "AILED\020\004\022\034\n\030TRAINING_STATUS_CANCELED\020\005\022\035\n" - "\031TRAINING_STATUS_CANCELING\020\0062\217\007\n\021MLTrain" - "ingService\022x\n\021SubmitTrainingJob\0220.viam.a" - "pp.mltraining.v1.SubmitTrainingJobReques" - "t\0321.viam.app.mltraining.v1.SubmitTrainin" - "gJobResponse\022\212\001\n\027SubmitCustomTrainingJob" - "\0226.viam.app.mltraining.v1.SubmitCustomTr" - "ainingJobRequest\0327.viam.app.mltraining.v" - "1.SubmitCustomTrainingJobResponse\022o\n\016Get" - "TrainingJob\022-.viam.app.mltraining.v1.Get" - "TrainingJobRequest\032..viam.app.mltraining" - ".v1.GetTrainingJobResponse\022u\n\020ListTraini" - "ngJobs\022/.viam.app.mltraining.v1.ListTrai" - "ningJobsRequest\0320.viam.app.mltraining.v1" - ".ListTrainingJobsResponse\022x\n\021CancelTrain" - "ingJob\0220.viam.app.mltraining.v1.CancelTr" - "ainingJobRequest\0321.viam.app.mltraining.v" - "1.CancelTrainingJobResponse\022\223\001\n\032DeleteCo" - "mpletedTrainingJob\0229.viam.app.mltraining" - ".v1.DeleteCompletedTrainingJobRequest\032:." - "viam.app.mltraining.v1.DeleteCompletedTr" - "ainingJobResponse\022{\n\022GetTrainingJobLogs\022" - "1.viam.app.mltraining.v1.GetTrainingJobL" - "ogsRequest\0322.viam.app.mltraining.v1.GetT" - "rainingJobLogsResponseB\313\001\n\032com.viam.app." - "mltraining.v1B\017MlTrainingProtoP\001Z!go.via" - "m.com/api/app/mltraining/v1\242\002\003VAM\252\002\026Viam" - ".App.Mltraining.V1\312\002\026Viam\\App\\Mltraining" - "\\V1\342\002\"Viam\\App\\Mltraining\\V1\\GPBMetadata" - "\352\002\031Viam::App::Mltraining::V1b\006proto3" + "sion\022c\n\targuments\030\007 \003(\0132E.viam.app.mltra" + "ining.v1.SubmitCustomTrainingJobRequest." + "ArgumentsEntryR\targuments\032<\n\016ArgumentsEn" + "try\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005va" + "lue:\0028\001\"1\n\037SubmitCustomTrainingJobRespon" + "se\022\016\n\002id\030\001 \001(\tR\002id\"\'\n\025GetTrainingJobRequ" + "est\022\016\n\002id\030\001 \001(\tR\002id\"a\n\026GetTrainingJobRes" + "ponse\022G\n\010metadata\030\001 \001(\0132+.viam.app.mltra" + "ining.v1.TrainingJobMetadataR\010metadata\"\202" + "\001\n\027ListTrainingJobsRequest\022\'\n\017organizati" + "on_id\030\001 \001(\tR\016organizationId\022>\n\006status\030\002 " + "\001(\0162&.viam.app.mltraining.v1.TrainingSta" + "tusR\006status\"[\n\030ListTrainingJobsResponse\022" + "\?\n\004jobs\030\001 \003(\0132+.viam.app.mltraining.v1.T" + "rainingJobMetadataR\004jobs\"\346\r\n\023TrainingJob" + "Metadata\0223\n\002id\030\007 \001(\tB#\232\204\236\003\036bson:\"_id\" js" + "on:\"id,omitempty\"R\002id\022G\n\ndataset_id\030\013 \001(" + "\tB(\232\204\236\003#bson:\"dataset_id\" json:\"dataset_" + "id\"R\tdatasetId\022[\n\017organization_id\030\014 \001(\tB" + "2\232\204\236\003-bson:\"organization_id\" json:\"organ" + "ization_id\"R\016organizationId\022G\n\nmodel_nam" + "e\030\r \001(\tB(\232\204\236\003#bson:\"model_name\" json:\"mo" + "del_name\"R\tmodelName\022S\n\rmodel_version\030\016 " + "\001(\tB.\232\204\236\003)bson:\"model_version\" json:\"mod" + "el_version\"R\014modelVersion\022j\n\nmodel_type\030" + "\017 \001(\0162!.viam.app.mltraining.v1.ModelType" + "B(\232\204\236\003#bson:\"model_type\" json:\"model_typ" + "e\"R\tmodelType\022\203\001\n\017model_framework\030\021 \001(\0162" + "&.viam.app.mltraining.v1.ModelFrameworkB" + "2\232\204\236\003-bson:\"model_framework\" json:\"model" + "_framework\"R\016modelFramework\022R\n\ris_custom" + "_job\030\022 \001(\010B.\232\204\236\003)bson:\"is_custom_job\" js" + "on:\"is_custom_job\"R\013isCustomJob\022^\n\020regis" + "try_item_id\030\023 \001(\tB4\232\204\236\003/bson:\"registry_i" + "tem_id\" json:\"registry_item_id\"R\016registr" + "yItemId\022r\n\025registry_item_version\030\024 \001(\tB>" + "\232\204\236\0039bson:\"registry_item_version\" json:\"" + "registry_item_version\"R\023registryItemVers" + "ion\022`\n\006status\030\002 \001(\0162&.viam.app.mltrainin" + "g.v1.TrainingStatusB \232\204\236\003\033bson:\"status\" " + "json:\"status\"R\006status\022c\n\014error_status\030\010 " + "\001(\0132\022.google.rpc.StatusB,\232\204\236\003\'bson:\"erro" + "r_status\" json:\"error_status\"R\013errorStat" + "us\022c\n\ncreated_on\030\003 \001(\0132\032.google.protobuf" + ".TimestampB(\232\204\236\003#bson:\"created_on\" json:" + "\"created_on\"R\tcreatedOn\022o\n\rlast_modified" + "\030\004 \001(\0132\032.google.protobuf.TimestampB.\232\204\236\003" + ")bson:\"last_modified\" json:\"last_modifie" + "d\"R\014lastModified\022{\n\020training_started\030\t \001" + "(\0132\032.google.protobuf.TimestampB4\232\204\236\003/bso" + "n:\"training_started\" json:\"training_star" + "ted\"R\017trainingStarted\022s\n\016training_ended\030" + "\n \001(\0132\032.google.protobuf.TimestampB0\232\204\236\003+" + "bson:\"training_ended\" json:\"training_end" + "ed\"R\rtrainingEnded\022Z\n\017synced_model_id\030\005 " + "\001(\tB2\232\204\236\003-bson:\"synced_model_id\" json:\"s" + "ynced_model_id\"R\rsyncedModelId\0220\n\004tags\030\020" + " \003(\tB\034\232\204\236\003\027bson:\"tags\" json:\"tags\"R\004tags" + "J\004\010\001\020\002J\004\010\006\020\007R\007requestR\nuser_email\"*\n\030Can" + "celTrainingJobRequest\022\016\n\002id\030\001 \001(\tR\002id\"\033\n" + "\031CancelTrainingJobResponse\"3\n!DeleteComp" + "letedTrainingJobRequest\022\016\n\002id\030\001 \001(\tR\002id\"" + "$\n\"DeleteCompletedTrainingJobResponse\"u\n" + "\023TrainingJobLogEntry\022\024\n\005level\030\001 \001(\tR\005lev" + "el\022.\n\004time\030\002 \001(\0132\032.google.protobuf.Times" + "tampR\004time\022\030\n\007message\030\003 \001(\tR\007message\"^\n\031" + "GetTrainingJobLogsRequest\022\016\n\002id\030\001 \001(\tR\002i" + "d\022\"\n\npage_token\030\002 \001(\tH\000R\tpageToken\210\001\001B\r\n" + "\013_page_token\"\205\001\n\032GetTrainingJobLogsRespo" + "nse\022\?\n\004logs\030\001 \003(\0132+.viam.app.mltraining." + "v1.TrainingJobLogEntryR\004logs\022&\n\017next_pag" + "e_token\030\002 \001(\tR\rnextPageToken*\237\001\n\tModelTy" + "pe\022\032\n\026MODEL_TYPE_UNSPECIFIED\020\000\022*\n&MODEL_" + "TYPE_SINGLE_LABEL_CLASSIFICATION\020\001\022)\n%MO" + "DEL_TYPE_MULTI_LABEL_CLASSIFICATION\020\002\022\037\n" + "\033MODEL_TYPE_OBJECT_DETECTION\020\003*\244\001\n\016Model" + "Framework\022\037\n\033MODEL_FRAMEWORK_UNSPECIFIED" + "\020\000\022\032\n\026MODEL_FRAMEWORK_TFLITE\020\001\022\036\n\032MODEL_" + "FRAMEWORK_TENSORFLOW\020\002\022\033\n\027MODEL_FRAMEWOR" + "K_PYTORCH\020\003\022\030\n\024MODEL_FRAMEWORK_ONNX\020\004*\347\001" + "\n\016TrainingStatus\022\037\n\033TRAINING_STATUS_UNSP" + "ECIFIED\020\000\022\033\n\027TRAINING_STATUS_PENDING\020\001\022\037" + "\n\033TRAINING_STATUS_IN_PROGRESS\020\002\022\035\n\031TRAIN" + "ING_STATUS_COMPLETED\020\003\022\032\n\026TRAINING_STATU" + "S_FAILED\020\004\022\034\n\030TRAINING_STATUS_CANCELED\020\005" + "\022\035\n\031TRAINING_STATUS_CANCELING\020\0062\217\007\n\021MLTr" + "ainingService\022x\n\021SubmitTrainingJob\0220.via" + "m.app.mltraining.v1.SubmitTrainingJobReq" + "uest\0321.viam.app.mltraining.v1.SubmitTrai" + "ningJobResponse\022\212\001\n\027SubmitCustomTraining" + "Job\0226.viam.app.mltraining.v1.SubmitCusto" + "mTrainingJobRequest\0327.viam.app.mltrainin" + "g.v1.SubmitCustomTrainingJobResponse\022o\n\016" + "GetTrainingJob\022-.viam.app.mltraining.v1." + "GetTrainingJobRequest\032..viam.app.mltrain" + "ing.v1.GetTrainingJobResponse\022u\n\020ListTra" + "iningJobs\022/.viam.app.mltraining.v1.ListT" + "rainingJobsRequest\0320.viam.app.mltraining" + ".v1.ListTrainingJobsResponse\022x\n\021CancelTr" + "ainingJob\0220.viam.app.mltraining.v1.Cance" + "lTrainingJobRequest\0321.viam.app.mltrainin" + "g.v1.CancelTrainingJobResponse\022\223\001\n\032Delet" + "eCompletedTrainingJob\0229.viam.app.mltrain" + "ing.v1.DeleteCompletedTrainingJobRequest" + "\032:.viam.app.mltraining.v1.DeleteComplete" + "dTrainingJobResponse\022{\n\022GetTrainingJobLo" + "gs\0221.viam.app.mltraining.v1.GetTrainingJ" + "obLogsRequest\0322.viam.app.mltraining.v1.G" + "etTrainingJobLogsResponseB\313\001\n\032com.viam.a" + "pp.mltraining.v1B\017MlTrainingProtoP\001Z!go." + "viam.com/api/app/mltraining/v1\242\002\003VAM\252\002\026V" + "iam.App.Mltraining.V1\312\002\026Viam\\App\\Mltrain" + "ing\\V1\342\002\"Viam\\App\\Mltraining\\V1\\GPBMetad" + "ata\352\002\031Viam::App::Mltraining::V1b\006proto3" }; static const ::_pbi::DescriptorTable* const descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_deps[3] = { @@ -806,13 +838,13 @@ static ::absl::once_flag descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_ const ::_pbi::DescriptorTable descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto = { false, false, - 5676, + 5839, descriptor_table_protodef_app_2fmltraining_2fv1_2fml_5ftraining_2eproto, "app/mltraining/v1/ml_training.proto", &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_once, descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_deps, 3, - 16, + 17, schemas, file_default_instances, TableStruct_app_2fmltraining_2fv1_2fml_5ftraining_2eproto::offsets, @@ -1392,6 +1424,16 @@ ::google::protobuf::Metadata SubmitTrainingJobResponse::GetMetadata() const { } // =================================================================== +SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse::SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse() {} +SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse::SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena) {} +::google::protobuf::Metadata SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_getter, &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_once, + file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[2]); +} +// =================================================================== + class SubmitCustomTrainingJobRequest::_Internal { public: }; @@ -1404,7 +1446,8 @@ SubmitCustomTrainingJobRequest::SubmitCustomTrainingJobRequest(::google::protobu inline PROTOBUF_NDEBUG_INLINE SubmitCustomTrainingJobRequest::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from) - : dataset_id_(arena, from.dataset_id_), + : arguments_{visibility, arena, from.arguments_}, + dataset_id_(arena, from.dataset_id_), registry_item_id_(arena, from.registry_item_id_), organization_id_(arena, from.organization_id_), model_name_(arena, from.model_name_), @@ -1427,7 +1470,8 @@ SubmitCustomTrainingJobRequest::SubmitCustomTrainingJobRequest( inline PROTOBUF_NDEBUG_INLINE SubmitCustomTrainingJobRequest::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) - : dataset_id_(arena), + : arguments_{visibility, arena}, + dataset_id_(arena), registry_item_id_(arena), organization_id_(arena), model_name_(arena), @@ -1461,6 +1505,7 @@ PROTOBUF_NOINLINE void SubmitCustomTrainingJobRequest::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + _impl_.arguments_.Clear(); _impl_.dataset_id_.ClearToEmpty(); _impl_.registry_item_id_.ClearToEmpty(); _impl_.organization_id_.ClearToEmpty(); @@ -1478,17 +1523,17 @@ const char* SubmitCustomTrainingJobRequest::_InternalParse( PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 6, 0, 147, 2> SubmitCustomTrainingJobRequest::_table_ = { +const ::_pbi::TcParseTable<3, 7, 1, 156, 2> SubmitCustomTrainingJobRequest::_table_ = { { 0, // no _has_bits_ 0, // no _extensions_ - 6, 56, // max_field_number, fast_idx_mask + 7, 56, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), - 4294967232, // skipmap + 4294967168, // skipmap offsetof(decltype(_table_), field_entries), - 6, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries + 7, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), &_SubmitCustomTrainingJobRequest_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ @@ -1533,10 +1578,16 @@ const ::_pbi::TcParseTable<3, 6, 0, 147, 2> SubmitCustomTrainingJobRequest::_tab // string registry_item_version = 6 [json_name = "registryItemVersion", (.tagger.v1.tags) = "bson:\"registry_item_version\" json:\"registry_item_version\""]; {PROTOBUF_FIELD_OFFSET(SubmitCustomTrainingJobRequest, _impl_.registry_item_version_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\65\12\20\17\12\15\25\0" + // map arguments = 7 [json_name = "arguments"]; + {PROTOBUF_FIELD_OFFSET(SubmitCustomTrainingJobRequest, _impl_.arguments_), 0, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + }}, {{ + {::_pbi::TcParser::GetMapAuxInfo< + decltype(SubmitCustomTrainingJobRequest()._impl_.arguments_)>( + 1, 0, 0, 9, + 9)}, + }}, {{ + "\65\12\20\17\12\15\25\11" "viam.app.mltraining.v1.SubmitCustomTrainingJobRequest" "dataset_id" "registry_item_id" @@ -1544,6 +1595,7 @@ const ::_pbi::TcParseTable<3, 6, 0, 147, 2> SubmitCustomTrainingJobRequest::_tab "model_name" "model_version" "registry_item_version" + "arguments" }}, }; @@ -1602,6 +1654,39 @@ ::uint8_t* SubmitCustomTrainingJobRequest::_InternalSerialize( target = stream->WriteStringMaybeAliased(6, _s, target); } + // map arguments = 7 [json_name = "arguments"]; + if (!_internal_arguments().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = _internal_arguments(); + + if (stream->IsSerializationDeterministic() && field.size() > 1) { + for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { + target = WireHelper::InternalSerialize( + 7, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.arguments"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.arguments"); + } + } else { + for (const auto& entry : field) { + target = WireHelper::InternalSerialize( + 7, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.arguments"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.arguments"); + } + } + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( @@ -1619,6 +1704,13 @@ ::size_t SubmitCustomTrainingJobRequest::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + // map arguments = 7 [json_name = "arguments"]; + total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_arguments_size()); + for (const auto& entry : _internal_arguments()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + } // string dataset_id = 1 [json_name = "datasetId", (.tagger.v1.tags) = "bson:\"dataset_id\" json:\"dataset_id\""]; if (!this->_internal_dataset_id().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( @@ -1674,6 +1766,7 @@ void SubmitCustomTrainingJobRequest::MergeImpl(::google::protobuf::Message& to_m ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + _this->_impl_.arguments_.MergeFrom(from._impl_.arguments_); if (!from._internal_dataset_id().empty()) { _this->_internal_set_dataset_id(from._internal_dataset_id()); } @@ -1714,6 +1807,7 @@ void SubmitCustomTrainingJobRequest::InternalSwap(SubmitCustomTrainingJobRequest auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.arguments_.InternalSwap(&other->_impl_.arguments_); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.dataset_id_, &other->_impl_.dataset_id_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.registry_item_id_, &other->_impl_.registry_item_id_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.organization_id_, &other->_impl_.organization_id_, arena); @@ -1725,7 +1819,7 @@ void SubmitCustomTrainingJobRequest::InternalSwap(SubmitCustomTrainingJobRequest ::google::protobuf::Metadata SubmitCustomTrainingJobRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_getter, &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_once, - file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[2]); + file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[3]); } // =================================================================== @@ -1915,7 +2009,7 @@ void SubmitCustomTrainingJobResponse::InternalSwap(SubmitCustomTrainingJobRespon ::google::protobuf::Metadata SubmitCustomTrainingJobResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_getter, &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_once, - file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[3]); + file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[4]); } // =================================================================== @@ -2105,7 +2199,7 @@ void GetTrainingJobRequest::InternalSwap(GetTrainingJobRequest* PROTOBUF_RESTRIC ::google::protobuf::Metadata GetTrainingJobRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_getter, &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_once, - file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[4]); + file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[5]); } // =================================================================== @@ -2312,7 +2406,7 @@ void GetTrainingJobResponse::InternalSwap(GetTrainingJobResponse* PROTOBUF_RESTR ::google::protobuf::Metadata GetTrainingJobResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_getter, &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_once, - file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[5]); + file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[6]); } // =================================================================== @@ -2528,7 +2622,7 @@ void ListTrainingJobsRequest::InternalSwap(ListTrainingJobsRequest* PROTOBUF_RES ::google::protobuf::Metadata ListTrainingJobsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_getter, &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_once, - file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[6]); + file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[7]); } // =================================================================== @@ -2711,7 +2805,7 @@ void ListTrainingJobsResponse::InternalSwap(ListTrainingJobsResponse* PROTOBUF_R ::google::protobuf::Metadata ListTrainingJobsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_getter, &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_once, - file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[7]); + file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[8]); } // =================================================================== @@ -3489,7 +3583,7 @@ void TrainingJobMetadata::InternalSwap(TrainingJobMetadata* PROTOBUF_RESTRICT ot ::google::protobuf::Metadata TrainingJobMetadata::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_getter, &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_once, - file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[8]); + file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[9]); } // =================================================================== @@ -3679,7 +3773,7 @@ void CancelTrainingJobRequest::InternalSwap(CancelTrainingJobRequest* PROTOBUF_R ::google::protobuf::Metadata CancelTrainingJobRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_getter, &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_once, - file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[9]); + file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[10]); } // =================================================================== @@ -3714,7 +3808,7 @@ CancelTrainingJobResponse::CancelTrainingJobResponse( ::google::protobuf::Metadata CancelTrainingJobResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_getter, &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_once, - file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[10]); + file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[11]); } // =================================================================== @@ -3904,7 +3998,7 @@ void DeleteCompletedTrainingJobRequest::InternalSwap(DeleteCompletedTrainingJobR ::google::protobuf::Metadata DeleteCompletedTrainingJobRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_getter, &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_once, - file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[11]); + file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[12]); } // =================================================================== @@ -3939,7 +4033,7 @@ DeleteCompletedTrainingJobResponse::DeleteCompletedTrainingJobResponse( ::google::protobuf::Metadata DeleteCompletedTrainingJobResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_getter, &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_once, - file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[12]); + file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[13]); } // =================================================================== @@ -4214,7 +4308,7 @@ void TrainingJobLogEntry::InternalSwap(TrainingJobLogEntry* PROTOBUF_RESTRICT ot ::google::protobuf::Metadata TrainingJobLogEntry::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_getter, &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_once, - file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[13]); + file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[14]); } // =================================================================== @@ -4447,7 +4541,7 @@ void GetTrainingJobLogsRequest::InternalSwap(GetTrainingJobLogsRequest* PROTOBUF ::google::protobuf::Metadata GetTrainingJobLogsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_getter, &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_once, - file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[14]); + file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[15]); } // =================================================================== @@ -4663,7 +4757,7 @@ void GetTrainingJobLogsResponse::InternalSwap(GetTrainingJobLogsResponse* PROTOB ::google::protobuf::Metadata GetTrainingJobLogsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_getter, &descriptor_table_app_2fmltraining_2fv1_2fml_5ftraining_2eproto_once, - file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[15]); + file_level_metadata_app_2fmltraining_2fv1_2fml_5ftraining_2eproto[16]); } // @@protoc_insertion_point(namespace_scope) } // namespace v1 diff --git a/src/viam/api/app/mltraining/v1/ml_training.pb.h b/src/viam/api/app/mltraining/v1/ml_training.pb.h index 6f69f67ce..1e06c31f2 100644 --- a/src/viam/api/app/mltraining/v1/ml_training.pb.h +++ b/src/viam/api/app/mltraining/v1/ml_training.pb.h @@ -34,6 +34,9 @@ #include "google/protobuf/message.h" #include "google/protobuf/repeated_field.h" // IWYU pragma: export #include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/map.h" // IWYU pragma: export +#include "google/protobuf/map_entry.h" +#include "google/protobuf/map_field_inl.h" #include "google/protobuf/generated_enum_reflection.h" #include "google/protobuf/unknown_field_set.h" #include "google/protobuf/timestamp.pb.h" @@ -97,6 +100,9 @@ extern ListTrainingJobsResponseDefaultTypeInternal _ListTrainingJobsResponse_def class SubmitCustomTrainingJobRequest; struct SubmitCustomTrainingJobRequestDefaultTypeInternal; extern SubmitCustomTrainingJobRequestDefaultTypeInternal _SubmitCustomTrainingJobRequest_default_instance_; +class SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse; +struct SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUseDefaultTypeInternal; +extern SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUseDefaultTypeInternal _SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse_default_instance_; class SubmitCustomTrainingJobResponse; struct SubmitCustomTrainingJobResponseDefaultTypeInternal; extern SubmitCustomTrainingJobResponseDefaultTypeInternal _SubmitCustomTrainingJobResponse_default_instance_; @@ -757,7 +763,7 @@ class SubmitCustomTrainingJobResponse final : &_SubmitCustomTrainingJobResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 4; friend void swap(SubmitCustomTrainingJobResponse& a, SubmitCustomTrainingJobResponse& b) { a.Swap(&b); @@ -879,276 +885,35 @@ class SubmitCustomTrainingJobResponse final : friend struct ::TableStruct_app_2fmltraining_2fv1_2fml_5ftraining_2eproto; };// ------------------------------------------------------------------- -class SubmitCustomTrainingJobRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest) */ { +class SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry< + SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse, std::string, std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING> { public: - inline SubmitCustomTrainingJobRequest() : SubmitCustomTrainingJobRequest(nullptr) {} - ~SubmitCustomTrainingJobRequest() override; - template - explicit PROTOBUF_CONSTEXPR SubmitCustomTrainingJobRequest(::google::protobuf::internal::ConstantInitialized); - - inline SubmitCustomTrainingJobRequest(const SubmitCustomTrainingJobRequest& from) - : SubmitCustomTrainingJobRequest(nullptr, from) {} - SubmitCustomTrainingJobRequest(SubmitCustomTrainingJobRequest&& from) noexcept - : SubmitCustomTrainingJobRequest() { - *this = ::std::move(from); - } - - inline SubmitCustomTrainingJobRequest& operator=(const SubmitCustomTrainingJobRequest& from) { - CopyFrom(from); - return *this; - } - inline SubmitCustomTrainingJobRequest& operator=(SubmitCustomTrainingJobRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SubmitCustomTrainingJobRequest& default_instance() { - return *internal_default_instance(); - } - static inline const SubmitCustomTrainingJobRequest* internal_default_instance() { - return reinterpret_cast( - &_SubmitCustomTrainingJobRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(SubmitCustomTrainingJobRequest& a, SubmitCustomTrainingJobRequest& b) { - a.Swap(&b); - } - inline void Swap(SubmitCustomTrainingJobRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SubmitCustomTrainingJobRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SubmitCustomTrainingJobRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SubmitCustomTrainingJobRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SubmitCustomTrainingJobRequest& from) { - SubmitCustomTrainingJobRequest::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SubmitCustomTrainingJobRequest* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "viam.app.mltraining.v1.SubmitCustomTrainingJobRequest"; - } - protected: - explicit SubmitCustomTrainingJobRequest(::google::protobuf::Arena* arena); - SubmitCustomTrainingJobRequest(::google::protobuf::Arena* arena, const SubmitCustomTrainingJobRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - + using SuperType = ::google::protobuf::internal::MapEntry< + SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse, std::string, std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING>; + SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse(); + template + explicit PROTOBUF_CONSTEXPR SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse( + ::google::protobuf::internal::ConstantInitialized); + explicit SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse(::google::protobuf::Arena* arena); + static const SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse* internal_default_instance() { + return reinterpret_cast( + &_SubmitCustomTrainingJobRequest_ArgumentsEntry_DoNotUse_default_instance_); + } + static bool ValidateKey(std::string* s) { + return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.ArgumentsEntry.key"); + } + static bool ValidateValue(std::string* s) { + return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.ArgumentsEntry.value"); + } ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kDatasetIdFieldNumber = 1, - kRegistryItemIdFieldNumber = 2, - kOrganizationIdFieldNumber = 3, - kModelNameFieldNumber = 4, - kModelVersionFieldNumber = 5, - kRegistryItemVersionFieldNumber = 6, - }; - // string dataset_id = 1 [json_name = "datasetId", (.tagger.v1.tags) = "bson:\"dataset_id\" json:\"dataset_id\""]; - void clear_dataset_id() ; - const std::string& dataset_id() const; - template - void set_dataset_id(Arg_&& arg, Args_... args); - std::string* mutable_dataset_id(); - PROTOBUF_NODISCARD std::string* release_dataset_id(); - void set_allocated_dataset_id(std::string* value); - - private: - const std::string& _internal_dataset_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_dataset_id( - const std::string& value); - std::string* _internal_mutable_dataset_id(); - - public: - // string registry_item_id = 2 [json_name = "registryItemId", (.tagger.v1.tags) = "bson:\"registry_item_id\" json:\"registry_item_id\""]; - void clear_registry_item_id() ; - const std::string& registry_item_id() const; - template - void set_registry_item_id(Arg_&& arg, Args_... args); - std::string* mutable_registry_item_id(); - PROTOBUF_NODISCARD std::string* release_registry_item_id(); - void set_allocated_registry_item_id(std::string* value); - - private: - const std::string& _internal_registry_item_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_registry_item_id( - const std::string& value); - std::string* _internal_mutable_registry_item_id(); - - public: - // string organization_id = 3 [json_name = "organizationId", (.tagger.v1.tags) = "bson:\"organization_id\" json:\"organization_id\""]; - void clear_organization_id() ; - const std::string& organization_id() const; - template - void set_organization_id(Arg_&& arg, Args_... args); - std::string* mutable_organization_id(); - PROTOBUF_NODISCARD std::string* release_organization_id(); - void set_allocated_organization_id(std::string* value); - - private: - const std::string& _internal_organization_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id( - const std::string& value); - std::string* _internal_mutable_organization_id(); - - public: - // string model_name = 4 [json_name = "modelName", (.tagger.v1.tags) = "bson:\"model_name\" json:\"model_name\""]; - void clear_model_name() ; - const std::string& model_name() const; - template - void set_model_name(Arg_&& arg, Args_... args); - std::string* mutable_model_name(); - PROTOBUF_NODISCARD std::string* release_model_name(); - void set_allocated_model_name(std::string* value); - - private: - const std::string& _internal_model_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_model_name( - const std::string& value); - std::string* _internal_mutable_model_name(); - - public: - // string model_version = 5 [json_name = "modelVersion", (.tagger.v1.tags) = "bson:\"model_version\" json:\"model_version\""]; - void clear_model_version() ; - const std::string& model_version() const; - template - void set_model_version(Arg_&& arg, Args_... args); - std::string* mutable_model_version(); - PROTOBUF_NODISCARD std::string* release_model_version(); - void set_allocated_model_version(std::string* value); - - private: - const std::string& _internal_model_version() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_model_version( - const std::string& value); - std::string* _internal_mutable_model_version(); - - public: - // string registry_item_version = 6 [json_name = "registryItemVersion", (.tagger.v1.tags) = "bson:\"registry_item_version\" json:\"registry_item_version\""]; - void clear_registry_item_version() ; - const std::string& registry_item_version() const; - template - void set_registry_item_version(Arg_&& arg, Args_... args); - std::string* mutable_registry_item_version(); - PROTOBUF_NODISCARD std::string* release_registry_item_version(); - void set_allocated_registry_item_version(std::string* value); - - private: - const std::string& _internal_registry_item_version() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_registry_item_version( - const std::string& value); - std::string* _internal_mutable_registry_item_version(); - - public: - // @@protoc_insertion_point(class_scope:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 6, 0, - 147, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr dataset_id_; - ::google::protobuf::internal::ArenaStringPtr registry_item_id_; - ::google::protobuf::internal::ArenaStringPtr organization_id_; - ::google::protobuf::internal::ArenaStringPtr model_name_; - ::google::protobuf::internal::ArenaStringPtr model_version_; - ::google::protobuf::internal::ArenaStringPtr registry_item_version_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; friend struct ::TableStruct_app_2fmltraining_2fv1_2fml_5ftraining_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- class ListTrainingJobsRequest final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.mltraining.v1.ListTrainingJobsRequest) */ { @@ -1209,7 +974,7 @@ class ListTrainingJobsRequest final : &_ListTrainingJobsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 7; friend void swap(ListTrainingJobsRequest& a, ListTrainingJobsRequest& b) { a.Swap(&b); @@ -1402,7 +1167,7 @@ class GetTrainingJobRequest final : &_GetTrainingJobRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 5; friend void swap(GetTrainingJobRequest& a, GetTrainingJobRequest& b) { a.Swap(&b); @@ -1583,7 +1348,7 @@ class GetTrainingJobLogsRequest final : &_GetTrainingJobLogsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 15; friend void swap(GetTrainingJobLogsRequest& a, GetTrainingJobLogsRequest& b) { a.Swap(&b); @@ -1783,7 +1548,7 @@ class DeleteCompletedTrainingJobResponse final : &_DeleteCompletedTrainingJobResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 13; friend void swap(DeleteCompletedTrainingJobResponse& a, DeleteCompletedTrainingJobResponse& b) { a.Swap(&b); @@ -1920,7 +1685,7 @@ class DeleteCompletedTrainingJobRequest final : &_DeleteCompletedTrainingJobRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 12; friend void swap(DeleteCompletedTrainingJobRequest& a, DeleteCompletedTrainingJobRequest& b) { a.Swap(&b); @@ -2100,7 +1865,7 @@ class CancelTrainingJobResponse final : &_CancelTrainingJobResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 11; friend void swap(CancelTrainingJobResponse& a, CancelTrainingJobResponse& b) { a.Swap(&b); @@ -2237,7 +2002,7 @@ class CancelTrainingJobRequest final : &_CancelTrainingJobRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 10; friend void swap(CancelTrainingJobRequest& a, CancelTrainingJobRequest& b) { a.Swap(&b); @@ -2322,20 +2087,234 @@ class CancelTrainingJobRequest final : void set_allocated_id(std::string* value); private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( + const std::string& _internal_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( + const std::string& value); + std::string* _internal_mutable_id(); + + public: + // @@protoc_insertion_point(class_scope:viam.app.mltraining.v1.CancelTrainingJobRequest) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 1, 0, + 58, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::ArenaStringPtr id_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fmltraining_2fv1_2fml_5ftraining_2eproto; +};// ------------------------------------------------------------------- + +class TrainingJobLogEntry final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.mltraining.v1.TrainingJobLogEntry) */ { + public: + inline TrainingJobLogEntry() : TrainingJobLogEntry(nullptr) {} + ~TrainingJobLogEntry() override; + template + explicit PROTOBUF_CONSTEXPR TrainingJobLogEntry(::google::protobuf::internal::ConstantInitialized); + + inline TrainingJobLogEntry(const TrainingJobLogEntry& from) + : TrainingJobLogEntry(nullptr, from) {} + TrainingJobLogEntry(TrainingJobLogEntry&& from) noexcept + : TrainingJobLogEntry() { + *this = ::std::move(from); + } + + inline TrainingJobLogEntry& operator=(const TrainingJobLogEntry& from) { + CopyFrom(from); + return *this; + } + inline TrainingJobLogEntry& operator=(TrainingJobLogEntry&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const TrainingJobLogEntry& default_instance() { + return *internal_default_instance(); + } + static inline const TrainingJobLogEntry* internal_default_instance() { + return reinterpret_cast( + &_TrainingJobLogEntry_default_instance_); + } + static constexpr int kIndexInFileMessages = + 14; + + friend void swap(TrainingJobLogEntry& a, TrainingJobLogEntry& b) { + a.Swap(&b); + } + inline void Swap(TrainingJobLogEntry* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(TrainingJobLogEntry* other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + TrainingJobLogEntry* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const TrainingJobLogEntry& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const TrainingJobLogEntry& from) { + TrainingJobLogEntry::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(TrainingJobLogEntry* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "viam.app.mltraining.v1.TrainingJobLogEntry"; + } + protected: + explicit TrainingJobLogEntry(::google::protobuf::Arena* arena); + TrainingJobLogEntry(::google::protobuf::Arena* arena, const TrainingJobLogEntry& from); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kLevelFieldNumber = 1, + kMessageFieldNumber = 3, + kTimeFieldNumber = 2, + }; + // string level = 1 [json_name = "level"]; + void clear_level() ; + const std::string& level() const; + template + void set_level(Arg_&& arg, Args_... args); + std::string* mutable_level(); + PROTOBUF_NODISCARD std::string* release_level(); + void set_allocated_level(std::string* value); + + private: + const std::string& _internal_level() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_level( + const std::string& value); + std::string* _internal_mutable_level(); + + public: + // string message = 3 [json_name = "message"]; + void clear_message() ; + const std::string& message() const; + template + void set_message(Arg_&& arg, Args_... args); + std::string* mutable_message(); + PROTOBUF_NODISCARD std::string* release_message(); + void set_allocated_message(std::string* value); + + private: + const std::string& _internal_message() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_message( const std::string& value); - std::string* _internal_mutable_id(); + std::string* _internal_mutable_message(); public: - // @@protoc_insertion_point(class_scope:viam.app.mltraining.v1.CancelTrainingJobRequest) + // .google.protobuf.Timestamp time = 2 [json_name = "time"]; + bool has_time() const; + void clear_time() ; + const ::google::protobuf::Timestamp& time() const; + PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_time(); + ::google::protobuf::Timestamp* mutable_time(); + void set_allocated_time(::google::protobuf::Timestamp* value); + void unsafe_arena_set_allocated_time(::google::protobuf::Timestamp* value); + ::google::protobuf::Timestamp* unsafe_arena_release_time(); + + private: + const ::google::protobuf::Timestamp& _internal_time() const; + ::google::protobuf::Timestamp* _internal_mutable_time(); + + public: + // @@protoc_insertion_point(class_scope:viam.app.mltraining.v1.TrainingJobLogEntry) private: class _Internal; friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 58, 2> + 2, 3, 1, + 63, 2> _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; @@ -2351,34 +2330,37 @@ class CancelTrainingJobRequest final : ::google::protobuf::Arena* arena); inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr id_; + ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr level_; + ::google::protobuf::internal::ArenaStringPtr message_; + ::google::protobuf::Timestamp* time_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_app_2fmltraining_2fv1_2fml_5ftraining_2eproto; };// ------------------------------------------------------------------- -class TrainingJobLogEntry final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.mltraining.v1.TrainingJobLogEntry) */ { +class SubmitCustomTrainingJobRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest) */ { public: - inline TrainingJobLogEntry() : TrainingJobLogEntry(nullptr) {} - ~TrainingJobLogEntry() override; + inline SubmitCustomTrainingJobRequest() : SubmitCustomTrainingJobRequest(nullptr) {} + ~SubmitCustomTrainingJobRequest() override; template - explicit PROTOBUF_CONSTEXPR TrainingJobLogEntry(::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR SubmitCustomTrainingJobRequest(::google::protobuf::internal::ConstantInitialized); - inline TrainingJobLogEntry(const TrainingJobLogEntry& from) - : TrainingJobLogEntry(nullptr, from) {} - TrainingJobLogEntry(TrainingJobLogEntry&& from) noexcept - : TrainingJobLogEntry() { + inline SubmitCustomTrainingJobRequest(const SubmitCustomTrainingJobRequest& from) + : SubmitCustomTrainingJobRequest(nullptr, from) {} + SubmitCustomTrainingJobRequest(SubmitCustomTrainingJobRequest&& from) noexcept + : SubmitCustomTrainingJobRequest() { *this = ::std::move(from); } - inline TrainingJobLogEntry& operator=(const TrainingJobLogEntry& from) { + inline SubmitCustomTrainingJobRequest& operator=(const SubmitCustomTrainingJobRequest& from) { CopyFrom(from); return *this; } - inline TrainingJobLogEntry& operator=(TrainingJobLogEntry&& from) noexcept { + inline SubmitCustomTrainingJobRequest& operator=(SubmitCustomTrainingJobRequest&& from) noexcept { if (this == &from) return *this; if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -2410,20 +2392,20 @@ class TrainingJobLogEntry final : static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const TrainingJobLogEntry& default_instance() { + static const SubmitCustomTrainingJobRequest& default_instance() { return *internal_default_instance(); } - static inline const TrainingJobLogEntry* internal_default_instance() { - return reinterpret_cast( - &_TrainingJobLogEntry_default_instance_); + static inline const SubmitCustomTrainingJobRequest* internal_default_instance() { + return reinterpret_cast( + &_SubmitCustomTrainingJobRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 3; - friend void swap(TrainingJobLogEntry& a, TrainingJobLogEntry& b) { + friend void swap(SubmitCustomTrainingJobRequest& a, SubmitCustomTrainingJobRequest& b) { a.Swap(&b); } - inline void Swap(TrainingJobLogEntry* other) { + inline void Swap(SubmitCustomTrainingJobRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() != nullptr && @@ -2436,7 +2418,7 @@ class TrainingJobLogEntry final : ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(TrainingJobLogEntry* other) { + void UnsafeArenaSwap(SubmitCustomTrainingJobRequest* other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -2444,14 +2426,14 @@ class TrainingJobLogEntry final : // implements Message ---------------------------------------------- - TrainingJobLogEntry* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SubmitCustomTrainingJobRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const TrainingJobLogEntry& from); + void CopyFrom(const SubmitCustomTrainingJobRequest& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const TrainingJobLogEntry& from) { - TrainingJobLogEntry::MergeImpl(*this, from); + void MergeFrom( const SubmitCustomTrainingJobRequest& from) { + SubmitCustomTrainingJobRequest::MergeImpl(*this, from); } private: static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); @@ -2469,16 +2451,16 @@ class TrainingJobLogEntry final : ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void InternalSwap(TrainingJobLogEntry* other); + void InternalSwap(SubmitCustomTrainingJobRequest* other); private: friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "viam.app.mltraining.v1.TrainingJobLogEntry"; + return "viam.app.mltraining.v1.SubmitCustomTrainingJobRequest"; } protected: - explicit TrainingJobLogEntry(::google::protobuf::Arena* arena); - TrainingJobLogEntry(::google::protobuf::Arena* arena, const TrainingJobLogEntry& from); + explicit SubmitCustomTrainingJobRequest(::google::protobuf::Arena* arena); + SubmitCustomTrainingJobRequest(::google::protobuf::Arena* arena, const SubmitCustomTrainingJobRequest& from); public: static const ClassData _class_data_; @@ -2488,68 +2470,137 @@ class TrainingJobLogEntry final : // nested types ---------------------------------------------------- + // accessors ------------------------------------------------------- enum : int { - kLevelFieldNumber = 1, - kMessageFieldNumber = 3, - kTimeFieldNumber = 2, + kArgumentsFieldNumber = 7, + kDatasetIdFieldNumber = 1, + kRegistryItemIdFieldNumber = 2, + kOrganizationIdFieldNumber = 3, + kModelNameFieldNumber = 4, + kModelVersionFieldNumber = 5, + kRegistryItemVersionFieldNumber = 6, }; - // string level = 1 [json_name = "level"]; - void clear_level() ; - const std::string& level() const; + // map arguments = 7 [json_name = "arguments"]; + int arguments_size() const; + private: + int _internal_arguments_size() const; + + public: + void clear_arguments() ; + const ::google::protobuf::Map& arguments() const; + ::google::protobuf::Map* mutable_arguments(); + + private: + const ::google::protobuf::Map& _internal_arguments() const; + ::google::protobuf::Map* _internal_mutable_arguments(); + + public: + // string dataset_id = 1 [json_name = "datasetId", (.tagger.v1.tags) = "bson:\"dataset_id\" json:\"dataset_id\""]; + void clear_dataset_id() ; + const std::string& dataset_id() const; template - void set_level(Arg_&& arg, Args_... args); - std::string* mutable_level(); - PROTOBUF_NODISCARD std::string* release_level(); - void set_allocated_level(std::string* value); + void set_dataset_id(Arg_&& arg, Args_... args); + std::string* mutable_dataset_id(); + PROTOBUF_NODISCARD std::string* release_dataset_id(); + void set_allocated_dataset_id(std::string* value); private: - const std::string& _internal_level() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_level( + const std::string& _internal_dataset_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_dataset_id( const std::string& value); - std::string* _internal_mutable_level(); + std::string* _internal_mutable_dataset_id(); public: - // string message = 3 [json_name = "message"]; - void clear_message() ; - const std::string& message() const; + // string registry_item_id = 2 [json_name = "registryItemId", (.tagger.v1.tags) = "bson:\"registry_item_id\" json:\"registry_item_id\""]; + void clear_registry_item_id() ; + const std::string& registry_item_id() const; template - void set_message(Arg_&& arg, Args_... args); - std::string* mutable_message(); - PROTOBUF_NODISCARD std::string* release_message(); - void set_allocated_message(std::string* value); + void set_registry_item_id(Arg_&& arg, Args_... args); + std::string* mutable_registry_item_id(); + PROTOBUF_NODISCARD std::string* release_registry_item_id(); + void set_allocated_registry_item_id(std::string* value); private: - const std::string& _internal_message() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_message( + const std::string& _internal_registry_item_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_registry_item_id( const std::string& value); - std::string* _internal_mutable_message(); + std::string* _internal_mutable_registry_item_id(); public: - // .google.protobuf.Timestamp time = 2 [json_name = "time"]; - bool has_time() const; - void clear_time() ; - const ::google::protobuf::Timestamp& time() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_time(); - ::google::protobuf::Timestamp* mutable_time(); - void set_allocated_time(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_time(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_time(); + // string organization_id = 3 [json_name = "organizationId", (.tagger.v1.tags) = "bson:\"organization_id\" json:\"organization_id\""]; + void clear_organization_id() ; + const std::string& organization_id() const; + template + void set_organization_id(Arg_&& arg, Args_... args); + std::string* mutable_organization_id(); + PROTOBUF_NODISCARD std::string* release_organization_id(); + void set_allocated_organization_id(std::string* value); private: - const ::google::protobuf::Timestamp& _internal_time() const; - ::google::protobuf::Timestamp* _internal_mutable_time(); + const std::string& _internal_organization_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_organization_id( + const std::string& value); + std::string* _internal_mutable_organization_id(); public: - // @@protoc_insertion_point(class_scope:viam.app.mltraining.v1.TrainingJobLogEntry) + // string model_name = 4 [json_name = "modelName", (.tagger.v1.tags) = "bson:\"model_name\" json:\"model_name\""]; + void clear_model_name() ; + const std::string& model_name() const; + template + void set_model_name(Arg_&& arg, Args_... args); + std::string* mutable_model_name(); + PROTOBUF_NODISCARD std::string* release_model_name(); + void set_allocated_model_name(std::string* value); + + private: + const std::string& _internal_model_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_model_name( + const std::string& value); + std::string* _internal_mutable_model_name(); + + public: + // string model_version = 5 [json_name = "modelVersion", (.tagger.v1.tags) = "bson:\"model_version\" json:\"model_version\""]; + void clear_model_version() ; + const std::string& model_version() const; + template + void set_model_version(Arg_&& arg, Args_... args); + std::string* mutable_model_version(); + PROTOBUF_NODISCARD std::string* release_model_version(); + void set_allocated_model_version(std::string* value); + + private: + const std::string& _internal_model_version() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_model_version( + const std::string& value); + std::string* _internal_mutable_model_version(); + + public: + // string registry_item_version = 6 [json_name = "registryItemVersion", (.tagger.v1.tags) = "bson:\"registry_item_version\" json:\"registry_item_version\""]; + void clear_registry_item_version() ; + const std::string& registry_item_version() const; + template + void set_registry_item_version(Arg_&& arg, Args_... args); + std::string* mutable_registry_item_version(); + PROTOBUF_NODISCARD std::string* release_registry_item_version(); + void set_allocated_registry_item_version(std::string* value); + + private: + const std::string& _internal_registry_item_version() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_registry_item_version( + const std::string& value); + std::string* _internal_mutable_registry_item_version(); + + public: + // @@protoc_insertion_point(class_scope:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest) private: class _Internal; friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< - 2, 3, 1, - 63, 2> + 3, 7, 1, + 156, 2> _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; @@ -2565,11 +2616,17 @@ class TrainingJobLogEntry final : ::google::protobuf::Arena* arena); inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::MapField + arguments_; + ::google::protobuf::internal::ArenaStringPtr dataset_id_; + ::google::protobuf::internal::ArenaStringPtr registry_item_id_; + ::google::protobuf::internal::ArenaStringPtr organization_id_; + ::google::protobuf::internal::ArenaStringPtr model_name_; + ::google::protobuf::internal::ArenaStringPtr model_version_; + ::google::protobuf::internal::ArenaStringPtr registry_item_version_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr level_; - ::google::protobuf::internal::ArenaStringPtr message_; - ::google::protobuf::Timestamp* time_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; @@ -2635,7 +2692,7 @@ class TrainingJobMetadata final : &_TrainingJobMetadata_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 9; friend void swap(TrainingJobMetadata& a, TrainingJobMetadata& b) { a.Swap(&b); @@ -3106,7 +3163,7 @@ class GetTrainingJobLogsResponse final : &_GetTrainingJobLogsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 15; + 16; friend void swap(GetTrainingJobLogsResponse& a, GetTrainingJobLogsResponse& b) { a.Swap(&b); @@ -3307,7 +3364,7 @@ class ListTrainingJobsResponse final : &_ListTrainingJobsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 8; friend void swap(ListTrainingJobsResponse& a, ListTrainingJobsResponse& b) { a.Swap(&b); @@ -3490,7 +3547,7 @@ class GetTrainingJobResponse final : &_GetTrainingJobResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 6; friend void swap(GetTrainingJobResponse& a, GetTrainingJobResponse& b) { a.Swap(&b); @@ -4023,6 +4080,8 @@ inline void SubmitTrainingJobResponse::set_allocated_id(std::string* value) { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + // SubmitCustomTrainingJobRequest // string dataset_id = 1 [json_name = "datasetId", (.tagger.v1.tags) = "bson:\"dataset_id\" json:\"dataset_id\""]; @@ -4343,6 +4402,34 @@ inline void SubmitCustomTrainingJobRequest::set_allocated_model_version(std::str // @@protoc_insertion_point(field_set_allocated:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.model_version) } +// map arguments = 7 [json_name = "arguments"]; +inline int SubmitCustomTrainingJobRequest::_internal_arguments_size() const { + return _internal_arguments().size(); +} +inline int SubmitCustomTrainingJobRequest::arguments_size() const { + return _internal_arguments_size(); +} +inline void SubmitCustomTrainingJobRequest::clear_arguments() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.arguments_.Clear(); +} +inline const ::google::protobuf::Map& SubmitCustomTrainingJobRequest::_internal_arguments() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.arguments_.GetMap(); +} +inline const ::google::protobuf::Map& SubmitCustomTrainingJobRequest::arguments() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_map:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.arguments) + return _internal_arguments(); +} +inline ::google::protobuf::Map* SubmitCustomTrainingJobRequest::_internal_mutable_arguments() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.arguments_.MutableMap(); +} +inline ::google::protobuf::Map* SubmitCustomTrainingJobRequest::mutable_arguments() ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_mutable_map:viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.arguments) + return _internal_mutable_arguments(); +} + // ------------------------------------------------------------------- // SubmitCustomTrainingJobResponse diff --git a/src/viam/api/app/v1/billing.grpc.pb.cc b/src/viam/api/app/v1/billing.grpc.pb.cc index 237a33e60..07f1d5c8a 100644 --- a/src/viam/api/app/v1/billing.grpc.pb.cc +++ b/src/viam/api/app/v1/billing.grpc.pb.cc @@ -28,6 +28,7 @@ static const char* BillingService_method_names[] = { "/viam.app.v1.BillingService/GetOrgBillingInformation", "/viam.app.v1.BillingService/GetInvoicesSummary", "/viam.app.v1.BillingService/GetInvoicePdf", + "/viam.app.v1.BillingService/SendPaymentRequiredEmail", }; std::unique_ptr< BillingService::Stub> BillingService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { @@ -41,6 +42,7 @@ BillingService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& cha , rpcmethod_GetOrgBillingInformation_(BillingService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_GetInvoicesSummary_(BillingService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_GetInvoicePdf_(BillingService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel) + , rpcmethod_SendPaymentRequiredEmail_(BillingService_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status BillingService::Stub::GetCurrentMonthUsage(::grpc::ClientContext* context, const ::viam::app::v1::GetCurrentMonthUsageRequest& request, ::viam::app::v1::GetCurrentMonthUsageResponse* response) { @@ -128,6 +130,29 @@ ::grpc::ClientAsyncReader< ::viam::app::v1::GetInvoicePdfResponse>* BillingServi return ::grpc::internal::ClientAsyncReaderFactory< ::viam::app::v1::GetInvoicePdfResponse>::Create(channel_.get(), cq, rpcmethod_GetInvoicePdf_, context, request, false, nullptr); } +::grpc::Status BillingService::Stub::SendPaymentRequiredEmail(::grpc::ClientContext* context, const ::viam::app::v1::SendPaymentRequiredEmailRequest& request, ::viam::app::v1::SendPaymentRequiredEmailResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::app::v1::SendPaymentRequiredEmailRequest, ::viam::app::v1::SendPaymentRequiredEmailResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SendPaymentRequiredEmail_, context, request, response); +} + +void BillingService::Stub::async::SendPaymentRequiredEmail(::grpc::ClientContext* context, const ::viam::app::v1::SendPaymentRequiredEmailRequest* request, ::viam::app::v1::SendPaymentRequiredEmailResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::app::v1::SendPaymentRequiredEmailRequest, ::viam::app::v1::SendPaymentRequiredEmailResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SendPaymentRequiredEmail_, context, request, response, std::move(f)); +} + +void BillingService::Stub::async::SendPaymentRequiredEmail(::grpc::ClientContext* context, const ::viam::app::v1::SendPaymentRequiredEmailRequest* request, ::viam::app::v1::SendPaymentRequiredEmailResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SendPaymentRequiredEmail_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::SendPaymentRequiredEmailResponse>* BillingService::Stub::PrepareAsyncSendPaymentRequiredEmailRaw(::grpc::ClientContext* context, const ::viam::app::v1::SendPaymentRequiredEmailRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::app::v1::SendPaymentRequiredEmailResponse, ::viam::app::v1::SendPaymentRequiredEmailRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_SendPaymentRequiredEmail_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::app::v1::SendPaymentRequiredEmailResponse>* BillingService::Stub::AsyncSendPaymentRequiredEmailRaw(::grpc::ClientContext* context, const ::viam::app::v1::SendPaymentRequiredEmailRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncSendPaymentRequiredEmailRaw(context, request, cq); + result->StartCall(); + return result; +} + BillingService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( BillingService_method_names[0], @@ -169,6 +194,16 @@ BillingService::Service::Service() { ::grpc::ServerWriter<::viam::app::v1::GetInvoicePdfResponse>* writer) { return service->GetInvoicePdf(ctx, req, writer); }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + BillingService_method_names[4], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< BillingService::Service, ::viam::app::v1::SendPaymentRequiredEmailRequest, ::viam::app::v1::SendPaymentRequiredEmailResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](BillingService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::app::v1::SendPaymentRequiredEmailRequest* req, + ::viam::app::v1::SendPaymentRequiredEmailResponse* resp) { + return service->SendPaymentRequiredEmail(ctx, req, resp); + }, this))); } BillingService::Service::~Service() { @@ -202,6 +237,13 @@ ::grpc::Status BillingService::Service::GetInvoicePdf(::grpc::ServerContext* con return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } +::grpc::Status BillingService::Service::SendPaymentRequiredEmail(::grpc::ServerContext* context, const ::viam::app::v1::SendPaymentRequiredEmailRequest* request, ::viam::app::v1::SendPaymentRequiredEmailResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + } // namespace viam } // namespace app diff --git a/src/viam/api/app/v1/billing.grpc.pb.h b/src/viam/api/app/v1/billing.grpc.pb.h index 9e7768841..0242c394a 100644 --- a/src/viam/api/app/v1/billing.grpc.pb.h +++ b/src/viam/api/app/v1/billing.grpc.pb.h @@ -71,6 +71,14 @@ class BillingService final { std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::viam::app::v1::GetInvoicePdfResponse>> PrepareAsyncGetInvoicePdf(::grpc::ClientContext* context, const ::viam::app::v1::GetInvoicePdfRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::viam::app::v1::GetInvoicePdfResponse>>(PrepareAsyncGetInvoicePdfRaw(context, request, cq)); } + // Send an email with a prompt to the user's org's billing page. + virtual ::grpc::Status SendPaymentRequiredEmail(::grpc::ClientContext* context, const ::viam::app::v1::SendPaymentRequiredEmailRequest& request, ::viam::app::v1::SendPaymentRequiredEmailResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::SendPaymentRequiredEmailResponse>> AsyncSendPaymentRequiredEmail(::grpc::ClientContext* context, const ::viam::app::v1::SendPaymentRequiredEmailRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::SendPaymentRequiredEmailResponse>>(AsyncSendPaymentRequiredEmailRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::SendPaymentRequiredEmailResponse>> PrepareAsyncSendPaymentRequiredEmail(::grpc::ClientContext* context, const ::viam::app::v1::SendPaymentRequiredEmailRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::SendPaymentRequiredEmailResponse>>(PrepareAsyncSendPaymentRequiredEmailRaw(context, request, cq)); + } class async_interface { public: virtual ~async_interface() {} @@ -85,6 +93,9 @@ class BillingService final { virtual void GetInvoicesSummary(::grpc::ClientContext* context, const ::viam::app::v1::GetInvoicesSummaryRequest* request, ::viam::app::v1::GetInvoicesSummaryResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; // Download a PDF invoice virtual void GetInvoicePdf(::grpc::ClientContext* context, const ::viam::app::v1::GetInvoicePdfRequest* request, ::grpc::ClientReadReactor< ::viam::app::v1::GetInvoicePdfResponse>* reactor) = 0; + // Send an email with a prompt to the user's org's billing page. + virtual void SendPaymentRequiredEmail(::grpc::ClientContext* context, const ::viam::app::v1::SendPaymentRequiredEmailRequest* request, ::viam::app::v1::SendPaymentRequiredEmailResponse* response, std::function) = 0; + virtual void SendPaymentRequiredEmail(::grpc::ClientContext* context, const ::viam::app::v1::SendPaymentRequiredEmailRequest* request, ::viam::app::v1::SendPaymentRequiredEmailResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; }; typedef class async_interface experimental_async_interface; virtual class async_interface* async() { return nullptr; } @@ -99,6 +110,8 @@ class BillingService final { virtual ::grpc::ClientReaderInterface< ::viam::app::v1::GetInvoicePdfResponse>* GetInvoicePdfRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetInvoicePdfRequest& request) = 0; virtual ::grpc::ClientAsyncReaderInterface< ::viam::app::v1::GetInvoicePdfResponse>* AsyncGetInvoicePdfRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetInvoicePdfRequest& request, ::grpc::CompletionQueue* cq, void* tag) = 0; virtual ::grpc::ClientAsyncReaderInterface< ::viam::app::v1::GetInvoicePdfResponse>* PrepareAsyncGetInvoicePdfRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetInvoicePdfRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::SendPaymentRequiredEmailResponse>* AsyncSendPaymentRequiredEmailRaw(::grpc::ClientContext* context, const ::viam::app::v1::SendPaymentRequiredEmailRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::app::v1::SendPaymentRequiredEmailResponse>* PrepareAsyncSendPaymentRequiredEmailRaw(::grpc::ClientContext* context, const ::viam::app::v1::SendPaymentRequiredEmailRequest& request, ::grpc::CompletionQueue* cq) = 0; }; class Stub final : public StubInterface { public: @@ -133,6 +146,13 @@ class BillingService final { std::unique_ptr< ::grpc::ClientAsyncReader< ::viam::app::v1::GetInvoicePdfResponse>> PrepareAsyncGetInvoicePdf(::grpc::ClientContext* context, const ::viam::app::v1::GetInvoicePdfRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncReader< ::viam::app::v1::GetInvoicePdfResponse>>(PrepareAsyncGetInvoicePdfRaw(context, request, cq)); } + ::grpc::Status SendPaymentRequiredEmail(::grpc::ClientContext* context, const ::viam::app::v1::SendPaymentRequiredEmailRequest& request, ::viam::app::v1::SendPaymentRequiredEmailResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::SendPaymentRequiredEmailResponse>> AsyncSendPaymentRequiredEmail(::grpc::ClientContext* context, const ::viam::app::v1::SendPaymentRequiredEmailRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::SendPaymentRequiredEmailResponse>>(AsyncSendPaymentRequiredEmailRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::SendPaymentRequiredEmailResponse>> PrepareAsyncSendPaymentRequiredEmail(::grpc::ClientContext* context, const ::viam::app::v1::SendPaymentRequiredEmailRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::app::v1::SendPaymentRequiredEmailResponse>>(PrepareAsyncSendPaymentRequiredEmailRaw(context, request, cq)); + } class async final : public StubInterface::async_interface { public: @@ -143,6 +163,8 @@ class BillingService final { void GetInvoicesSummary(::grpc::ClientContext* context, const ::viam::app::v1::GetInvoicesSummaryRequest* request, ::viam::app::v1::GetInvoicesSummaryResponse* response, std::function) override; void GetInvoicesSummary(::grpc::ClientContext* context, const ::viam::app::v1::GetInvoicesSummaryRequest* request, ::viam::app::v1::GetInvoicesSummaryResponse* response, ::grpc::ClientUnaryReactor* reactor) override; void GetInvoicePdf(::grpc::ClientContext* context, const ::viam::app::v1::GetInvoicePdfRequest* request, ::grpc::ClientReadReactor< ::viam::app::v1::GetInvoicePdfResponse>* reactor) override; + void SendPaymentRequiredEmail(::grpc::ClientContext* context, const ::viam::app::v1::SendPaymentRequiredEmailRequest* request, ::viam::app::v1::SendPaymentRequiredEmailResponse* response, std::function) override; + void SendPaymentRequiredEmail(::grpc::ClientContext* context, const ::viam::app::v1::SendPaymentRequiredEmailRequest* request, ::viam::app::v1::SendPaymentRequiredEmailResponse* response, ::grpc::ClientUnaryReactor* reactor) override; private: friend class Stub; explicit async(Stub* stub): stub_(stub) { } @@ -163,10 +185,13 @@ class BillingService final { ::grpc::ClientReader< ::viam::app::v1::GetInvoicePdfResponse>* GetInvoicePdfRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetInvoicePdfRequest& request) override; ::grpc::ClientAsyncReader< ::viam::app::v1::GetInvoicePdfResponse>* AsyncGetInvoicePdfRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetInvoicePdfRequest& request, ::grpc::CompletionQueue* cq, void* tag) override; ::grpc::ClientAsyncReader< ::viam::app::v1::GetInvoicePdfResponse>* PrepareAsyncGetInvoicePdfRaw(::grpc::ClientContext* context, const ::viam::app::v1::GetInvoicePdfRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::SendPaymentRequiredEmailResponse>* AsyncSendPaymentRequiredEmailRaw(::grpc::ClientContext* context, const ::viam::app::v1::SendPaymentRequiredEmailRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::app::v1::SendPaymentRequiredEmailResponse>* PrepareAsyncSendPaymentRequiredEmailRaw(::grpc::ClientContext* context, const ::viam::app::v1::SendPaymentRequiredEmailRequest& request, ::grpc::CompletionQueue* cq) override; const ::grpc::internal::RpcMethod rpcmethod_GetCurrentMonthUsage_; const ::grpc::internal::RpcMethod rpcmethod_GetOrgBillingInformation_; const ::grpc::internal::RpcMethod rpcmethod_GetInvoicesSummary_; const ::grpc::internal::RpcMethod rpcmethod_GetInvoicePdf_; + const ::grpc::internal::RpcMethod rpcmethod_SendPaymentRequiredEmail_; }; static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); @@ -182,6 +207,8 @@ class BillingService final { virtual ::grpc::Status GetInvoicesSummary(::grpc::ServerContext* context, const ::viam::app::v1::GetInvoicesSummaryRequest* request, ::viam::app::v1::GetInvoicesSummaryResponse* response); // Download a PDF invoice virtual ::grpc::Status GetInvoicePdf(::grpc::ServerContext* context, const ::viam::app::v1::GetInvoicePdfRequest* request, ::grpc::ServerWriter< ::viam::app::v1::GetInvoicePdfResponse>* writer); + // Send an email with a prompt to the user's org's billing page. + virtual ::grpc::Status SendPaymentRequiredEmail(::grpc::ServerContext* context, const ::viam::app::v1::SendPaymentRequiredEmailRequest* request, ::viam::app::v1::SendPaymentRequiredEmailResponse* response); }; template class WithAsyncMethod_GetCurrentMonthUsage : public BaseClass { @@ -263,7 +290,27 @@ class BillingService final { ::grpc::Service::RequestAsyncServerStreaming(3, context, request, writer, new_call_cq, notification_cq, tag); } }; - typedef WithAsyncMethod_GetCurrentMonthUsage > > > AsyncService; + template + class WithAsyncMethod_SendPaymentRequiredEmail : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_SendPaymentRequiredEmail() { + ::grpc::Service::MarkMethodAsync(4); + } + ~WithAsyncMethod_SendPaymentRequiredEmail() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SendPaymentRequiredEmail(::grpc::ServerContext* /*context*/, const ::viam::app::v1::SendPaymentRequiredEmailRequest* /*request*/, ::viam::app::v1::SendPaymentRequiredEmailResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSendPaymentRequiredEmail(::grpc::ServerContext* context, ::viam::app::v1::SendPaymentRequiredEmailRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::app::v1::SendPaymentRequiredEmailResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_GetCurrentMonthUsage > > > > AsyncService; template class WithCallbackMethod_GetCurrentMonthUsage : public BaseClass { private: @@ -367,7 +414,34 @@ class BillingService final { virtual ::grpc::ServerWriteReactor< ::viam::app::v1::GetInvoicePdfResponse>* GetInvoicePdf( ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::GetInvoicePdfRequest* /*request*/) { return nullptr; } }; - typedef WithCallbackMethod_GetCurrentMonthUsage > > > CallbackService; + template + class WithCallbackMethod_SendPaymentRequiredEmail : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_SendPaymentRequiredEmail() { + ::grpc::Service::MarkMethodCallback(4, + new ::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::SendPaymentRequiredEmailRequest, ::viam::app::v1::SendPaymentRequiredEmailResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::app::v1::SendPaymentRequiredEmailRequest* request, ::viam::app::v1::SendPaymentRequiredEmailResponse* response) { return this->SendPaymentRequiredEmail(context, request, response); }));} + void SetMessageAllocatorFor_SendPaymentRequiredEmail( + ::grpc::MessageAllocator< ::viam::app::v1::SendPaymentRequiredEmailRequest, ::viam::app::v1::SendPaymentRequiredEmailResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::app::v1::SendPaymentRequiredEmailRequest, ::viam::app::v1::SendPaymentRequiredEmailResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_SendPaymentRequiredEmail() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SendPaymentRequiredEmail(::grpc::ServerContext* /*context*/, const ::viam::app::v1::SendPaymentRequiredEmailRequest* /*request*/, ::viam::app::v1::SendPaymentRequiredEmailResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* SendPaymentRequiredEmail( + ::grpc::CallbackServerContext* /*context*/, const ::viam::app::v1::SendPaymentRequiredEmailRequest* /*request*/, ::viam::app::v1::SendPaymentRequiredEmailResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_GetCurrentMonthUsage > > > > CallbackService; typedef CallbackService ExperimentalCallbackService; template class WithGenericMethod_GetCurrentMonthUsage : public BaseClass { @@ -438,6 +512,23 @@ class BillingService final { } }; template + class WithGenericMethod_SendPaymentRequiredEmail : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_SendPaymentRequiredEmail() { + ::grpc::Service::MarkMethodGeneric(4); + } + ~WithGenericMethod_SendPaymentRequiredEmail() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SendPaymentRequiredEmail(::grpc::ServerContext* /*context*/, const ::viam::app::v1::SendPaymentRequiredEmailRequest* /*request*/, ::viam::app::v1::SendPaymentRequiredEmailResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template class WithRawMethod_GetCurrentMonthUsage : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} @@ -518,6 +609,26 @@ class BillingService final { } }; template + class WithRawMethod_SendPaymentRequiredEmail : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_SendPaymentRequiredEmail() { + ::grpc::Service::MarkMethodRaw(4); + } + ~WithRawMethod_SendPaymentRequiredEmail() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SendPaymentRequiredEmail(::grpc::ServerContext* /*context*/, const ::viam::app::v1::SendPaymentRequiredEmailRequest* /*request*/, ::viam::app::v1::SendPaymentRequiredEmailResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSendPaymentRequiredEmail(::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(4, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template class WithRawCallbackMethod_GetCurrentMonthUsage : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} @@ -606,6 +717,28 @@ class BillingService final { ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) { return nullptr; } }; template + class WithRawCallbackMethod_SendPaymentRequiredEmail : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_SendPaymentRequiredEmail() { + ::grpc::Service::MarkMethodRawCallback(4, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SendPaymentRequiredEmail(context, request, response); })); + } + ~WithRawCallbackMethod_SendPaymentRequiredEmail() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SendPaymentRequiredEmail(::grpc::ServerContext* /*context*/, const ::viam::app::v1::SendPaymentRequiredEmailRequest* /*request*/, ::viam::app::v1::SendPaymentRequiredEmailResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* SendPaymentRequiredEmail( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template class WithStreamedUnaryMethod_GetCurrentMonthUsage : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} @@ -686,7 +819,34 @@ class BillingService final { // replace default version of method with streamed unary virtual ::grpc::Status StreamedGetInvoicesSummary(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::GetInvoicesSummaryRequest,::viam::app::v1::GetInvoicesSummaryResponse>* server_unary_streamer) = 0; }; - typedef WithStreamedUnaryMethod_GetCurrentMonthUsage > > StreamedUnaryService; + template + class WithStreamedUnaryMethod_SendPaymentRequiredEmail : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_SendPaymentRequiredEmail() { + ::grpc::Service::MarkMethodStreamed(4, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::app::v1::SendPaymentRequiredEmailRequest, ::viam::app::v1::SendPaymentRequiredEmailResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::app::v1::SendPaymentRequiredEmailRequest, ::viam::app::v1::SendPaymentRequiredEmailResponse>* streamer) { + return this->StreamedSendPaymentRequiredEmail(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_SendPaymentRequiredEmail() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status SendPaymentRequiredEmail(::grpc::ServerContext* /*context*/, const ::viam::app::v1::SendPaymentRequiredEmailRequest* /*request*/, ::viam::app::v1::SendPaymentRequiredEmailResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedSendPaymentRequiredEmail(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::app::v1::SendPaymentRequiredEmailRequest,::viam::app::v1::SendPaymentRequiredEmailResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_GetCurrentMonthUsage > > > StreamedUnaryService; template class WithSplitStreamingMethod_GetInvoicePdf : public BaseClass { private: @@ -715,7 +875,7 @@ class BillingService final { virtual ::grpc::Status StreamedGetInvoicePdf(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::viam::app::v1::GetInvoicePdfRequest,::viam::app::v1::GetInvoicePdfResponse>* server_split_streamer) = 0; }; typedef WithSplitStreamingMethod_GetInvoicePdf SplitStreamedService; - typedef WithStreamedUnaryMethod_GetCurrentMonthUsage > > > StreamedService; + typedef WithStreamedUnaryMethod_GetCurrentMonthUsage > > > > StreamedService; }; } // namespace v1 diff --git a/src/viam/api/app/v1/billing.pb.cc b/src/viam/api/app/v1/billing.pb.cc index 0467c9ede..812f65d1e 100644 --- a/src/viam/api/app/v1/billing.pb.cc +++ b/src/viam/api/app/v1/billing.pb.cc @@ -23,6 +23,42 @@ namespace _fl = ::google::protobuf::internal::field_layout; namespace viam { namespace app { namespace v1 { + template +PROTOBUF_CONSTEXPR SendPaymentRequiredEmailResponse::SendPaymentRequiredEmailResponse(::_pbi::ConstantInitialized) {} +struct SendPaymentRequiredEmailResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SendPaymentRequiredEmailResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SendPaymentRequiredEmailResponseDefaultTypeInternal() {} + union { + SendPaymentRequiredEmailResponse _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SendPaymentRequiredEmailResponseDefaultTypeInternal _SendPaymentRequiredEmailResponse_default_instance_; + +inline constexpr SendPaymentRequiredEmailRequest::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : customer_org_id_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + billing_owner_org_id_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR SendPaymentRequiredEmailRequest::SendPaymentRequiredEmailRequest(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct SendPaymentRequiredEmailRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SendPaymentRequiredEmailRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SendPaymentRequiredEmailRequestDefaultTypeInternal() {} + union { + SendPaymentRequiredEmailRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SendPaymentRequiredEmailRequestDefaultTypeInternal _SendPaymentRequiredEmailRequest_default_instance_; inline constexpr PaymentMethodCard::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept @@ -329,7 +365,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT } // namespace v1 } // namespace app } // namespace viam -static ::_pb::Metadata file_level_metadata_app_2fv1_2fbilling_2eproto[12]; +static ::_pb::Metadata file_level_metadata_app_2fv1_2fbilling_2eproto[14]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_app_2fv1_2fbilling_2eproto[1]; static constexpr const ::_pb::ServiceDescriptor** file_level_service_descriptors_app_2fv1_2fbilling_2eproto = nullptr; @@ -515,6 +551,24 @@ const ::uint32_t TableStruct_app_2fv1_2fbilling_2eproto::offsets[] PROTOBUF_SECT ~0u, // no _split_ ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::viam::app::v1::GetInvoicePdfResponse, _impl_.chunk_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::SendPaymentRequiredEmailRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::viam::app::v1::SendPaymentRequiredEmailRequest, _impl_.customer_org_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::SendPaymentRequiredEmailRequest, _impl_.billing_owner_org_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::SendPaymentRequiredEmailResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) }; static const ::_pbi::MigrationSchema @@ -531,6 +585,8 @@ static const ::_pbi::MigrationSchema {151, -1, -1, sizeof(::viam::app::v1::GetInvoicesSummaryResponse)}, {161, -1, -1, sizeof(::viam::app::v1::GetInvoicePdfRequest)}, {171, -1, -1, sizeof(::viam::app::v1::GetInvoicePdfResponse)}, + {180, -1, -1, sizeof(::viam::app::v1::SendPaymentRequiredEmailRequest)}, + {190, -1, -1, sizeof(::viam::app::v1::SendPaymentRequiredEmailResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -546,6 +602,8 @@ static const ::_pb::Message* const file_default_instances[] = { &::viam::app::v1::_GetInvoicesSummaryResponse_default_instance_._instance, &::viam::app::v1::_GetInvoicePdfRequest_default_instance_._instance, &::viam::app::v1::_GetInvoicePdfResponse_default_instance_._instance, + &::viam::app::v1::_SendPaymentRequiredEmailRequest_default_instance_._instance, + &::viam::app::v1::_SendPaymentRequiredEmailResponse_default_instance_._instance, }; const char descriptor_table_protodef_app_2fv1_2fbilling_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { "\n\024app/v1/billing.proto\022\013viam.app.v1\032\037goo" @@ -609,9 +667,13 @@ const char descriptor_table_protodef_app_2fv1_2fbilling_2eproto[] PROTOBUF_SECTI ".InvoiceSummaryR\010invoices\"=\n\024GetInvoiceP" "dfRequest\022\016\n\002id\030\001 \001(\tR\002id\022\025\n\006org_id\030\002 \001(" "\tR\005orgId\"-\n\025GetInvoicePdfResponse\022\024\n\005chu" - "nk\030\001 \001(\014R\005chunk*V\n\021PaymentMethodType\022#\n\037" + "nk\030\001 \001(\014R\005chunk\"z\n\037SendPaymentRequiredEm" + "ailRequest\022&\n\017customer_org_id\030\001 \001(\tR\rcus" + "tomerOrgId\022/\n\024billing_owner_org_id\030\002 \001(\t" + "R\021billingOwnerOrgId\"\"\n SendPaymentRequir" + "edEmailResponse*V\n\021PaymentMethodType\022#\n\037" "PAYMENT_METHOD_TYPE_UNSPECIFIED\020\000\022\034\n\030PAY" - "MENT_METHOD_TYPE_CARD\020\0012\267\003\n\016BillingServi" + "MENT_METHOD_TYPE_CARD\020\0012\260\004\n\016BillingServi" "ce\022k\n\024GetCurrentMonthUsage\022(.viam.app.v1" ".GetCurrentMonthUsageRequest\032).viam.app." "v1.GetCurrentMonthUsageResponse\022w\n\030GetOr" @@ -622,11 +684,14 @@ const char descriptor_table_protodef_app_2fv1_2fbilling_2eproto[] PROTOBUF_SECTI "SummaryRequest\032\'.viam.app.v1.GetInvoices" "SummaryResponse\022X\n\rGetInvoicePdf\022!.viam." "app.v1.GetInvoicePdfRequest\032\".viam.app.v" - "1.GetInvoicePdfResponse0\001B\205\001\n\017com.viam.a" - "pp.v1B\014BillingProtoP\001Z\026go.viam.com/api/a" - "pp/v1\242\002\003VAX\252\002\013Viam.App.V1\312\002\013Viam\\App\\V1\342" - "\002\027Viam\\App\\V1\\GPBMetadata\352\002\rViam::App::V" - "1b\006proto3" + "1.GetInvoicePdfResponse0\001\022w\n\030SendPayment" + "RequiredEmail\022,.viam.app.v1.SendPaymentR" + "equiredEmailRequest\032-.viam.app.v1.SendPa" + "ymentRequiredEmailResponseB\205\001\n\017com.viam." + "app.v1B\014BillingProtoP\001Z\026go.viam.com/api/" + "app/v1\242\002\003VAX\252\002\013Viam.App.V1\312\002\013Viam\\App\\V1" + "\342\002\027Viam\\App\\V1\\GPBMetadata\352\002\rViam::App::" + "V1b\006proto3" }; static const ::_pbi::DescriptorTable* const descriptor_table_app_2fv1_2fbilling_2eproto_deps[1] = { @@ -636,13 +701,13 @@ static ::absl::once_flag descriptor_table_app_2fv1_2fbilling_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_app_2fv1_2fbilling_2eproto = { false, false, - 3129, + 3410, descriptor_table_protodef_app_2fv1_2fbilling_2eproto, "app/v1/billing.proto", &descriptor_table_app_2fv1_2fbilling_2eproto_once, descriptor_table_app_2fv1_2fbilling_2eproto_deps, 1, - 12, + 14, schemas, file_default_instances, TableStruct_app_2fv1_2fbilling_2eproto::offsets, @@ -4352,6 +4417,260 @@ ::google::protobuf::Metadata GetInvoicePdfResponse::GetMetadata() const { &descriptor_table_app_2fv1_2fbilling_2eproto_getter, &descriptor_table_app_2fv1_2fbilling_2eproto_once, file_level_metadata_app_2fv1_2fbilling_2eproto[11]); } +// =================================================================== + +class SendPaymentRequiredEmailRequest::_Internal { + public: +}; + +SendPaymentRequiredEmailRequest::SendPaymentRequiredEmailRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.SendPaymentRequiredEmailRequest) +} +inline PROTOBUF_NDEBUG_INLINE SendPaymentRequiredEmailRequest::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : customer_org_id_(arena, from.customer_org_id_), + billing_owner_org_id_(arena, from.billing_owner_org_id_), + _cached_size_{0} {} + +SendPaymentRequiredEmailRequest::SendPaymentRequiredEmailRequest( + ::google::protobuf::Arena* arena, + const SendPaymentRequiredEmailRequest& from) + : ::google::protobuf::Message(arena) { + SendPaymentRequiredEmailRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + + // @@protoc_insertion_point(copy_constructor:viam.app.v1.SendPaymentRequiredEmailRequest) +} +inline PROTOBUF_NDEBUG_INLINE SendPaymentRequiredEmailRequest::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : customer_org_id_(arena), + billing_owner_org_id_(arena), + _cached_size_{0} {} + +inline void SendPaymentRequiredEmailRequest::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); +} +SendPaymentRequiredEmailRequest::~SendPaymentRequiredEmailRequest() { + // @@protoc_insertion_point(destructor:viam.app.v1.SendPaymentRequiredEmailRequest) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void SendPaymentRequiredEmailRequest::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); + _impl_.customer_org_id_.Destroy(); + _impl_.billing_owner_org_id_.Destroy(); + _impl_.~Impl_(); +} + +PROTOBUF_NOINLINE void SendPaymentRequiredEmailRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.SendPaymentRequiredEmailRequest) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.customer_org_id_.ClearToEmpty(); + _impl_.billing_owner_org_id_.ClearToEmpty(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* SendPaymentRequiredEmailRequest::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 87, 2> SendPaymentRequiredEmailRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_SendPaymentRequiredEmailRequest_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // string billing_owner_org_id = 2 [json_name = "billingOwnerOrgId"]; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(SendPaymentRequiredEmailRequest, _impl_.billing_owner_org_id_)}}, + // string customer_org_id = 1 [json_name = "customerOrgId"]; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(SendPaymentRequiredEmailRequest, _impl_.customer_org_id_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string customer_org_id = 1 [json_name = "customerOrgId"]; + {PROTOBUF_FIELD_OFFSET(SendPaymentRequiredEmailRequest, _impl_.customer_org_id_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string billing_owner_org_id = 2 [json_name = "billingOwnerOrgId"]; + {PROTOBUF_FIELD_OFFSET(SendPaymentRequiredEmailRequest, _impl_.billing_owner_org_id_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\53\17\24\0\0\0\0\0" + "viam.app.v1.SendPaymentRequiredEmailRequest" + "customer_org_id" + "billing_owner_org_id" + }}, +}; + +::uint8_t* SendPaymentRequiredEmailRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.SendPaymentRequiredEmailRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // string customer_org_id = 1 [json_name = "customerOrgId"]; + if (!this->_internal_customer_org_id().empty()) { + const std::string& _s = this->_internal_customer_org_id(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.SendPaymentRequiredEmailRequest.customer_org_id"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + // string billing_owner_org_id = 2 [json_name = "billingOwnerOrgId"]; + if (!this->_internal_billing_owner_org_id().empty()) { + const std::string& _s = this->_internal_billing_owner_org_id(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "viam.app.v1.SendPaymentRequiredEmailRequest.billing_owner_org_id"); + target = stream->WriteStringMaybeAliased(2, _s, target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.SendPaymentRequiredEmailRequest) + return target; +} + +::size_t SendPaymentRequiredEmailRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.SendPaymentRequiredEmailRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string customer_org_id = 1 [json_name = "customerOrgId"]; + if (!this->_internal_customer_org_id().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_customer_org_id()); + } + + // string billing_owner_org_id = 2 [json_name = "billingOwnerOrgId"]; + if (!this->_internal_billing_owner_org_id().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this->_internal_billing_owner_org_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData SendPaymentRequiredEmailRequest::_class_data_ = { + SendPaymentRequiredEmailRequest::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* SendPaymentRequiredEmailRequest::GetClassData() const { + return &_class_data_; +} + +void SendPaymentRequiredEmailRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.SendPaymentRequiredEmailRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_customer_org_id().empty()) { + _this->_internal_set_customer_org_id(from._internal_customer_org_id()); + } + if (!from._internal_billing_owner_org_id().empty()) { + _this->_internal_set_billing_owner_org_id(from._internal_billing_owner_org_id()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void SendPaymentRequiredEmailRequest::CopyFrom(const SendPaymentRequiredEmailRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.SendPaymentRequiredEmailRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool SendPaymentRequiredEmailRequest::IsInitialized() const { + return true; +} + +::_pbi::CachedSize* SendPaymentRequiredEmailRequest::AccessCachedSize() const { + return &_impl_._cached_size_; +} +void SendPaymentRequiredEmailRequest::InternalSwap(SendPaymentRequiredEmailRequest* PROTOBUF_RESTRICT other) { + using std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.customer_org_id_, &other->_impl_.customer_org_id_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.billing_owner_org_id_, &other->_impl_.billing_owner_org_id_, arena); +} + +::google::protobuf::Metadata SendPaymentRequiredEmailRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fbilling_2eproto_getter, &descriptor_table_app_2fv1_2fbilling_2eproto_once, + file_level_metadata_app_2fv1_2fbilling_2eproto[12]); +} +// =================================================================== + +class SendPaymentRequiredEmailResponse::_Internal { + public: +}; + +SendPaymentRequiredEmailResponse::SendPaymentRequiredEmailResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { + // @@protoc_insertion_point(arena_constructor:viam.app.v1.SendPaymentRequiredEmailResponse) +} +SendPaymentRequiredEmailResponse::SendPaymentRequiredEmailResponse( + ::google::protobuf::Arena* arena, + const SendPaymentRequiredEmailResponse& from) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { + SendPaymentRequiredEmailResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:viam.app.v1.SendPaymentRequiredEmailResponse) +} + + + + + + + + + +::google::protobuf::Metadata SendPaymentRequiredEmailResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2fbilling_2eproto_getter, &descriptor_table_app_2fv1_2fbilling_2eproto_once, + file_level_metadata_app_2fv1_2fbilling_2eproto[13]); +} // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace app diff --git a/src/viam/api/app/v1/billing.pb.h b/src/viam/api/app/v1/billing.pb.h index 09a2b7569..1df9efbb2 100644 --- a/src/viam/api/app/v1/billing.pb.h +++ b/src/viam/api/app/v1/billing.pb.h @@ -26,6 +26,7 @@ #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/arena.h" #include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_bases.h" #include "google/protobuf/generated_message_tctable_decl.h" #include "google/protobuf/generated_message_util.h" #include "google/protobuf/metadata_lite.h" @@ -96,6 +97,12 @@ extern InvoiceSummaryDefaultTypeInternal _InvoiceSummary_default_instance_; class PaymentMethodCard; struct PaymentMethodCardDefaultTypeInternal; extern PaymentMethodCardDefaultTypeInternal _PaymentMethodCard_default_instance_; +class SendPaymentRequiredEmailRequest; +struct SendPaymentRequiredEmailRequestDefaultTypeInternal; +extern SendPaymentRequiredEmailRequestDefaultTypeInternal _SendPaymentRequiredEmailRequest_default_instance_; +class SendPaymentRequiredEmailResponse; +struct SendPaymentRequiredEmailResponseDefaultTypeInternal; +extern SendPaymentRequiredEmailResponseDefaultTypeInternal _SendPaymentRequiredEmailResponse_default_instance_; } // namespace v1 } // namespace app } // namespace viam @@ -146,6 +153,341 @@ inline bool PaymentMethodType_Parse(absl::string_view name, PaymentMethodType* v // ------------------------------------------------------------------- +class SendPaymentRequiredEmailResponse final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:viam.app.v1.SendPaymentRequiredEmailResponse) */ { + public: + inline SendPaymentRequiredEmailResponse() : SendPaymentRequiredEmailResponse(nullptr) {} + template + explicit PROTOBUF_CONSTEXPR SendPaymentRequiredEmailResponse(::google::protobuf::internal::ConstantInitialized); + + inline SendPaymentRequiredEmailResponse(const SendPaymentRequiredEmailResponse& from) + : SendPaymentRequiredEmailResponse(nullptr, from) {} + SendPaymentRequiredEmailResponse(SendPaymentRequiredEmailResponse&& from) noexcept + : SendPaymentRequiredEmailResponse() { + *this = ::std::move(from); + } + + inline SendPaymentRequiredEmailResponse& operator=(const SendPaymentRequiredEmailResponse& from) { + CopyFrom(from); + return *this; + } + inline SendPaymentRequiredEmailResponse& operator=(SendPaymentRequiredEmailResponse&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const SendPaymentRequiredEmailResponse& default_instance() { + return *internal_default_instance(); + } + static inline const SendPaymentRequiredEmailResponse* internal_default_instance() { + return reinterpret_cast( + &_SendPaymentRequiredEmailResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 13; + + friend void swap(SendPaymentRequiredEmailResponse& a, SendPaymentRequiredEmailResponse& b) { + a.Swap(&b); + } + inline void Swap(SendPaymentRequiredEmailResponse* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SendPaymentRequiredEmailResponse* other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SendPaymentRequiredEmailResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SendPaymentRequiredEmailResponse& from) { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SendPaymentRequiredEmailResponse& from) { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "viam.app.v1.SendPaymentRequiredEmailResponse"; + } + protected: + explicit SendPaymentRequiredEmailResponse(::google::protobuf::Arena* arena); + SendPaymentRequiredEmailResponse(::google::protobuf::Arena* arena, const SendPaymentRequiredEmailResponse& from); + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:viam.app.v1.SendPaymentRequiredEmailResponse) + private: + class _Internal; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + PROTOBUF_TSAN_DECLARE_MEMBER + }; + friend struct ::TableStruct_app_2fv1_2fbilling_2eproto; +};// ------------------------------------------------------------------- + +class SendPaymentRequiredEmailRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.SendPaymentRequiredEmailRequest) */ { + public: + inline SendPaymentRequiredEmailRequest() : SendPaymentRequiredEmailRequest(nullptr) {} + ~SendPaymentRequiredEmailRequest() override; + template + explicit PROTOBUF_CONSTEXPR SendPaymentRequiredEmailRequest(::google::protobuf::internal::ConstantInitialized); + + inline SendPaymentRequiredEmailRequest(const SendPaymentRequiredEmailRequest& from) + : SendPaymentRequiredEmailRequest(nullptr, from) {} + SendPaymentRequiredEmailRequest(SendPaymentRequiredEmailRequest&& from) noexcept + : SendPaymentRequiredEmailRequest() { + *this = ::std::move(from); + } + + inline SendPaymentRequiredEmailRequest& operator=(const SendPaymentRequiredEmailRequest& from) { + CopyFrom(from); + return *this; + } + inline SendPaymentRequiredEmailRequest& operator=(SendPaymentRequiredEmailRequest&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const SendPaymentRequiredEmailRequest& default_instance() { + return *internal_default_instance(); + } + static inline const SendPaymentRequiredEmailRequest* internal_default_instance() { + return reinterpret_cast( + &_SendPaymentRequiredEmailRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + friend void swap(SendPaymentRequiredEmailRequest& a, SendPaymentRequiredEmailRequest& b) { + a.Swap(&b); + } + inline void Swap(SendPaymentRequiredEmailRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SendPaymentRequiredEmailRequest* other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SendPaymentRequiredEmailRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const SendPaymentRequiredEmailRequest& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const SendPaymentRequiredEmailRequest& from) { + SendPaymentRequiredEmailRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(SendPaymentRequiredEmailRequest* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "viam.app.v1.SendPaymentRequiredEmailRequest"; + } + protected: + explicit SendPaymentRequiredEmailRequest(::google::protobuf::Arena* arena); + SendPaymentRequiredEmailRequest(::google::protobuf::Arena* arena, const SendPaymentRequiredEmailRequest& from); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kCustomerOrgIdFieldNumber = 1, + kBillingOwnerOrgIdFieldNumber = 2, + }; + // string customer_org_id = 1 [json_name = "customerOrgId"]; + void clear_customer_org_id() ; + const std::string& customer_org_id() const; + template + void set_customer_org_id(Arg_&& arg, Args_... args); + std::string* mutable_customer_org_id(); + PROTOBUF_NODISCARD std::string* release_customer_org_id(); + void set_allocated_customer_org_id(std::string* value); + + private: + const std::string& _internal_customer_org_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_customer_org_id( + const std::string& value); + std::string* _internal_mutable_customer_org_id(); + + public: + // string billing_owner_org_id = 2 [json_name = "billingOwnerOrgId"]; + void clear_billing_owner_org_id() ; + const std::string& billing_owner_org_id() const; + template + void set_billing_owner_org_id(Arg_&& arg, Args_... args); + std::string* mutable_billing_owner_org_id(); + PROTOBUF_NODISCARD std::string* release_billing_owner_org_id(); + void set_allocated_billing_owner_org_id(std::string* value); + + private: + const std::string& _internal_billing_owner_org_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_billing_owner_org_id( + const std::string& value); + std::string* _internal_mutable_billing_owner_org_id(); + + public: + // @@protoc_insertion_point(class_scope:viam.app.v1.SendPaymentRequiredEmailRequest) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 0, + 87, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::ArenaStringPtr customer_org_id_; + ::google::protobuf::internal::ArenaStringPtr billing_owner_org_id_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_app_2fv1_2fbilling_2eproto; +};// ------------------------------------------------------------------- + class PaymentMethodCard final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.PaymentMethodCard) */ { public: @@ -5281,6 +5623,120 @@ inline void GetInvoicePdfResponse::set_allocated_chunk(std::string* value) { // @@protoc_insertion_point(field_set_allocated:viam.app.v1.GetInvoicePdfResponse.chunk) } +// ------------------------------------------------------------------- + +// SendPaymentRequiredEmailRequest + +// string customer_org_id = 1 [json_name = "customerOrgId"]; +inline void SendPaymentRequiredEmailRequest::clear_customer_org_id() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.customer_org_id_.ClearToEmpty(); +} +inline const std::string& SendPaymentRequiredEmailRequest::customer_org_id() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:viam.app.v1.SendPaymentRequiredEmailRequest.customer_org_id) + return _internal_customer_org_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE void SendPaymentRequiredEmailRequest::set_customer_org_id(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.customer_org_id_.Set(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:viam.app.v1.SendPaymentRequiredEmailRequest.customer_org_id) +} +inline std::string* SendPaymentRequiredEmailRequest::mutable_customer_org_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_customer_org_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.SendPaymentRequiredEmailRequest.customer_org_id) + return _s; +} +inline const std::string& SendPaymentRequiredEmailRequest::_internal_customer_org_id() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.customer_org_id_.Get(); +} +inline void SendPaymentRequiredEmailRequest::_internal_set_customer_org_id(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.customer_org_id_.Set(value, GetArena()); +} +inline std::string* SendPaymentRequiredEmailRequest::_internal_mutable_customer_org_id() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.customer_org_id_.Mutable( GetArena()); +} +inline std::string* SendPaymentRequiredEmailRequest::release_customer_org_id() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:viam.app.v1.SendPaymentRequiredEmailRequest.customer_org_id) + return _impl_.customer_org_id_.Release(); +} +inline void SendPaymentRequiredEmailRequest::set_allocated_customer_org_id(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.customer_org_id_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.customer_org_id_.IsDefault()) { + _impl_.customer_org_id_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.SendPaymentRequiredEmailRequest.customer_org_id) +} + +// string billing_owner_org_id = 2 [json_name = "billingOwnerOrgId"]; +inline void SendPaymentRequiredEmailRequest::clear_billing_owner_org_id() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.billing_owner_org_id_.ClearToEmpty(); +} +inline const std::string& SendPaymentRequiredEmailRequest::billing_owner_org_id() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:viam.app.v1.SendPaymentRequiredEmailRequest.billing_owner_org_id) + return _internal_billing_owner_org_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE void SendPaymentRequiredEmailRequest::set_billing_owner_org_id(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.billing_owner_org_id_.Set(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:viam.app.v1.SendPaymentRequiredEmailRequest.billing_owner_org_id) +} +inline std::string* SendPaymentRequiredEmailRequest::mutable_billing_owner_org_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_billing_owner_org_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.SendPaymentRequiredEmailRequest.billing_owner_org_id) + return _s; +} +inline const std::string& SendPaymentRequiredEmailRequest::_internal_billing_owner_org_id() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.billing_owner_org_id_.Get(); +} +inline void SendPaymentRequiredEmailRequest::_internal_set_billing_owner_org_id(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.billing_owner_org_id_.Set(value, GetArena()); +} +inline std::string* SendPaymentRequiredEmailRequest::_internal_mutable_billing_owner_org_id() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.billing_owner_org_id_.Mutable( GetArena()); +} +inline std::string* SendPaymentRequiredEmailRequest::release_billing_owner_org_id() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:viam.app.v1.SendPaymentRequiredEmailRequest.billing_owner_org_id) + return _impl_.billing_owner_org_id_.Release(); +} +inline void SendPaymentRequiredEmailRequest::set_allocated_billing_owner_org_id(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.billing_owner_org_id_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.billing_owner_org_id_.IsDefault()) { + _impl_.billing_owner_org_id_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.SendPaymentRequiredEmailRequest.billing_owner_org_id) +} + +// ------------------------------------------------------------------- + +// SendPaymentRequiredEmailResponse + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ diff --git a/src/viam/api/buf.lock b/src/viam/api/buf.lock index 9f4eb612c..52a21d71f 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: fc5704c76b0345068281dd363aab5b4b + commit: 6ac8c4341cb24bae94038f494c51cd37 - remote: buf.build owner: viamrobotics repository: goutils