go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/lucicfg/starlark/stdlib/internal/descpb.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  """Exposes descriptor sets with some built-in well-known protos."""
    16  
    17  # wellknown_descpb is proto.DescriptorSet with following files:
    18  #   load('@proto//google/protobuf/any.proto', any_pb='google.protobuf')
    19  #   load('@proto//google/protobuf/duration.proto', duration_pb='google.protobuf')
    20  #   load('@proto//google/protobuf/descriptor.proto', descriptor_pb='google.protobuf')
    21  #   load('@proto//google/protobuf/empty.proto', empty_pb='google.protobuf')
    22  #   load('@proto//google/protobuf/field_mask.proto', field_mask_pb='google.protobuf')
    23  #   load('@proto//google/protobuf/struct.proto', struct_pb='google.protobuf')
    24  #   load('@proto//google/protobuf/timestamp.proto', timestamp_pb='google.protobuf')
    25  #   load('@proto//google/protobuf/wrappers.proto', wrappers_pb='google.protobuf')
    26  wellknown_descpb = __native__.wellknown_descpb
    27  
    28  # googtypes_descpb is proto.DescriptorSet with following files:
    29  #   load('@proto//google/type/calendar_period.proto', calendar_period_pb='google.type')
    30  #   load('@proto//google/type/color.proto', color_pb='google.type')
    31  #   load('@proto//google/type/date.proto', date_pb='google.type')
    32  #   load('@proto//google/type/dayofweek.proto', dayofweek_pb='google.type')
    33  #   load('@proto//google/type/expr.proto', expr_pb='google.type')
    34  #   load('@proto//google/type/fraction.proto', fraction_pb='google.type')
    35  #   load('@proto//google/type/latlng.proto', latlng_pb='google.type')
    36  #   load('@proto//google/type/money.proto', money_pb='google.type')
    37  #   load('@proto//google/type/postal_address.proto', postal_address_pb='google.type')
    38  #   load('@proto//google/type/quaternion.proto', quaternion_pb='google.type')
    39  #   load('@proto//google/type/timeofday.proto', timeofday_pb='google.type')
    40  googtypes_descpb = __native__.googtypes_descpb
    41  
    42  # annotations_descpb is proto.DescriptorSet with following files:
    43  #   load('@proto//google/api/annotations.proto', annotations_pb='google.api')
    44  #   load('@proto//google/api/client.proto', client_pb='google.api')
    45  #   load('@proto//google/api/field_behavior.proto', field_behavior_pb='google.api')
    46  #   load('@proto//google/api/http.proto', http_pb='google.api')
    47  #   load('@proto//google/api/resource.proto', resource_pb='google.api')
    48  annotations_descpb = __native__.annotations_descpb
    49  
    50  # validation_descpb is a proto.DescriptorSet with following files:
    51  #   load('@proto//validation/validation.proto', validation_pb='validate')
    52  # This is github.com/envoyproxy/protoc-gen-validate protos.
    53  validation_descpb = __native__.validation_descpb