go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/cv/settings/listener/settings.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/cv/settings/listener/settings.proto 20 21 package listenerpb 22 23 import ( 24 _ "github.com/envoyproxy/protoc-gen-validate/validate" 25 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 26 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 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 type Settings_GerritSubscription_MessageFormat int32 39 40 const ( 41 Settings_GerritSubscription_MESSAGE_FORMAT_UNSPECIFIED Settings_GerritSubscription_MessageFormat = 0 42 Settings_GerritSubscription_JSON Settings_GerritSubscription_MessageFormat = 1 43 Settings_GerritSubscription_PROTO_BINARY Settings_GerritSubscription_MessageFormat = 2 44 ) 45 46 // Enum value maps for Settings_GerritSubscription_MessageFormat. 47 var ( 48 Settings_GerritSubscription_MessageFormat_name = map[int32]string{ 49 0: "MESSAGE_FORMAT_UNSPECIFIED", 50 1: "JSON", 51 2: "PROTO_BINARY", 52 } 53 Settings_GerritSubscription_MessageFormat_value = map[string]int32{ 54 "MESSAGE_FORMAT_UNSPECIFIED": 0, 55 "JSON": 1, 56 "PROTO_BINARY": 2, 57 } 58 ) 59 60 func (x Settings_GerritSubscription_MessageFormat) Enum() *Settings_GerritSubscription_MessageFormat { 61 p := new(Settings_GerritSubscription_MessageFormat) 62 *p = x 63 return p 64 } 65 66 func (x Settings_GerritSubscription_MessageFormat) String() string { 67 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 68 } 69 70 func (Settings_GerritSubscription_MessageFormat) Descriptor() protoreflect.EnumDescriptor { 71 return file_go_chromium_org_luci_cv_settings_listener_settings_proto_enumTypes[0].Descriptor() 72 } 73 74 func (Settings_GerritSubscription_MessageFormat) Type() protoreflect.EnumType { 75 return &file_go_chromium_org_luci_cv_settings_listener_settings_proto_enumTypes[0] 76 } 77 78 func (x Settings_GerritSubscription_MessageFormat) Number() protoreflect.EnumNumber { 79 return protoreflect.EnumNumber(x) 80 } 81 82 // Deprecated: Use Settings_GerritSubscription_MessageFormat.Descriptor instead. 83 func (Settings_GerritSubscription_MessageFormat) EnumDescriptor() ([]byte, []int) { 84 return file_go_chromium_org_luci_cv_settings_listener_settings_proto_rawDescGZIP(), []int{0, 1, 0} 85 } 86 87 // Settings defines fields for configuring listener settings. 88 type Settings struct { 89 state protoimpl.MessageState 90 sizeCache protoimpl.SizeCache 91 unknownFields protoimpl.UnknownFields 92 93 // Subscriptions for the Gerrit hosts that have enabled Gerrit Pub/Sub. 94 // 95 // To enable Gerrit pub/sub for a given LUCI project, the subscription of 96 // all the Gerrit hosts listed in the project config must be added in this 97 // field. If not, the config validation will fail. 98 GerritSubscriptions []*Settings_GerritSubscription `protobuf:"bytes,1,rep,name=gerrit_subscriptions,json=gerritSubscriptions,proto3" json:"gerrit_subscriptions,omitempty"` 99 // If a LUCI Project matches any of the regexps, CV will use the pubsub 100 // listener to find changes in the Gerrit hosts listed in the project config. 101 // 102 // If not, CV will use the incremental poller to find changes in the Gerrit 103 // hosts. 104 // 105 // Deprecated: Marked as deprecated in go.chromium.org/luci/cv/settings/listener/settings.proto. 106 EnabledProjectRegexps []string `protobuf:"bytes,2,rep,name=enabled_project_regexps,json=enabledProjectRegexps,proto3" json:"enabled_project_regexps,omitempty"` 107 // If a LUCI Project matches any of the regexps, CV will not use the pubsub 108 // listener to find changes in the Gerrit hosts listed in the project config. 109 // 110 // Instead, CV will use the incremental poller to find changes from the Gerrit 111 // hosts. 112 DisabledProjectRegexps []string `protobuf:"bytes,3,rep,name=disabled_project_regexps,json=disabledProjectRegexps,proto3" json:"disabled_project_regexps,omitempty"` 113 } 114 115 func (x *Settings) Reset() { 116 *x = Settings{} 117 if protoimpl.UnsafeEnabled { 118 mi := &file_go_chromium_org_luci_cv_settings_listener_settings_proto_msgTypes[0] 119 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 120 ms.StoreMessageInfo(mi) 121 } 122 } 123 124 func (x *Settings) String() string { 125 return protoimpl.X.MessageStringOf(x) 126 } 127 128 func (*Settings) ProtoMessage() {} 129 130 func (x *Settings) ProtoReflect() protoreflect.Message { 131 mi := &file_go_chromium_org_luci_cv_settings_listener_settings_proto_msgTypes[0] 132 if protoimpl.UnsafeEnabled && x != nil { 133 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 134 if ms.LoadMessageInfo() == nil { 135 ms.StoreMessageInfo(mi) 136 } 137 return ms 138 } 139 return mi.MessageOf(x) 140 } 141 142 // Deprecated: Use Settings.ProtoReflect.Descriptor instead. 143 func (*Settings) Descriptor() ([]byte, []int) { 144 return file_go_chromium_org_luci_cv_settings_listener_settings_proto_rawDescGZIP(), []int{0} 145 } 146 147 func (x *Settings) GetGerritSubscriptions() []*Settings_GerritSubscription { 148 if x != nil { 149 return x.GerritSubscriptions 150 } 151 return nil 152 } 153 154 // Deprecated: Marked as deprecated in go.chromium.org/luci/cv/settings/listener/settings.proto. 155 func (x *Settings) GetEnabledProjectRegexps() []string { 156 if x != nil { 157 return x.EnabledProjectRegexps 158 } 159 return nil 160 } 161 162 func (x *Settings) GetDisabledProjectRegexps() []string { 163 if x != nil { 164 return x.DisabledProjectRegexps 165 } 166 return nil 167 } 168 169 type Settings_ReceiveSettings struct { 170 state protoimpl.MessageState 171 sizeCache protoimpl.SizeCache 172 unknownFields protoimpl.UnknownFields 173 174 // The number of goroutines that Listener will spawn for the subscription. 175 // 176 // 10, if unset. 177 // 178 // This doesn't limit the number of buffered messages that are waiting to 179 // be processed or are being processed. 180 // 181 // Use max_outstanding_messages to limit he number of buffered messages. 182 NumGoroutines uint64 `protobuf:"varint,1,opt,name=num_goroutines,json=numGoroutines,proto3" json:"num_goroutines,omitempty"` 183 // The maximum number of unacknowledged but not yet expired messages. 184 // 185 // 1000, if unset. 186 // If < 0, there will be no limit. 187 MaxOutstandingMessages int64 `protobuf:"varint,2,opt,name=max_outstanding_messages,json=maxOutstandingMessages,proto3" json:"max_outstanding_messages,omitempty"` 188 } 189 190 func (x *Settings_ReceiveSettings) Reset() { 191 *x = Settings_ReceiveSettings{} 192 if protoimpl.UnsafeEnabled { 193 mi := &file_go_chromium_org_luci_cv_settings_listener_settings_proto_msgTypes[1] 194 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 195 ms.StoreMessageInfo(mi) 196 } 197 } 198 199 func (x *Settings_ReceiveSettings) String() string { 200 return protoimpl.X.MessageStringOf(x) 201 } 202 203 func (*Settings_ReceiveSettings) ProtoMessage() {} 204 205 func (x *Settings_ReceiveSettings) ProtoReflect() protoreflect.Message { 206 mi := &file_go_chromium_org_luci_cv_settings_listener_settings_proto_msgTypes[1] 207 if protoimpl.UnsafeEnabled && x != nil { 208 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 209 if ms.LoadMessageInfo() == nil { 210 ms.StoreMessageInfo(mi) 211 } 212 return ms 213 } 214 return mi.MessageOf(x) 215 } 216 217 // Deprecated: Use Settings_ReceiveSettings.ProtoReflect.Descriptor instead. 218 func (*Settings_ReceiveSettings) Descriptor() ([]byte, []int) { 219 return file_go_chromium_org_luci_cv_settings_listener_settings_proto_rawDescGZIP(), []int{0, 0} 220 } 221 222 func (x *Settings_ReceiveSettings) GetNumGoroutines() uint64 { 223 if x != nil { 224 return x.NumGoroutines 225 } 226 return 0 227 } 228 229 func (x *Settings_ReceiveSettings) GetMaxOutstandingMessages() int64 { 230 if x != nil { 231 return x.MaxOutstandingMessages 232 } 233 return 0 234 } 235 236 type Settings_GerritSubscription struct { 237 state protoimpl.MessageState 238 sizeCache protoimpl.SizeCache 239 unknownFields protoimpl.UnknownFields 240 241 // The Gerrit host w/o scheme. 242 // For example, chromium-review.googlesource.com 243 Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` 244 // The subscription ID of the host. If unset, `host` is the subscription ID. 245 // 246 // Note that this is subscription ID, not subscription name. 247 // Subscription name is the full path of a subscription in the format of 248 // projects/$project/subscription/$sub_id. 249 SubscriptionId string `protobuf:"bytes,2,opt,name=subscription_id,json=subscriptionId,proto3" json:"subscription_id,omitempty"` 250 // Configuration for the pubsub receive function. 251 ReceiveSettings *Settings_ReceiveSettings `protobuf:"bytes,3,opt,name=receive_settings,json=receiveSettings,proto3" json:"receive_settings,omitempty"` 252 // The format of the pubsub payload. 253 // 254 // Must not be MESSAGE_FORMAT_UNSPECIFIED. 255 MessageFormat Settings_GerritSubscription_MessageFormat `protobuf:"varint,4,opt,name=message_format,json=messageFormat,proto3,enum=listener.Settings_GerritSubscription_MessageFormat" json:"message_format,omitempty"` 256 } 257 258 func (x *Settings_GerritSubscription) Reset() { 259 *x = Settings_GerritSubscription{} 260 if protoimpl.UnsafeEnabled { 261 mi := &file_go_chromium_org_luci_cv_settings_listener_settings_proto_msgTypes[2] 262 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 263 ms.StoreMessageInfo(mi) 264 } 265 } 266 267 func (x *Settings_GerritSubscription) String() string { 268 return protoimpl.X.MessageStringOf(x) 269 } 270 271 func (*Settings_GerritSubscription) ProtoMessage() {} 272 273 func (x *Settings_GerritSubscription) ProtoReflect() protoreflect.Message { 274 mi := &file_go_chromium_org_luci_cv_settings_listener_settings_proto_msgTypes[2] 275 if protoimpl.UnsafeEnabled && x != nil { 276 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 277 if ms.LoadMessageInfo() == nil { 278 ms.StoreMessageInfo(mi) 279 } 280 return ms 281 } 282 return mi.MessageOf(x) 283 } 284 285 // Deprecated: Use Settings_GerritSubscription.ProtoReflect.Descriptor instead. 286 func (*Settings_GerritSubscription) Descriptor() ([]byte, []int) { 287 return file_go_chromium_org_luci_cv_settings_listener_settings_proto_rawDescGZIP(), []int{0, 1} 288 } 289 290 func (x *Settings_GerritSubscription) GetHost() string { 291 if x != nil { 292 return x.Host 293 } 294 return "" 295 } 296 297 func (x *Settings_GerritSubscription) GetSubscriptionId() string { 298 if x != nil { 299 return x.SubscriptionId 300 } 301 return "" 302 } 303 304 func (x *Settings_GerritSubscription) GetReceiveSettings() *Settings_ReceiveSettings { 305 if x != nil { 306 return x.ReceiveSettings 307 } 308 return nil 309 } 310 311 func (x *Settings_GerritSubscription) GetMessageFormat() Settings_GerritSubscription_MessageFormat { 312 if x != nil { 313 return x.MessageFormat 314 } 315 return Settings_GerritSubscription_MESSAGE_FORMAT_UNSPECIFIED 316 } 317 318 var File_go_chromium_org_luci_cv_settings_listener_settings_proto protoreflect.FileDescriptor 319 320 var file_go_chromium_org_luci_cv_settings_listener_settings_proto_rawDesc = []byte{ 321 0x0a, 0x38, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 322 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x76, 0x2f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 323 0x67, 0x73, 0x2f, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x65, 0x72, 0x2f, 0x73, 0x65, 0x74, 0x74, 324 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x6c, 0x69, 0x73, 0x74, 325 0x65, 0x6e, 0x65, 0x72, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 326 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa7, 0x05, 327 0x0a, 0x08, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x58, 0x0a, 0x14, 0x67, 0x65, 328 0x72, 0x72, 0x69, 0x74, 0x5f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 329 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x65, 330 0x6e, 0x65, 0x72, 0x2e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x47, 0x65, 0x72, 331 0x72, 0x69, 0x74, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 332 0x13, 0x67, 0x65, 0x72, 0x72, 0x69, 0x74, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 333 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3a, 0x0a, 0x17, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x5f, 334 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x72, 0x65, 0x67, 0x65, 0x78, 0x70, 0x73, 0x18, 335 0x02, 0x20, 0x03, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x15, 0x65, 0x6e, 0x61, 0x62, 0x6c, 336 0x65, 0x64, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x67, 0x65, 0x78, 0x70, 0x73, 337 0x12, 0x38, 0x0a, 0x18, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x5f, 0x70, 0x72, 0x6f, 338 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x72, 0x65, 0x67, 0x65, 0x78, 0x70, 0x73, 0x18, 0x03, 0x20, 0x03, 339 0x28, 0x09, 0x52, 0x16, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x50, 0x72, 0x6f, 0x6a, 340 0x65, 0x63, 0x74, 0x52, 0x65, 0x67, 0x65, 0x78, 0x70, 0x73, 0x1a, 0x72, 0x0a, 0x0f, 0x52, 0x65, 341 0x63, 0x65, 0x69, 0x76, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x25, 0x0a, 342 0x0e, 0x6e, 0x75, 0x6d, 0x5f, 0x67, 0x6f, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x65, 0x73, 0x18, 343 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6e, 0x75, 0x6d, 0x47, 0x6f, 0x72, 0x6f, 0x75, 0x74, 344 0x69, 0x6e, 0x65, 0x73, 0x12, 0x38, 0x0a, 0x18, 0x6d, 0x61, 0x78, 0x5f, 0x6f, 0x75, 0x74, 0x73, 345 0x74, 0x61, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 346 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x16, 0x6d, 0x61, 0x78, 0x4f, 0x75, 0x74, 0x73, 0x74, 347 0x61, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x1a, 0xd6, 348 0x02, 0x0a, 0x12, 0x47, 0x65, 0x72, 0x72, 0x69, 0x74, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 349 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 350 0x01, 0x28, 0x09, 0x42, 0x0b, 0xfa, 0x42, 0x08, 0x72, 0x06, 0x10, 0x01, 0xba, 0x01, 0x01, 0x2f, 351 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 352 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 353 0x0e, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 354 0x4d, 0x0a, 0x10, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 355 0x6e, 0x67, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6c, 0x69, 0x73, 0x74, 356 0x65, 0x6e, 0x65, 0x72, 0x2e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x52, 0x65, 357 0x63, 0x65, 0x69, 0x76, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x0f, 0x72, 358 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x5a, 359 0x0a, 0x0e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 360 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x33, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x65, 361 0x72, 0x2e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x47, 0x65, 0x72, 0x72, 0x69, 362 0x74, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x65, 363 0x73, 0x73, 0x61, 0x67, 0x65, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x52, 0x0d, 0x6d, 0x65, 0x73, 364 0x73, 0x61, 0x67, 0x65, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0x4b, 0x0a, 0x0d, 0x4d, 0x65, 365 0x73, 0x73, 0x61, 0x67, 0x65, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x1e, 0x0a, 0x1a, 0x4d, 366 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x55, 0x4e, 367 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x4a, 368 0x53, 0x4f, 0x4e, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x5f, 0x42, 369 0x49, 0x4e, 0x41, 0x52, 0x59, 0x10, 0x02, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x6f, 0x2e, 0x63, 0x68, 370 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 371 0x63, 0x76, 0x2f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x6c, 0x69, 0x73, 0x74, 372 0x65, 0x6e, 0x65, 0x72, 0x3b, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x65, 0x72, 0x70, 0x62, 0x62, 373 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 374 } 375 376 var ( 377 file_go_chromium_org_luci_cv_settings_listener_settings_proto_rawDescOnce sync.Once 378 file_go_chromium_org_luci_cv_settings_listener_settings_proto_rawDescData = file_go_chromium_org_luci_cv_settings_listener_settings_proto_rawDesc 379 ) 380 381 func file_go_chromium_org_luci_cv_settings_listener_settings_proto_rawDescGZIP() []byte { 382 file_go_chromium_org_luci_cv_settings_listener_settings_proto_rawDescOnce.Do(func() { 383 file_go_chromium_org_luci_cv_settings_listener_settings_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_cv_settings_listener_settings_proto_rawDescData) 384 }) 385 return file_go_chromium_org_luci_cv_settings_listener_settings_proto_rawDescData 386 } 387 388 var file_go_chromium_org_luci_cv_settings_listener_settings_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 389 var file_go_chromium_org_luci_cv_settings_listener_settings_proto_msgTypes = make([]protoimpl.MessageInfo, 3) 390 var file_go_chromium_org_luci_cv_settings_listener_settings_proto_goTypes = []interface{}{ 391 (Settings_GerritSubscription_MessageFormat)(0), // 0: listener.Settings.GerritSubscription.MessageFormat 392 (*Settings)(nil), // 1: listener.Settings 393 (*Settings_ReceiveSettings)(nil), // 2: listener.Settings.ReceiveSettings 394 (*Settings_GerritSubscription)(nil), // 3: listener.Settings.GerritSubscription 395 } 396 var file_go_chromium_org_luci_cv_settings_listener_settings_proto_depIdxs = []int32{ 397 3, // 0: listener.Settings.gerrit_subscriptions:type_name -> listener.Settings.GerritSubscription 398 2, // 1: listener.Settings.GerritSubscription.receive_settings:type_name -> listener.Settings.ReceiveSettings 399 0, // 2: listener.Settings.GerritSubscription.message_format:type_name -> listener.Settings.GerritSubscription.MessageFormat 400 3, // [3:3] is the sub-list for method output_type 401 3, // [3:3] is the sub-list for method input_type 402 3, // [3:3] is the sub-list for extension type_name 403 3, // [3:3] is the sub-list for extension extendee 404 0, // [0:3] is the sub-list for field type_name 405 } 406 407 func init() { file_go_chromium_org_luci_cv_settings_listener_settings_proto_init() } 408 func file_go_chromium_org_luci_cv_settings_listener_settings_proto_init() { 409 if File_go_chromium_org_luci_cv_settings_listener_settings_proto != nil { 410 return 411 } 412 if !protoimpl.UnsafeEnabled { 413 file_go_chromium_org_luci_cv_settings_listener_settings_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 414 switch v := v.(*Settings); i { 415 case 0: 416 return &v.state 417 case 1: 418 return &v.sizeCache 419 case 2: 420 return &v.unknownFields 421 default: 422 return nil 423 } 424 } 425 file_go_chromium_org_luci_cv_settings_listener_settings_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 426 switch v := v.(*Settings_ReceiveSettings); i { 427 case 0: 428 return &v.state 429 case 1: 430 return &v.sizeCache 431 case 2: 432 return &v.unknownFields 433 default: 434 return nil 435 } 436 } 437 file_go_chromium_org_luci_cv_settings_listener_settings_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 438 switch v := v.(*Settings_GerritSubscription); i { 439 case 0: 440 return &v.state 441 case 1: 442 return &v.sizeCache 443 case 2: 444 return &v.unknownFields 445 default: 446 return nil 447 } 448 } 449 } 450 type x struct{} 451 out := protoimpl.TypeBuilder{ 452 File: protoimpl.DescBuilder{ 453 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 454 RawDescriptor: file_go_chromium_org_luci_cv_settings_listener_settings_proto_rawDesc, 455 NumEnums: 1, 456 NumMessages: 3, 457 NumExtensions: 0, 458 NumServices: 0, 459 }, 460 GoTypes: file_go_chromium_org_luci_cv_settings_listener_settings_proto_goTypes, 461 DependencyIndexes: file_go_chromium_org_luci_cv_settings_listener_settings_proto_depIdxs, 462 EnumInfos: file_go_chromium_org_luci_cv_settings_listener_settings_proto_enumTypes, 463 MessageInfos: file_go_chromium_org_luci_cv_settings_listener_settings_proto_msgTypes, 464 }.Build() 465 File_go_chromium_org_luci_cv_settings_listener_settings_proto = out.File 466 file_go_chromium_org_luci_cv_settings_listener_settings_proto_rawDesc = nil 467 file_go_chromium_org_luci_cv_settings_listener_settings_proto_goTypes = nil 468 file_go_chromium_org_luci_cv_settings_listener_settings_proto_depIdxs = nil 469 }