go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/swarming/server/cfg/internalcfgpb/cfg.pb.go (about) 1 // Copyright 2023 The LUCI Authors. All rights reserved. 2 // Use of this source code is governed under the Apache License, Version 2.0 3 // that can be found in the LICENSE file. 4 5 // Code generated by protoc-gen-go. DO NOT EDIT. 6 // versions: 7 // protoc-gen-go v1.31.0 8 // protoc v3.21.7 9 // source: go.chromium.org/luci/swarming/server/cfg/internalcfgpb/cfg.proto 10 11 package internalcfgpb 12 13 import ( 14 config "go.chromium.org/luci/swarming/proto/config" 15 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 16 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 17 reflect "reflect" 18 sync "sync" 19 ) 20 21 const ( 22 // Verify that this generated code is sufficiently up-to-date. 23 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 24 // Verify that runtime/protoimpl is sufficiently up-to-date. 25 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 26 ) 27 28 // ConfigBundle is stored in the datastore in a compressed form. 29 type ConfigBundle struct { 30 state protoimpl.MessageState 31 sizeCache protoimpl.SizeCache 32 unknownFields protoimpl.UnknownFields 33 34 Revision string `protobuf:"bytes,1,opt,name=revision,proto3" json:"revision,omitempty"` 35 Digest string `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"` 36 Settings *config.SettingsCfg `protobuf:"bytes,3,opt,name=settings,proto3" json:"settings,omitempty"` 37 Pools *config.PoolsCfg `protobuf:"bytes,4,opt,name=pools,proto3" json:"pools,omitempty"` 38 Bots *config.BotsCfg `protobuf:"bytes,5,opt,name=bots,proto3" json:"bots,omitempty"` 39 Scripts map[string]string `protobuf:"bytes,6,rep,name=scripts,proto3" json:"scripts,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 40 } 41 42 func (x *ConfigBundle) Reset() { 43 *x = ConfigBundle{} 44 if protoimpl.UnsafeEnabled { 45 mi := &file_go_chromium_org_luci_swarming_server_cfg_internalcfgpb_cfg_proto_msgTypes[0] 46 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 47 ms.StoreMessageInfo(mi) 48 } 49 } 50 51 func (x *ConfigBundle) String() string { 52 return protoimpl.X.MessageStringOf(x) 53 } 54 55 func (*ConfigBundle) ProtoMessage() {} 56 57 func (x *ConfigBundle) ProtoReflect() protoreflect.Message { 58 mi := &file_go_chromium_org_luci_swarming_server_cfg_internalcfgpb_cfg_proto_msgTypes[0] 59 if protoimpl.UnsafeEnabled && x != nil { 60 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 61 if ms.LoadMessageInfo() == nil { 62 ms.StoreMessageInfo(mi) 63 } 64 return ms 65 } 66 return mi.MessageOf(x) 67 } 68 69 // Deprecated: Use ConfigBundle.ProtoReflect.Descriptor instead. 70 func (*ConfigBundle) Descriptor() ([]byte, []int) { 71 return file_go_chromium_org_luci_swarming_server_cfg_internalcfgpb_cfg_proto_rawDescGZIP(), []int{0} 72 } 73 74 func (x *ConfigBundle) GetRevision() string { 75 if x != nil { 76 return x.Revision 77 } 78 return "" 79 } 80 81 func (x *ConfigBundle) GetDigest() string { 82 if x != nil { 83 return x.Digest 84 } 85 return "" 86 } 87 88 func (x *ConfigBundle) GetSettings() *config.SettingsCfg { 89 if x != nil { 90 return x.Settings 91 } 92 return nil 93 } 94 95 func (x *ConfigBundle) GetPools() *config.PoolsCfg { 96 if x != nil { 97 return x.Pools 98 } 99 return nil 100 } 101 102 func (x *ConfigBundle) GetBots() *config.BotsCfg { 103 if x != nil { 104 return x.Bots 105 } 106 return nil 107 } 108 109 func (x *ConfigBundle) GetScripts() map[string]string { 110 if x != nil { 111 return x.Scripts 112 } 113 return nil 114 } 115 116 var File_go_chromium_org_luci_swarming_server_cfg_internalcfgpb_cfg_proto protoreflect.FileDescriptor 117 118 var file_go_chromium_org_luci_swarming_server_cfg_internalcfgpb_cfg_proto_rawDesc = []byte{ 119 0x0a, 0x40, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 120 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x73, 0x77, 0x61, 0x72, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 121 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x63, 0x66, 0x67, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 122 0x6e, 0x61, 0x6c, 0x63, 0x66, 0x67, 0x70, 0x62, 0x2f, 0x63, 0x66, 0x67, 0x2e, 0x70, 0x72, 0x6f, 123 0x74, 0x6f, 0x12, 0x16, 0x73, 0x77, 0x61, 0x72, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x69, 0x6e, 0x74, 124 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x73, 0x2e, 0x63, 0x66, 0x67, 0x1a, 0x35, 0x67, 0x6f, 0x2e, 0x63, 125 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 126 0x2f, 0x73, 0x77, 0x61, 0x72, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 127 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x62, 0x6f, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 128 0x6f, 0x1a, 0x37, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 129 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x73, 0x77, 0x61, 0x72, 0x6d, 0x69, 0x6e, 0x67, 130 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x63, 0x6f, 131 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x36, 0x67, 0x6f, 0x2e, 0x63, 132 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 133 0x2f, 0x73, 0x77, 0x61, 0x72, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 134 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x70, 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 135 0x74, 0x6f, 0x22, 0xe4, 0x02, 0x0a, 0x0c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x75, 0x6e, 136 0x64, 0x6c, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 137 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 138 0x16, 0x0a, 0x06, 0x64, 0x69, 0x67, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 139 0x06, 0x64, 0x69, 0x67, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 140 0x6e, 0x67, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x73, 0x77, 0x61, 0x72, 141 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x53, 0x65, 0x74, 0x74, 142 0x69, 0x6e, 0x67, 0x73, 0x43, 0x66, 0x67, 0x52, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 143 0x73, 0x12, 0x2f, 0x0a, 0x05, 0x70, 0x6f, 0x6f, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 144 0x32, 0x19, 0x2e, 0x73, 0x77, 0x61, 0x72, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 145 0x69, 0x67, 0x2e, 0x50, 0x6f, 0x6f, 0x6c, 0x73, 0x43, 0x66, 0x67, 0x52, 0x05, 0x70, 0x6f, 0x6f, 146 0x6c, 0x73, 0x12, 0x2c, 0x0a, 0x04, 0x62, 0x6f, 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 147 0x32, 0x18, 0x2e, 0x73, 0x77, 0x61, 0x72, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 148 0x69, 0x67, 0x2e, 0x42, 0x6f, 0x74, 0x73, 0x43, 0x66, 0x67, 0x52, 0x04, 0x62, 0x6f, 0x74, 0x73, 149 0x12, 0x4b, 0x0a, 0x07, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 150 0x0b, 0x32, 0x31, 0x2e, 0x73, 0x77, 0x61, 0x72, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x69, 0x6e, 0x74, 151 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x73, 0x2e, 0x63, 0x66, 0x67, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 152 0x67, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x73, 0x45, 153 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x73, 0x1a, 0x3a, 0x0a, 154 0x0c, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 155 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 156 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 157 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x38, 0x5a, 0x36, 0x67, 0x6f, 0x2e, 158 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 159 0x69, 0x2f, 0x73, 0x77, 0x61, 0x72, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 160 0x72, 0x2f, 0x63, 0x66, 0x67, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x63, 0x66, 161 0x67, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 162 } 163 164 var ( 165 file_go_chromium_org_luci_swarming_server_cfg_internalcfgpb_cfg_proto_rawDescOnce sync.Once 166 file_go_chromium_org_luci_swarming_server_cfg_internalcfgpb_cfg_proto_rawDescData = file_go_chromium_org_luci_swarming_server_cfg_internalcfgpb_cfg_proto_rawDesc 167 ) 168 169 func file_go_chromium_org_luci_swarming_server_cfg_internalcfgpb_cfg_proto_rawDescGZIP() []byte { 170 file_go_chromium_org_luci_swarming_server_cfg_internalcfgpb_cfg_proto_rawDescOnce.Do(func() { 171 file_go_chromium_org_luci_swarming_server_cfg_internalcfgpb_cfg_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_swarming_server_cfg_internalcfgpb_cfg_proto_rawDescData) 172 }) 173 return file_go_chromium_org_luci_swarming_server_cfg_internalcfgpb_cfg_proto_rawDescData 174 } 175 176 var file_go_chromium_org_luci_swarming_server_cfg_internalcfgpb_cfg_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 177 var file_go_chromium_org_luci_swarming_server_cfg_internalcfgpb_cfg_proto_goTypes = []interface{}{ 178 (*ConfigBundle)(nil), // 0: swarming.internals.cfg.ConfigBundle 179 nil, // 1: swarming.internals.cfg.ConfigBundle.ScriptsEntry 180 (*config.SettingsCfg)(nil), // 2: swarming.config.SettingsCfg 181 (*config.PoolsCfg)(nil), // 3: swarming.config.PoolsCfg 182 (*config.BotsCfg)(nil), // 4: swarming.config.BotsCfg 183 } 184 var file_go_chromium_org_luci_swarming_server_cfg_internalcfgpb_cfg_proto_depIdxs = []int32{ 185 2, // 0: swarming.internals.cfg.ConfigBundle.settings:type_name -> swarming.config.SettingsCfg 186 3, // 1: swarming.internals.cfg.ConfigBundle.pools:type_name -> swarming.config.PoolsCfg 187 4, // 2: swarming.internals.cfg.ConfigBundle.bots:type_name -> swarming.config.BotsCfg 188 1, // 3: swarming.internals.cfg.ConfigBundle.scripts:type_name -> swarming.internals.cfg.ConfigBundle.ScriptsEntry 189 4, // [4:4] is the sub-list for method output_type 190 4, // [4:4] is the sub-list for method input_type 191 4, // [4:4] is the sub-list for extension type_name 192 4, // [4:4] is the sub-list for extension extendee 193 0, // [0:4] is the sub-list for field type_name 194 } 195 196 func init() { file_go_chromium_org_luci_swarming_server_cfg_internalcfgpb_cfg_proto_init() } 197 func file_go_chromium_org_luci_swarming_server_cfg_internalcfgpb_cfg_proto_init() { 198 if File_go_chromium_org_luci_swarming_server_cfg_internalcfgpb_cfg_proto != nil { 199 return 200 } 201 if !protoimpl.UnsafeEnabled { 202 file_go_chromium_org_luci_swarming_server_cfg_internalcfgpb_cfg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 203 switch v := v.(*ConfigBundle); i { 204 case 0: 205 return &v.state 206 case 1: 207 return &v.sizeCache 208 case 2: 209 return &v.unknownFields 210 default: 211 return nil 212 } 213 } 214 } 215 type x struct{} 216 out := protoimpl.TypeBuilder{ 217 File: protoimpl.DescBuilder{ 218 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 219 RawDescriptor: file_go_chromium_org_luci_swarming_server_cfg_internalcfgpb_cfg_proto_rawDesc, 220 NumEnums: 0, 221 NumMessages: 2, 222 NumExtensions: 0, 223 NumServices: 0, 224 }, 225 GoTypes: file_go_chromium_org_luci_swarming_server_cfg_internalcfgpb_cfg_proto_goTypes, 226 DependencyIndexes: file_go_chromium_org_luci_swarming_server_cfg_internalcfgpb_cfg_proto_depIdxs, 227 MessageInfos: file_go_chromium_org_luci_swarming_server_cfg_internalcfgpb_cfg_proto_msgTypes, 228 }.Build() 229 File_go_chromium_org_luci_swarming_server_cfg_internalcfgpb_cfg_proto = out.File 230 file_go_chromium_org_luci_swarming_server_cfg_internalcfgpb_cfg_proto_rawDesc = nil 231 file_go_chromium_org_luci_swarming_server_cfg_internalcfgpb_cfg_proto_goTypes = nil 232 file_go_chromium_org_luci_swarming_server_cfg_internalcfgpb_cfg_proto_depIdxs = nil 233 }