go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/analysis/internal/bugs/proto/bug_management_state.pb.go (about) 1 // Copyright 2023 The LUCI Authors. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 // Code generated by protoc-gen-go. DO NOT EDIT. 16 // versions: 17 // protoc-gen-go v1.31.0 18 // protoc v3.21.7 19 // source: go.chromium.org/luci/analysis/internal/bugs/proto/bug_management_state.proto 20 21 package bugspb 22 23 import ( 24 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 25 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 26 timestamppb "google.golang.org/protobuf/types/known/timestamppb" 27 reflect "reflect" 28 sync "sync" 29 ) 30 31 const ( 32 // Verify that this generated code is sufficiently up-to-date. 33 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 34 // Verify that runtime/protoimpl is sufficiently up-to-date. 35 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 36 ) 37 38 // Automatic bug-management state for a single failure association rule. 39 type BugManagementState struct { 40 state protoimpl.MessageState 41 sizeCache protoimpl.SizeCache 42 unknownFields protoimpl.UnknownFields 43 44 // Whether the association of the rule to the bug has been notified. 45 // This is set to true whenever LUCI Analysis comments on a bug for any reason. 46 // This is set to false whenever the bug associated with a rule changes. 47 RuleAssociationNotified bool `protobuf:"varint,1,opt,name=rule_association_notified,json=ruleAssociationNotified,proto3" json:"rule_association_notified,omitempty"` 48 // A mapping from bug management policy identifier to policy state. 49 PolicyState map[string]*BugManagementState_PolicyState `protobuf:"bytes,2,rep,name=policy_state,json=policyState,proto3" json:"policy_state,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 50 } 51 52 func (x *BugManagementState) Reset() { 53 *x = BugManagementState{} 54 if protoimpl.UnsafeEnabled { 55 mi := &file_go_chromium_org_luci_analysis_internal_bugs_proto_bug_management_state_proto_msgTypes[0] 56 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 57 ms.StoreMessageInfo(mi) 58 } 59 } 60 61 func (x *BugManagementState) String() string { 62 return protoimpl.X.MessageStringOf(x) 63 } 64 65 func (*BugManagementState) ProtoMessage() {} 66 67 func (x *BugManagementState) ProtoReflect() protoreflect.Message { 68 mi := &file_go_chromium_org_luci_analysis_internal_bugs_proto_bug_management_state_proto_msgTypes[0] 69 if protoimpl.UnsafeEnabled && x != nil { 70 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 71 if ms.LoadMessageInfo() == nil { 72 ms.StoreMessageInfo(mi) 73 } 74 return ms 75 } 76 return mi.MessageOf(x) 77 } 78 79 // Deprecated: Use BugManagementState.ProtoReflect.Descriptor instead. 80 func (*BugManagementState) Descriptor() ([]byte, []int) { 81 return file_go_chromium_org_luci_analysis_internal_bugs_proto_bug_management_state_proto_rawDescGZIP(), []int{0} 82 } 83 84 func (x *BugManagementState) GetRuleAssociationNotified() bool { 85 if x != nil { 86 return x.RuleAssociationNotified 87 } 88 return false 89 } 90 91 func (x *BugManagementState) GetPolicyState() map[string]*BugManagementState_PolicyState { 92 if x != nil { 93 return x.PolicyState 94 } 95 return nil 96 } 97 98 type BugManagementState_PolicyState struct { 99 state protoimpl.MessageState 100 sizeCache protoimpl.SizeCache 101 unknownFields protoimpl.UnknownFields 102 103 // Whether the given policy is active for the rule. 104 // Updated on every bug-filing run as follows: 105 // - Set to true if the policy activation criteria was met. 106 // - Set to false if the policy deactivation criteria was met. 107 IsActive bool `protobuf:"varint,1,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"` 108 // The last time the policy was made active. 109 // Allows detecting if policy is made active for the first time (as a 110 // zero last_activation_time indicates the policy was never active). 111 // Allows UI to filter to showing policies that were at least once active. 112 // Allows UI to sort which policy was most recently active. 113 // Allows UI to show when a policy last activated. 114 LastActivationTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=last_activation_time,json=lastActivationTime,proto3" json:"last_activation_time,omitempty"` 115 // The last time the policy was made inactive. 116 // Allows UI to show when a policy last deactivated. 117 LastDeactivationTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=last_deactivation_time,json=lastDeactivationTime,proto3" json:"last_deactivation_time,omitempty"` 118 // Whether the policy's activation was ever notified to the bug. 119 // This is set to true whenever the policy state becomes active and the 120 // the activation was notified to the bug. 121 // This is set to false whenever the bug associated with a rule changes. 122 ActivationNotified bool `protobuf:"varint,4,opt,name=activation_notified,json=activationNotified,proto3" json:"activation_notified,omitempty"` 123 } 124 125 func (x *BugManagementState_PolicyState) Reset() { 126 *x = BugManagementState_PolicyState{} 127 if protoimpl.UnsafeEnabled { 128 mi := &file_go_chromium_org_luci_analysis_internal_bugs_proto_bug_management_state_proto_msgTypes[2] 129 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 130 ms.StoreMessageInfo(mi) 131 } 132 } 133 134 func (x *BugManagementState_PolicyState) String() string { 135 return protoimpl.X.MessageStringOf(x) 136 } 137 138 func (*BugManagementState_PolicyState) ProtoMessage() {} 139 140 func (x *BugManagementState_PolicyState) ProtoReflect() protoreflect.Message { 141 mi := &file_go_chromium_org_luci_analysis_internal_bugs_proto_bug_management_state_proto_msgTypes[2] 142 if protoimpl.UnsafeEnabled && x != nil { 143 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 144 if ms.LoadMessageInfo() == nil { 145 ms.StoreMessageInfo(mi) 146 } 147 return ms 148 } 149 return mi.MessageOf(x) 150 } 151 152 // Deprecated: Use BugManagementState_PolicyState.ProtoReflect.Descriptor instead. 153 func (*BugManagementState_PolicyState) Descriptor() ([]byte, []int) { 154 return file_go_chromium_org_luci_analysis_internal_bugs_proto_bug_management_state_proto_rawDescGZIP(), []int{0, 1} 155 } 156 157 func (x *BugManagementState_PolicyState) GetIsActive() bool { 158 if x != nil { 159 return x.IsActive 160 } 161 return false 162 } 163 164 func (x *BugManagementState_PolicyState) GetLastActivationTime() *timestamppb.Timestamp { 165 if x != nil { 166 return x.LastActivationTime 167 } 168 return nil 169 } 170 171 func (x *BugManagementState_PolicyState) GetLastDeactivationTime() *timestamppb.Timestamp { 172 if x != nil { 173 return x.LastDeactivationTime 174 } 175 return nil 176 } 177 178 func (x *BugManagementState_PolicyState) GetActivationNotified() bool { 179 if x != nil { 180 return x.ActivationNotified 181 } 182 return false 183 } 184 185 var File_go_chromium_org_luci_analysis_internal_bugs_proto_bug_management_state_proto protoreflect.FileDescriptor 186 187 var file_go_chromium_org_luci_analysis_internal_bugs_proto_bug_management_state_proto_rawDesc = []byte{ 188 0x0a, 0x4c, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 189 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2f, 190 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x62, 0x75, 0x67, 0x73, 0x2f, 0x70, 0x72, 191 0x6f, 0x74, 0x6f, 0x2f, 0x62, 0x75, 0x67, 0x5f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 192 0x6e, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 193 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2e, 0x69, 0x6e, 194 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x62, 0x75, 0x67, 0x73, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 195 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 196 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb0, 0x04, 0x0a, 197 0x12, 0x42, 0x75, 0x67, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x74, 198 0x61, 0x74, 0x65, 0x12, 0x3a, 0x0a, 0x19, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x61, 0x73, 0x73, 0x6f, 199 0x63, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x65, 0x64, 200 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x17, 0x72, 0x75, 0x6c, 0x65, 0x41, 0x73, 0x73, 0x6f, 201 0x63, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 202 0x63, 0x0a, 0x0c, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 203 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x40, 0x2e, 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x61, 0x6e, 0x61, 204 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x62, 205 0x75, 0x67, 0x73, 0x2e, 0x42, 0x75, 0x67, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 206 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x74, 0x61, 207 0x74, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 208 0x74, 0x61, 0x74, 0x65, 0x1a, 0x7b, 0x0a, 0x10, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x74, 209 0x61, 0x74, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 210 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x51, 0x0a, 0x05, 0x76, 0x61, 211 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x6c, 0x75, 0x63, 0x69, 212 0x2e, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 213 0x61, 0x6c, 0x2e, 0x62, 0x75, 0x67, 0x73, 0x2e, 0x42, 0x75, 0x67, 0x4d, 0x61, 0x6e, 0x61, 0x67, 214 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 215 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 216 0x01, 0x1a, 0xfb, 0x01, 0x0a, 0x0b, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x74, 0x61, 0x74, 217 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x73, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x01, 218 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x73, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x12, 0x4c, 219 0x0a, 0x14, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 220 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 221 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 222 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x12, 0x6c, 0x61, 0x73, 0x74, 0x41, 0x63, 223 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x50, 0x0a, 0x16, 224 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x64, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 225 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 226 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 227 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x14, 0x6c, 0x61, 0x73, 0x74, 0x44, 0x65, 228 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2f, 229 0x0a, 0x13, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x6f, 0x74, 230 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x61, 0x63, 0x74, 231 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x65, 0x64, 0x42, 232 0x3a, 0x5a, 0x38, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 233 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 234 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x62, 0x75, 0x67, 0x73, 0x2f, 0x70, 235 0x72, 0x6f, 0x74, 0x6f, 0x3b, 0x62, 0x75, 0x67, 0x73, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 236 0x74, 0x6f, 0x33, 237 } 238 239 var ( 240 file_go_chromium_org_luci_analysis_internal_bugs_proto_bug_management_state_proto_rawDescOnce sync.Once 241 file_go_chromium_org_luci_analysis_internal_bugs_proto_bug_management_state_proto_rawDescData = file_go_chromium_org_luci_analysis_internal_bugs_proto_bug_management_state_proto_rawDesc 242 ) 243 244 func file_go_chromium_org_luci_analysis_internal_bugs_proto_bug_management_state_proto_rawDescGZIP() []byte { 245 file_go_chromium_org_luci_analysis_internal_bugs_proto_bug_management_state_proto_rawDescOnce.Do(func() { 246 file_go_chromium_org_luci_analysis_internal_bugs_proto_bug_management_state_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_analysis_internal_bugs_proto_bug_management_state_proto_rawDescData) 247 }) 248 return file_go_chromium_org_luci_analysis_internal_bugs_proto_bug_management_state_proto_rawDescData 249 } 250 251 var file_go_chromium_org_luci_analysis_internal_bugs_proto_bug_management_state_proto_msgTypes = make([]protoimpl.MessageInfo, 3) 252 var file_go_chromium_org_luci_analysis_internal_bugs_proto_bug_management_state_proto_goTypes = []interface{}{ 253 (*BugManagementState)(nil), // 0: luci.analysis.internal.bugs.BugManagementState 254 nil, // 1: luci.analysis.internal.bugs.BugManagementState.PolicyStateEntry 255 (*BugManagementState_PolicyState)(nil), // 2: luci.analysis.internal.bugs.BugManagementState.PolicyState 256 (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp 257 } 258 var file_go_chromium_org_luci_analysis_internal_bugs_proto_bug_management_state_proto_depIdxs = []int32{ 259 1, // 0: luci.analysis.internal.bugs.BugManagementState.policy_state:type_name -> luci.analysis.internal.bugs.BugManagementState.PolicyStateEntry 260 2, // 1: luci.analysis.internal.bugs.BugManagementState.PolicyStateEntry.value:type_name -> luci.analysis.internal.bugs.BugManagementState.PolicyState 261 3, // 2: luci.analysis.internal.bugs.BugManagementState.PolicyState.last_activation_time:type_name -> google.protobuf.Timestamp 262 3, // 3: luci.analysis.internal.bugs.BugManagementState.PolicyState.last_deactivation_time:type_name -> google.protobuf.Timestamp 263 4, // [4:4] is the sub-list for method output_type 264 4, // [4:4] is the sub-list for method input_type 265 4, // [4:4] is the sub-list for extension type_name 266 4, // [4:4] is the sub-list for extension extendee 267 0, // [0:4] is the sub-list for field type_name 268 } 269 270 func init() { file_go_chromium_org_luci_analysis_internal_bugs_proto_bug_management_state_proto_init() } 271 func file_go_chromium_org_luci_analysis_internal_bugs_proto_bug_management_state_proto_init() { 272 if File_go_chromium_org_luci_analysis_internal_bugs_proto_bug_management_state_proto != nil { 273 return 274 } 275 if !protoimpl.UnsafeEnabled { 276 file_go_chromium_org_luci_analysis_internal_bugs_proto_bug_management_state_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 277 switch v := v.(*BugManagementState); i { 278 case 0: 279 return &v.state 280 case 1: 281 return &v.sizeCache 282 case 2: 283 return &v.unknownFields 284 default: 285 return nil 286 } 287 } 288 file_go_chromium_org_luci_analysis_internal_bugs_proto_bug_management_state_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 289 switch v := v.(*BugManagementState_PolicyState); i { 290 case 0: 291 return &v.state 292 case 1: 293 return &v.sizeCache 294 case 2: 295 return &v.unknownFields 296 default: 297 return nil 298 } 299 } 300 } 301 type x struct{} 302 out := protoimpl.TypeBuilder{ 303 File: protoimpl.DescBuilder{ 304 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 305 RawDescriptor: file_go_chromium_org_luci_analysis_internal_bugs_proto_bug_management_state_proto_rawDesc, 306 NumEnums: 0, 307 NumMessages: 3, 308 NumExtensions: 0, 309 NumServices: 0, 310 }, 311 GoTypes: file_go_chromium_org_luci_analysis_internal_bugs_proto_bug_management_state_proto_goTypes, 312 DependencyIndexes: file_go_chromium_org_luci_analysis_internal_bugs_proto_bug_management_state_proto_depIdxs, 313 MessageInfos: file_go_chromium_org_luci_analysis_internal_bugs_proto_bug_management_state_proto_msgTypes, 314 }.Build() 315 File_go_chromium_org_luci_analysis_internal_bugs_proto_bug_management_state_proto = out.File 316 file_go_chromium_org_luci_analysis_internal_bugs_proto_bug_management_state_proto_rawDesc = nil 317 file_go_chromium_org_luci_analysis_internal_bugs_proto_bug_management_state_proto_goTypes = nil 318 file_go_chromium_org_luci_analysis_internal_bugs_proto_bug_management_state_proto_depIdxs = nil 319 }