| // Copyright 2019 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // versions: |
| // protoc-gen-go v1.25.0-devel |
| // protoc v3.12.1 |
| // source: infra/tricium/api/bigquery/event.proto |
| |
| package apibq |
| |
| import ( |
| protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| timestamppb "google.golang.org/protobuf/types/known/timestamppb" |
| v1 "infra/tricium/api/v1" |
| reflect "reflect" |
| sync "sync" |
| ) |
| |
| const ( |
| // Verify that this generated code is sufficiently up-to-date. |
| _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| // Verify that runtime/protoimpl is sufficiently up-to-date. |
| _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| ) |
| |
| // Types of event. |
| type FeedbackEvent_Type int32 |
| |
| const ( |
| FeedbackEvent_NONE FeedbackEvent_Type = 0 |
| FeedbackEvent_NOT_USEFUL FeedbackEvent_Type = 1 |
| FeedbackEvent_COMMENT_POST FeedbackEvent_Type = 2 |
| ) |
| |
| // Enum value maps for FeedbackEvent_Type. |
| var ( |
| FeedbackEvent_Type_name = map[int32]string{ |
| 0: "NONE", |
| 1: "NOT_USEFUL", |
| 2: "COMMENT_POST", |
| } |
| FeedbackEvent_Type_value = map[string]int32{ |
| "NONE": 0, |
| "NOT_USEFUL": 1, |
| "COMMENT_POST": 2, |
| } |
| ) |
| |
| func (x FeedbackEvent_Type) Enum() *FeedbackEvent_Type { |
| p := new(FeedbackEvent_Type) |
| *p = x |
| return p |
| } |
| |
| func (x FeedbackEvent_Type) String() string { |
| return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| } |
| |
| func (FeedbackEvent_Type) Descriptor() protoreflect.EnumDescriptor { |
| return file_infra_tricium_api_bigquery_event_proto_enumTypes[0].Descriptor() |
| } |
| |
| func (FeedbackEvent_Type) Type() protoreflect.EnumType { |
| return &file_infra_tricium_api_bigquery_event_proto_enumTypes[0] |
| } |
| |
| func (x FeedbackEvent_Type) Number() protoreflect.EnumNumber { |
| return protoreflect.EnumNumber(x) |
| } |
| |
| // Deprecated: Use FeedbackEvent_Type.Descriptor instead. |
| func (FeedbackEvent_Type) EnumDescriptor() ([]byte, []int) { |
| return file_infra_tricium_api_bigquery_event_proto_rawDescGZIP(), []int{0, 0} |
| } |
| |
| // FeedbackEvent represents one event such as sending comments or a "not |
| // useful" click. |
| // |
| // The purpose of recording these events is to be able to track the feedback on |
| // comments -- for example, what's the proportion "not useful" clicks to |
| // comments produced for each analyzer or category? |
| type FeedbackEvent struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // Type of event. |
| Type FeedbackEvent_Type `protobuf:"varint,1,opt,name=type,proto3,enum=apibq.FeedbackEvent_Type" json:"type,omitempty"` |
| // Time when the event occurred. |
| Time *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"` |
| // Related comments. For comment post events, this will be the comments |
| // sent; for a "not useful" click, this would be the one related comment. |
| Comments []*v1.Data_Comment `protobuf:"bytes,3,rep,name=comments,proto3" json:"comments,omitempty"` |
| } |
| |
| func (x *FeedbackEvent) Reset() { |
| *x = FeedbackEvent{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_infra_tricium_api_bigquery_event_proto_msgTypes[0] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *FeedbackEvent) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*FeedbackEvent) ProtoMessage() {} |
| |
| func (x *FeedbackEvent) ProtoReflect() protoreflect.Message { |
| mi := &file_infra_tricium_api_bigquery_event_proto_msgTypes[0] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use FeedbackEvent.ProtoReflect.Descriptor instead. |
| func (*FeedbackEvent) Descriptor() ([]byte, []int) { |
| return file_infra_tricium_api_bigquery_event_proto_rawDescGZIP(), []int{0} |
| } |
| |
| func (x *FeedbackEvent) GetType() FeedbackEvent_Type { |
| if x != nil { |
| return x.Type |
| } |
| return FeedbackEvent_NONE |
| } |
| |
| func (x *FeedbackEvent) GetTime() *timestamppb.Timestamp { |
| if x != nil { |
| return x.Time |
| } |
| return nil |
| } |
| |
| func (x *FeedbackEvent) GetComments() []*v1.Data_Comment { |
| if x != nil { |
| return x.Comments |
| } |
| return nil |
| } |
| |
| var File_infra_tricium_api_bigquery_event_proto protoreflect.FileDescriptor |
| |
| var file_infra_tricium_api_bigquery_event_proto_rawDesc = []byte{ |
| 0x0a, 0x26, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x2f, 0x74, 0x72, 0x69, 0x63, 0x69, 0x75, 0x6d, 0x2f, |
| 0x61, 0x70, 0x69, 0x2f, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x65, 0x76, 0x65, |
| 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x61, 0x70, 0x69, 0x62, 0x71, 0x1a, |
| 0x1f, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x2f, 0x74, 0x72, 0x69, 0x63, 0x69, 0x75, 0x6d, 0x2f, 0x61, |
| 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, |
| 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, |
| 0x6f, 0x22, 0xd5, 0x01, 0x0a, 0x0d, 0x46, 0x65, 0x65, 0x64, 0x62, 0x61, 0x63, 0x6b, 0x45, 0x76, |
| 0x65, 0x6e, 0x74, 0x12, 0x2d, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, |
| 0x0e, 0x32, 0x19, 0x2e, 0x61, 0x70, 0x69, 0x62, 0x71, 0x2e, 0x46, 0x65, 0x65, 0x64, 0x62, 0x61, |
| 0x63, 0x6b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, |
| 0x70, 0x65, 0x12, 0x2e, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, |
| 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, |
| 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x04, 0x74, 0x69, |
| 0x6d, 0x65, 0x12, 0x31, 0x0a, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, |
| 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x72, 0x69, 0x63, 0x69, 0x75, 0x6d, 0x2e, 0x44, |
| 0x61, 0x74, 0x61, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x08, 0x63, 0x6f, 0x6d, |
| 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x32, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a, |
| 0x04, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x4e, 0x4f, 0x54, 0x5f, 0x55, |
| 0x53, 0x45, 0x46, 0x55, 0x4c, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x43, 0x4f, 0x4d, 0x4d, 0x45, |
| 0x4e, 0x54, 0x5f, 0x50, 0x4f, 0x53, 0x54, 0x10, 0x02, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 0x33, |
| } |
| |
| var ( |
| file_infra_tricium_api_bigquery_event_proto_rawDescOnce sync.Once |
| file_infra_tricium_api_bigquery_event_proto_rawDescData = file_infra_tricium_api_bigquery_event_proto_rawDesc |
| ) |
| |
| func file_infra_tricium_api_bigquery_event_proto_rawDescGZIP() []byte { |
| file_infra_tricium_api_bigquery_event_proto_rawDescOnce.Do(func() { |
| file_infra_tricium_api_bigquery_event_proto_rawDescData = protoimpl.X.CompressGZIP(file_infra_tricium_api_bigquery_event_proto_rawDescData) |
| }) |
| return file_infra_tricium_api_bigquery_event_proto_rawDescData |
| } |
| |
| var file_infra_tricium_api_bigquery_event_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
| var file_infra_tricium_api_bigquery_event_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
| var file_infra_tricium_api_bigquery_event_proto_goTypes = []interface{}{ |
| (FeedbackEvent_Type)(0), // 0: apibq.FeedbackEvent.Type |
| (*FeedbackEvent)(nil), // 1: apibq.FeedbackEvent |
| (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp |
| (*v1.Data_Comment)(nil), // 3: tricium.Data.Comment |
| } |
| var file_infra_tricium_api_bigquery_event_proto_depIdxs = []int32{ |
| 0, // 0: apibq.FeedbackEvent.type:type_name -> apibq.FeedbackEvent.Type |
| 2, // 1: apibq.FeedbackEvent.time:type_name -> google.protobuf.Timestamp |
| 3, // 2: apibq.FeedbackEvent.comments:type_name -> tricium.Data.Comment |
| 3, // [3:3] is the sub-list for method output_type |
| 3, // [3:3] is the sub-list for method input_type |
| 3, // [3:3] is the sub-list for extension type_name |
| 3, // [3:3] is the sub-list for extension extendee |
| 0, // [0:3] is the sub-list for field type_name |
| } |
| |
| func init() { file_infra_tricium_api_bigquery_event_proto_init() } |
| func file_infra_tricium_api_bigquery_event_proto_init() { |
| if File_infra_tricium_api_bigquery_event_proto != nil { |
| return |
| } |
| if !protoimpl.UnsafeEnabled { |
| file_infra_tricium_api_bigquery_event_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*FeedbackEvent); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| } |
| type x struct{} |
| out := protoimpl.TypeBuilder{ |
| File: protoimpl.DescBuilder{ |
| GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| RawDescriptor: file_infra_tricium_api_bigquery_event_proto_rawDesc, |
| NumEnums: 1, |
| NumMessages: 1, |
| NumExtensions: 0, |
| NumServices: 0, |
| }, |
| GoTypes: file_infra_tricium_api_bigquery_event_proto_goTypes, |
| DependencyIndexes: file_infra_tricium_api_bigquery_event_proto_depIdxs, |
| EnumInfos: file_infra_tricium_api_bigquery_event_proto_enumTypes, |
| MessageInfos: file_infra_tricium_api_bigquery_event_proto_msgTypes, |
| }.Build() |
| File_infra_tricium_api_bigquery_event_proto = out.File |
| file_infra_tricium_api_bigquery_event_proto_rawDesc = nil |
| file_infra_tricium_api_bigquery_event_proto_goTypes = nil |
| file_infra_tricium_api_bigquery_event_proto_depIdxs = nil |
| } |