| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: google/cloud/recommender/logging/v1/action_log.proto |
| |
| package logging |
| |
| import ( |
| fmt "fmt" |
| math "math" |
| |
| proto "github.com/golang/protobuf/proto" |
| v1 "google.golang.org/genproto/googleapis/cloud/recommender/v1" |
| ) |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ = proto.Marshal |
| var _ = fmt.Errorf |
| var _ = math.Inf |
| |
| // This is a compile-time assertion to ensure that this generated file |
| // is compatible with the proto package it is being compiled against. |
| // A compilation error at this line likely means your copy of the |
| // proto package needs to be updated. |
| const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
| |
| // Log content of an action on a recommendation. This includes Mark* actions, as |
| // well as ApplyRule actions. |
| type ActionLog struct { |
| // Required. User that executed this action. Eg, foo@gmail.com |
| Actor string `protobuf:"bytes,1,opt,name=actor,proto3" json:"actor,omitempty"` |
| // Required. Action that was taken by the actor. Eg, MarkCompleted. |
| State v1.RecommendationStateInfo_State `protobuf:"varint,2,opt,name=state,proto3,enum=google.cloud.recommender.v1.RecommendationStateInfo_State" json:"state,omitempty"` |
| // Optional. Metadata that was included with the action that was taken. |
| StateMetadata map[string]string `protobuf:"bytes,3,rep,name=state_metadata,json=stateMetadata,proto3" json:"state_metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| // Required. Name of the recommendation which was acted on. Eg, : |
| // 'projects/foo/locations/global/recommenders/roleReco/recommendations/r1' |
| RecommendationName string `protobuf:"bytes,4,opt,name=recommendation_name,json=recommendationName,proto3" json:"recommendation_name,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *ActionLog) Reset() { *m = ActionLog{} } |
| func (m *ActionLog) String() string { return proto.CompactTextString(m) } |
| func (*ActionLog) ProtoMessage() {} |
| func (*ActionLog) Descriptor() ([]byte, []int) { |
| return fileDescriptor_e38d9a8d58fa2358, []int{0} |
| } |
| |
| func (m *ActionLog) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_ActionLog.Unmarshal(m, b) |
| } |
| func (m *ActionLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_ActionLog.Marshal(b, m, deterministic) |
| } |
| func (m *ActionLog) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_ActionLog.Merge(m, src) |
| } |
| func (m *ActionLog) XXX_Size() int { |
| return xxx_messageInfo_ActionLog.Size(m) |
| } |
| func (m *ActionLog) XXX_DiscardUnknown() { |
| xxx_messageInfo_ActionLog.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_ActionLog proto.InternalMessageInfo |
| |
| func (m *ActionLog) GetActor() string { |
| if m != nil { |
| return m.Actor |
| } |
| return "" |
| } |
| |
| func (m *ActionLog) GetState() v1.RecommendationStateInfo_State { |
| if m != nil { |
| return m.State |
| } |
| return v1.RecommendationStateInfo_STATE_UNSPECIFIED |
| } |
| |
| func (m *ActionLog) GetStateMetadata() map[string]string { |
| if m != nil { |
| return m.StateMetadata |
| } |
| return nil |
| } |
| |
| func (m *ActionLog) GetRecommendationName() string { |
| if m != nil { |
| return m.RecommendationName |
| } |
| return "" |
| } |
| |
| func init() { |
| proto.RegisterType((*ActionLog)(nil), "google.cloud.recommender.logging.v1.ActionLog") |
| proto.RegisterMapType((map[string]string)(nil), "google.cloud.recommender.logging.v1.ActionLog.StateMetadataEntry") |
| } |
| |
| func init() { |
| proto.RegisterFile("google/cloud/recommender/logging/v1/action_log.proto", fileDescriptor_e38d9a8d58fa2358) |
| } |
| |
| var fileDescriptor_e38d9a8d58fa2358 = []byte{ |
| // 323 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xc1, 0x4e, 0x02, 0x31, |
| 0x10, 0x86, 0x53, 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