// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. syntax = "proto3"; package google.cloud.recommender.logging.v1; import "google/cloud/recommender/v1/recommendation.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/recommender/logging/v1;logging"; option java_multiple_files = true; option java_outer_classname = "ActionLogProto"; option java_package = "com.google.cloud.recommender.logging.v1"; // Log content of an action on a recommendation. This includes Mark* actions, as // well as ApplyRule actions. message ActionLog { // Required. User that executed this action. Eg, foo@gmail.com string actor = 1; // Required. Action that was taken by the actor. Eg, MarkCompleted. google.cloud.recommender.v1.RecommendationStateInfo.State state = 2; // Optional. Metadata that was included with the action that was taken. map state_metadata = 3; // Required. Name of the recommendation which was acted on. Eg, : // 'projects/foo/locations/global/recommenders/roleReco/recommendations/r1' string recommendation_name = 4; }