go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/analysis/proto/v1/failure_reason.pb.go (about) 1 // Copyright 2022 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.32.0 18 // protoc v3.21.7 19 // source: go.chromium.org/luci/analysis/proto/v1/failure_reason.proto 20 21 package analysispb 22 23 import ( 24 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 25 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 26 reflect "reflect" 27 sync "sync" 28 ) 29 30 const ( 31 // Verify that this generated code is sufficiently up-to-date. 32 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 33 // Verify that runtime/protoimpl is sufficiently up-to-date. 34 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 35 ) 36 37 // Information about why a test failed. 38 type FailureReason struct { 39 state protoimpl.MessageState 40 sizeCache protoimpl.SizeCache 41 unknownFields protoimpl.UnknownFields 42 43 // The error message that ultimately caused the test to fail. This should 44 // only be the error message and should not include any stack traces. 45 // An example would be the message from an Exception in a Java test. 46 // In the case that a test failed due to multiple expectation failures, any 47 // immediately fatal failure should be chosen, or otherwise the first 48 // expectation failure. 49 // If this field is empty, other fields may be used to cluster the failure 50 // instead. 51 // 52 // The size of the message must be equal to or smaller than 1024 bytes in 53 // UTF-8. 54 PrimaryErrorMessage string `protobuf:"bytes,1,opt,name=primary_error_message,json=primaryErrorMessage,proto3" json:"primary_error_message,omitempty"` 55 } 56 57 func (x *FailureReason) Reset() { 58 *x = FailureReason{} 59 if protoimpl.UnsafeEnabled { 60 mi := &file_go_chromium_org_luci_analysis_proto_v1_failure_reason_proto_msgTypes[0] 61 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 62 ms.StoreMessageInfo(mi) 63 } 64 } 65 66 func (x *FailureReason) String() string { 67 return protoimpl.X.MessageStringOf(x) 68 } 69 70 func (*FailureReason) ProtoMessage() {} 71 72 func (x *FailureReason) ProtoReflect() protoreflect.Message { 73 mi := &file_go_chromium_org_luci_analysis_proto_v1_failure_reason_proto_msgTypes[0] 74 if protoimpl.UnsafeEnabled && x != nil { 75 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 76 if ms.LoadMessageInfo() == nil { 77 ms.StoreMessageInfo(mi) 78 } 79 return ms 80 } 81 return mi.MessageOf(x) 82 } 83 84 // Deprecated: Use FailureReason.ProtoReflect.Descriptor instead. 85 func (*FailureReason) Descriptor() ([]byte, []int) { 86 return file_go_chromium_org_luci_analysis_proto_v1_failure_reason_proto_rawDescGZIP(), []int{0} 87 } 88 89 func (x *FailureReason) GetPrimaryErrorMessage() string { 90 if x != nil { 91 return x.PrimaryErrorMessage 92 } 93 return "" 94 } 95 96 var File_go_chromium_org_luci_analysis_proto_v1_failure_reason_proto protoreflect.FileDescriptor 97 98 var file_go_chromium_org_luci_analysis_proto_v1_failure_reason_proto_rawDesc = []byte{ 99 0x0a, 0x3b, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 100 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2f, 101 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x2f, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 102 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x6c, 103 0x75, 0x63, 0x69, 0x2e, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2e, 0x76, 0x31, 0x22, 104 0x43, 0x0a, 0x0d, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 105 0x12, 0x32, 0x0a, 0x15, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x5f, 0x65, 0x72, 0x72, 0x6f, 106 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 107 0x13, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, 108 0x73, 0x61, 0x67, 0x65, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 109 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x61, 0x6e, 0x61, 110 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x3b, 0x61, 111 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 112 0x33, 113 } 114 115 var ( 116 file_go_chromium_org_luci_analysis_proto_v1_failure_reason_proto_rawDescOnce sync.Once 117 file_go_chromium_org_luci_analysis_proto_v1_failure_reason_proto_rawDescData = file_go_chromium_org_luci_analysis_proto_v1_failure_reason_proto_rawDesc 118 ) 119 120 func file_go_chromium_org_luci_analysis_proto_v1_failure_reason_proto_rawDescGZIP() []byte { 121 file_go_chromium_org_luci_analysis_proto_v1_failure_reason_proto_rawDescOnce.Do(func() { 122 file_go_chromium_org_luci_analysis_proto_v1_failure_reason_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_analysis_proto_v1_failure_reason_proto_rawDescData) 123 }) 124 return file_go_chromium_org_luci_analysis_proto_v1_failure_reason_proto_rawDescData 125 } 126 127 var file_go_chromium_org_luci_analysis_proto_v1_failure_reason_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 128 var file_go_chromium_org_luci_analysis_proto_v1_failure_reason_proto_goTypes = []interface{}{ 129 (*FailureReason)(nil), // 0: luci.analysis.v1.FailureReason 130 } 131 var file_go_chromium_org_luci_analysis_proto_v1_failure_reason_proto_depIdxs = []int32{ 132 0, // [0:0] is the sub-list for method output_type 133 0, // [0:0] is the sub-list for method input_type 134 0, // [0:0] is the sub-list for extension type_name 135 0, // [0:0] is the sub-list for extension extendee 136 0, // [0:0] is the sub-list for field type_name 137 } 138 139 func init() { file_go_chromium_org_luci_analysis_proto_v1_failure_reason_proto_init() } 140 func file_go_chromium_org_luci_analysis_proto_v1_failure_reason_proto_init() { 141 if File_go_chromium_org_luci_analysis_proto_v1_failure_reason_proto != nil { 142 return 143 } 144 if !protoimpl.UnsafeEnabled { 145 file_go_chromium_org_luci_analysis_proto_v1_failure_reason_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 146 switch v := v.(*FailureReason); i { 147 case 0: 148 return &v.state 149 case 1: 150 return &v.sizeCache 151 case 2: 152 return &v.unknownFields 153 default: 154 return nil 155 } 156 } 157 } 158 type x struct{} 159 out := protoimpl.TypeBuilder{ 160 File: protoimpl.DescBuilder{ 161 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 162 RawDescriptor: file_go_chromium_org_luci_analysis_proto_v1_failure_reason_proto_rawDesc, 163 NumEnums: 0, 164 NumMessages: 1, 165 NumExtensions: 0, 166 NumServices: 0, 167 }, 168 GoTypes: file_go_chromium_org_luci_analysis_proto_v1_failure_reason_proto_goTypes, 169 DependencyIndexes: file_go_chromium_org_luci_analysis_proto_v1_failure_reason_proto_depIdxs, 170 MessageInfos: file_go_chromium_org_luci_analysis_proto_v1_failure_reason_proto_msgTypes, 171 }.Build() 172 File_go_chromium_org_luci_analysis_proto_v1_failure_reason_proto = out.File 173 file_go_chromium_org_luci_analysis_proto_v1_failure_reason_proto_rawDesc = nil 174 file_go_chromium_org_luci_analysis_proto_v1_failure_reason_proto_goTypes = nil 175 file_go_chromium_org_luci_analysis_proto_v1_failure_reason_proto_depIdxs = nil 176 }