go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/resultdb/proto/v1/notification.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.31.0 18 // protoc v3.21.7 19 // source: go.chromium.org/luci/resultdb/proto/v1/notification.proto 20 21 package resultpb 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 // A message notifying that an invocation has been finalized, 38 // i.e. that an invocation's test results are now immutable and are 39 // safe to be exported. 40 // 41 // The message is sent over the `v1.invocation_finalized` Cloud Pub/Sub 42 // topic in JSON-serialized form. 43 // 44 // Next id: 3. 45 type InvocationFinalizedNotification struct { 46 state protoimpl.MessageState 47 sizeCache protoimpl.SizeCache 48 unknownFields protoimpl.UnknownFields 49 50 // The name of the invocation that was finalized. 51 // Format: invocations/{INVOCATION_ID}. 52 Invocation string `protobuf:"bytes,1,opt,name=invocation,proto3" json:"invocation,omitempty"` 53 // The LUCI realm that owns the invocation. 54 // E.g. "chromium:ci". 55 Realm string `protobuf:"bytes,2,opt,name=realm,proto3" json:"realm,omitempty"` 56 } 57 58 func (x *InvocationFinalizedNotification) Reset() { 59 *x = InvocationFinalizedNotification{} 60 if protoimpl.UnsafeEnabled { 61 mi := &file_go_chromium_org_luci_resultdb_proto_v1_notification_proto_msgTypes[0] 62 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 63 ms.StoreMessageInfo(mi) 64 } 65 } 66 67 func (x *InvocationFinalizedNotification) String() string { 68 return protoimpl.X.MessageStringOf(x) 69 } 70 71 func (*InvocationFinalizedNotification) ProtoMessage() {} 72 73 func (x *InvocationFinalizedNotification) ProtoReflect() protoreflect.Message { 74 mi := &file_go_chromium_org_luci_resultdb_proto_v1_notification_proto_msgTypes[0] 75 if protoimpl.UnsafeEnabled && x != nil { 76 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 77 if ms.LoadMessageInfo() == nil { 78 ms.StoreMessageInfo(mi) 79 } 80 return ms 81 } 82 return mi.MessageOf(x) 83 } 84 85 // Deprecated: Use InvocationFinalizedNotification.ProtoReflect.Descriptor instead. 86 func (*InvocationFinalizedNotification) Descriptor() ([]byte, []int) { 87 return file_go_chromium_org_luci_resultdb_proto_v1_notification_proto_rawDescGZIP(), []int{0} 88 } 89 90 func (x *InvocationFinalizedNotification) GetInvocation() string { 91 if x != nil { 92 return x.Invocation 93 } 94 return "" 95 } 96 97 func (x *InvocationFinalizedNotification) GetRealm() string { 98 if x != nil { 99 return x.Realm 100 } 101 return "" 102 } 103 104 var File_go_chromium_org_luci_resultdb_proto_v1_notification_proto protoreflect.FileDescriptor 105 106 var file_go_chromium_org_luci_resultdb_proto_v1_notification_proto_rawDesc = []byte{ 107 0x0a, 0x39, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 108 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x64, 0x62, 0x2f, 109 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 110 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x6c, 0x75, 0x63, 111 0x69, 0x2e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x64, 0x62, 0x2e, 0x76, 0x31, 0x22, 0x57, 0x0a, 112 0x1f, 0x49, 0x6e, 0x76, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6e, 0x61, 0x6c, 113 0x69, 0x7a, 0x65, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 114 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x6e, 0x76, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 115 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e, 0x76, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 116 0x12, 0x14, 0x0a, 0x05, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 117 0x05, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x42, 0x31, 0x5a, 0x2f, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 118 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x72, 119 0x65, 0x73, 0x75, 0x6c, 0x74, 0x64, 0x62, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 120 0x3b, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 121 0x33, 122 } 123 124 var ( 125 file_go_chromium_org_luci_resultdb_proto_v1_notification_proto_rawDescOnce sync.Once 126 file_go_chromium_org_luci_resultdb_proto_v1_notification_proto_rawDescData = file_go_chromium_org_luci_resultdb_proto_v1_notification_proto_rawDesc 127 ) 128 129 func file_go_chromium_org_luci_resultdb_proto_v1_notification_proto_rawDescGZIP() []byte { 130 file_go_chromium_org_luci_resultdb_proto_v1_notification_proto_rawDescOnce.Do(func() { 131 file_go_chromium_org_luci_resultdb_proto_v1_notification_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_resultdb_proto_v1_notification_proto_rawDescData) 132 }) 133 return file_go_chromium_org_luci_resultdb_proto_v1_notification_proto_rawDescData 134 } 135 136 var file_go_chromium_org_luci_resultdb_proto_v1_notification_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 137 var file_go_chromium_org_luci_resultdb_proto_v1_notification_proto_goTypes = []interface{}{ 138 (*InvocationFinalizedNotification)(nil), // 0: luci.resultdb.v1.InvocationFinalizedNotification 139 } 140 var file_go_chromium_org_luci_resultdb_proto_v1_notification_proto_depIdxs = []int32{ 141 0, // [0:0] is the sub-list for method output_type 142 0, // [0:0] is the sub-list for method input_type 143 0, // [0:0] is the sub-list for extension type_name 144 0, // [0:0] is the sub-list for extension extendee 145 0, // [0:0] is the sub-list for field type_name 146 } 147 148 func init() { file_go_chromium_org_luci_resultdb_proto_v1_notification_proto_init() } 149 func file_go_chromium_org_luci_resultdb_proto_v1_notification_proto_init() { 150 if File_go_chromium_org_luci_resultdb_proto_v1_notification_proto != nil { 151 return 152 } 153 if !protoimpl.UnsafeEnabled { 154 file_go_chromium_org_luci_resultdb_proto_v1_notification_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 155 switch v := v.(*InvocationFinalizedNotification); i { 156 case 0: 157 return &v.state 158 case 1: 159 return &v.sizeCache 160 case 2: 161 return &v.unknownFields 162 default: 163 return nil 164 } 165 } 166 } 167 type x struct{} 168 out := protoimpl.TypeBuilder{ 169 File: protoimpl.DescBuilder{ 170 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 171 RawDescriptor: file_go_chromium_org_luci_resultdb_proto_v1_notification_proto_rawDesc, 172 NumEnums: 0, 173 NumMessages: 1, 174 NumExtensions: 0, 175 NumServices: 0, 176 }, 177 GoTypes: file_go_chromium_org_luci_resultdb_proto_v1_notification_proto_goTypes, 178 DependencyIndexes: file_go_chromium_org_luci_resultdb_proto_v1_notification_proto_depIdxs, 179 MessageInfos: file_go_chromium_org_luci_resultdb_proto_v1_notification_proto_msgTypes, 180 }.Build() 181 File_go_chromium_org_luci_resultdb_proto_v1_notification_proto = out.File 182 file_go_chromium_org_luci_resultdb_proto_v1_notification_proto_rawDesc = nil 183 file_go_chromium_org_luci_resultdb_proto_v1_notification_proto_goTypes = nil 184 file_go_chromium_org_luci_resultdb_proto_v1_notification_proto_depIdxs = nil 185 }