go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/lucicfg/starlark/stdlib/internal/luci/proto.star (about)

     1  # Copyright 2019 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  """Exports proto modules with messages used in generated LUCI configs.
    16  
    17  Prefer using this module over loading "@proto//..." modules directly. Proto
    18  paths may change in a backward incompatible way. Using this module gives more
    19  stability.
    20  """
    21  
    22  load("@stdlib//internal/luci/descpb.star", "lucitypes_descpb")
    23  
    24  lucitypes_descpb.register()
    25  
    26  load("@proto//go.chromium.org/luci/buildbucket/proto/common.proto", _common_pb = "buildbucket.v2")
    27  load("@proto//go.chromium.org/luci/buildbucket/proto/project_config.proto", _buildbucket_pb = "buildbucket")
    28  load("@proto//go.chromium.org/luci/common/proto/config/project_config.proto", _config_pb = "config")
    29  load("@proto//go.chromium.org/luci/common/proto/realms/realms_config.proto", _realms_pb = "auth_service")
    30  load("@proto//go.chromium.org/luci/cv/api/config/legacy/tricium.proto", _tricium_pb = "cv.legacy.tricium")
    31  load("@proto//go.chromium.org/luci/cv/api/config/v2/config.proto", _cq_pb = "cv.config")
    32  load("@proto//go.chromium.org/luci/cv/api/v1/run.proto", _cv_v1pb = "cv.v1")
    33  load("@proto//go.chromium.org/luci/logdog/api/config/svcconfig/project.proto", _logdog_pb = "svcconfig")
    34  load("@proto//go.chromium.org/luci/logdog/api/config/svcconfig/cloud_logging.proto", _logdog_cloud_logging_pb = "svcconfig")
    35  load("@proto//go.chromium.org/luci/luci_notify/api/config/notify.proto", _notify_pb = "notify")
    36  load("@proto//go.chromium.org/luci/milo/proto/projectconfig/project.proto", _milo_pb = "luci.milo.projectconfig")
    37  load("@proto//go.chromium.org/luci/resultdb/proto/v1/invocation.proto", _resultdb_pb = "luci.resultdb.v1")
    38  load("@proto//go.chromium.org/luci/resultdb/proto/v1/predicate.proto", _predicate_pb = "luci.resultdb.v1")
    39  load("@proto//go.chromium.org/luci/scheduler/appengine/messages/config.proto", _scheduler_pb = "scheduler.config")
    40  
    41  buildbucket_pb = _buildbucket_pb
    42  common_pb = _common_pb
    43  config_pb = _config_pb
    44  cq_pb = _cq_pb
    45  cv_v1pb = _cv_v1pb
    46  logdog_pb = _logdog_pb
    47  logdog_cloud_logging_pb = _logdog_cloud_logging_pb
    48  milo_pb = _milo_pb
    49  notify_pb = _notify_pb
    50  predicate_pb = _predicate_pb
    51  realms_pb = _realms_pb
    52  resultdb_pb = _resultdb_pb
    53  scheduler_pb = _scheduler_pb
    54  tricium_pb = _tricium_pb