go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/resultdb/proto/config/config.pb.go (about) 1 // Copyright 2024 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/config/config.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 // Config is the service-wide configuration data for Luci ResultDB. 38 type Config struct { 39 state protoimpl.MessageState 40 sizeCache protoimpl.SizeCache 41 unknownFields protoimpl.UnknownFields 42 43 BqArtifactExportConfig *BqArtifactExportConfig `protobuf:"bytes,1,opt,name=bq_artifact_export_config,json=bqArtifactExportConfig,proto3" json:"bq_artifact_export_config,omitempty"` 44 } 45 46 func (x *Config) Reset() { 47 *x = Config{} 48 if protoimpl.UnsafeEnabled { 49 mi := &file_go_chromium_org_luci_resultdb_proto_config_config_proto_msgTypes[0] 50 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 51 ms.StoreMessageInfo(mi) 52 } 53 } 54 55 func (x *Config) String() string { 56 return protoimpl.X.MessageStringOf(x) 57 } 58 59 func (*Config) ProtoMessage() {} 60 61 func (x *Config) ProtoReflect() protoreflect.Message { 62 mi := &file_go_chromium_org_luci_resultdb_proto_config_config_proto_msgTypes[0] 63 if protoimpl.UnsafeEnabled && x != nil { 64 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 65 if ms.LoadMessageInfo() == nil { 66 ms.StoreMessageInfo(mi) 67 } 68 return ms 69 } 70 return mi.MessageOf(x) 71 } 72 73 // Deprecated: Use Config.ProtoReflect.Descriptor instead. 74 func (*Config) Descriptor() ([]byte, []int) { 75 return file_go_chromium_org_luci_resultdb_proto_config_config_proto_rawDescGZIP(), []int{0} 76 } 77 78 func (x *Config) GetBqArtifactExportConfig() *BqArtifactExportConfig { 79 if x != nil { 80 return x.BqArtifactExportConfig 81 } 82 return nil 83 } 84 85 // BqArtifactExportConfig contains the configuration to export 86 // artifact content to BigQuery. 87 type BqArtifactExportConfig struct { 88 state protoimpl.MessageState 89 sizeCache protoimpl.SizeCache 90 unknownFields protoimpl.UnknownFields 91 92 // Whether the export to BigQuery is enabled. 93 Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` 94 // The percent of artifacts that should be exported to BigQuery. 95 // This allows us to roll out the change incrementally. 96 // This value must be an integer between [0, 100]. 97 ExportPercent int64 `protobuf:"varint,2,opt,name=export_percent,json=exportPercent,proto3" json:"export_percent,omitempty"` 98 } 99 100 func (x *BqArtifactExportConfig) Reset() { 101 *x = BqArtifactExportConfig{} 102 if protoimpl.UnsafeEnabled { 103 mi := &file_go_chromium_org_luci_resultdb_proto_config_config_proto_msgTypes[1] 104 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 105 ms.StoreMessageInfo(mi) 106 } 107 } 108 109 func (x *BqArtifactExportConfig) String() string { 110 return protoimpl.X.MessageStringOf(x) 111 } 112 113 func (*BqArtifactExportConfig) ProtoMessage() {} 114 115 func (x *BqArtifactExportConfig) ProtoReflect() protoreflect.Message { 116 mi := &file_go_chromium_org_luci_resultdb_proto_config_config_proto_msgTypes[1] 117 if protoimpl.UnsafeEnabled && x != nil { 118 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 119 if ms.LoadMessageInfo() == nil { 120 ms.StoreMessageInfo(mi) 121 } 122 return ms 123 } 124 return mi.MessageOf(x) 125 } 126 127 // Deprecated: Use BqArtifactExportConfig.ProtoReflect.Descriptor instead. 128 func (*BqArtifactExportConfig) Descriptor() ([]byte, []int) { 129 return file_go_chromium_org_luci_resultdb_proto_config_config_proto_rawDescGZIP(), []int{1} 130 } 131 132 func (x *BqArtifactExportConfig) GetEnabled() bool { 133 if x != nil { 134 return x.Enabled 135 } 136 return false 137 } 138 139 func (x *BqArtifactExportConfig) GetExportPercent() int64 { 140 if x != nil { 141 return x.ExportPercent 142 } 143 return 0 144 } 145 146 var File_go_chromium_org_luci_resultdb_proto_config_config_proto protoreflect.FileDescriptor 147 148 var file_go_chromium_org_luci_resultdb_proto_config_config_proto_rawDesc = []byte{ 149 0x0a, 0x37, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 150 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x64, 0x62, 0x2f, 151 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x63, 0x6f, 0x6e, 152 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x6c, 0x75, 0x63, 0x69, 0x2e, 153 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x64, 0x62, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 154 0x71, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x67, 0x0a, 0x19, 0x62, 0x71, 0x5f, 155 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x5f, 156 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x6c, 157 0x75, 0x63, 0x69, 0x2e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x64, 0x62, 0x2e, 0x63, 0x6f, 0x6e, 158 0x66, 0x69, 0x67, 0x2e, 0x42, 0x71, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x45, 0x78, 159 0x70, 0x6f, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x16, 0x62, 0x71, 0x41, 0x72, 160 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x66, 161 0x69, 0x67, 0x22, 0x59, 0x0a, 0x16, 0x42, 0x71, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 162 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x18, 0x0a, 0x07, 163 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 164 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 165 0x5f, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 166 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x42, 0x35, 0x5a, 167 0x33, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 168 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x64, 0x62, 0x2f, 0x70, 169 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3b, 0x72, 0x65, 0x73, 0x75, 170 0x6c, 0x74, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 171 } 172 173 var ( 174 file_go_chromium_org_luci_resultdb_proto_config_config_proto_rawDescOnce sync.Once 175 file_go_chromium_org_luci_resultdb_proto_config_config_proto_rawDescData = file_go_chromium_org_luci_resultdb_proto_config_config_proto_rawDesc 176 ) 177 178 func file_go_chromium_org_luci_resultdb_proto_config_config_proto_rawDescGZIP() []byte { 179 file_go_chromium_org_luci_resultdb_proto_config_config_proto_rawDescOnce.Do(func() { 180 file_go_chromium_org_luci_resultdb_proto_config_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_resultdb_proto_config_config_proto_rawDescData) 181 }) 182 return file_go_chromium_org_luci_resultdb_proto_config_config_proto_rawDescData 183 } 184 185 var file_go_chromium_org_luci_resultdb_proto_config_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 186 var file_go_chromium_org_luci_resultdb_proto_config_config_proto_goTypes = []interface{}{ 187 (*Config)(nil), // 0: luci.resultdb.config.Config 188 (*BqArtifactExportConfig)(nil), // 1: luci.resultdb.config.BqArtifactExportConfig 189 } 190 var file_go_chromium_org_luci_resultdb_proto_config_config_proto_depIdxs = []int32{ 191 1, // 0: luci.resultdb.config.Config.bq_artifact_export_config:type_name -> luci.resultdb.config.BqArtifactExportConfig 192 1, // [1:1] is the sub-list for method output_type 193 1, // [1:1] is the sub-list for method input_type 194 1, // [1:1] is the sub-list for extension type_name 195 1, // [1:1] is the sub-list for extension extendee 196 0, // [0:1] is the sub-list for field type_name 197 } 198 199 func init() { file_go_chromium_org_luci_resultdb_proto_config_config_proto_init() } 200 func file_go_chromium_org_luci_resultdb_proto_config_config_proto_init() { 201 if File_go_chromium_org_luci_resultdb_proto_config_config_proto != nil { 202 return 203 } 204 if !protoimpl.UnsafeEnabled { 205 file_go_chromium_org_luci_resultdb_proto_config_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 206 switch v := v.(*Config); i { 207 case 0: 208 return &v.state 209 case 1: 210 return &v.sizeCache 211 case 2: 212 return &v.unknownFields 213 default: 214 return nil 215 } 216 } 217 file_go_chromium_org_luci_resultdb_proto_config_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 218 switch v := v.(*BqArtifactExportConfig); i { 219 case 0: 220 return &v.state 221 case 1: 222 return &v.sizeCache 223 case 2: 224 return &v.unknownFields 225 default: 226 return nil 227 } 228 } 229 } 230 type x struct{} 231 out := protoimpl.TypeBuilder{ 232 File: protoimpl.DescBuilder{ 233 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 234 RawDescriptor: file_go_chromium_org_luci_resultdb_proto_config_config_proto_rawDesc, 235 NumEnums: 0, 236 NumMessages: 2, 237 NumExtensions: 0, 238 NumServices: 0, 239 }, 240 GoTypes: file_go_chromium_org_luci_resultdb_proto_config_config_proto_goTypes, 241 DependencyIndexes: file_go_chromium_org_luci_resultdb_proto_config_config_proto_depIdxs, 242 MessageInfos: file_go_chromium_org_luci_resultdb_proto_config_config_proto_msgTypes, 243 }.Build() 244 File_go_chromium_org_luci_resultdb_proto_config_config_proto = out.File 245 file_go_chromium_org_luci_resultdb_proto_config_config_proto_rawDesc = nil 246 file_go_chromium_org_luci_resultdb_proto_config_config_proto_goTypes = nil 247 file_go_chromium_org_luci_resultdb_proto_config_config_proto_depIdxs = nil 248 }