diff --git a/.github/workflows/scorecards-analysis.yml b/.github/workflows/scorecards-analysis.yml index f219835e2..1cc1c8fd7 100644 --- a/.github/workflows/scorecards-analysis.yml +++ b/.github/workflows/scorecards-analysis.yml @@ -28,7 +28,7 @@ jobs: persist-credentials: false - name: "Run analysis" - uses: ossf/scorecard-action@483ef80eb98fb506c348f7d62e28055e49fe2398 + uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 with: results_file: results.sarif results_format: sarif diff --git a/packages/buildbucket-dart/CHANGELOG.md b/packages/buildbucket-dart/CHANGELOG.md index 3b0f55ee3..5ebc12421 100644 --- a/packages/buildbucket-dart/CHANGELOG.md +++ b/packages/buildbucket-dart/CHANGELOG.md @@ -1,3 +1,7 @@ +# 1.0.6 + +- Expose all objects in build, builds_service and builder_service. + # 1.0.5 - Expose build bucket clients and supporting fields like StringPair. diff --git a/packages/buildbucket-dart/lib/buildbucket_pb.dart b/packages/buildbucket-dart/lib/buildbucket_pb.dart index efc2ac993..7a67646f2 100644 --- a/packages/buildbucket-dart/lib/buildbucket_pb.dart +++ b/packages/buildbucket-dart/lib/buildbucket_pb.dart @@ -4,10 +4,77 @@ library buildbucket; -export 'src/generated/go.chromium.org/luci/buildbucket/proto/build.pb.dart' show Build; +export 'src/generated/go.chromium.org/luci/buildbucket/proto/build.pb.dart' + show + Build, + BuildInfra, + BuildInfra_BBAgent, + BuildInfra_BBAgent_Input, + BuildInfra_BBAgent_Input_CIPDPackage, + BuildInfra_Backend, + BuildInfra_Buildbucket, + BuildInfra_Buildbucket_Agent, + BuildInfra_Buildbucket_Agent_Input, + BuildInfra_Buildbucket_Agent_Output, + BuildInfra_Buildbucket_Agent_Purpose, + BuildInfra_Buildbucket_Agent_Source, + BuildInfra_Buildbucket_Agent_Source_CIPD, + BuildInfra_Buildbucket_ExperimentReason, + BuildInfra_LogDog, + BuildInfra_Recipe, + BuildInfra_ResultDB, + BuildInfra_Swarming, + BuildInfra_Swarming_CacheEntry, + Build_BuilderInfo, + Build_Input, + Build_Output, + BuildInfra_Buildbucket_Agent_Source_DataType; +export 'src/generated/go.chromium.org/luci/buildbucket/proto/builds_service.pb.dart' + show + GetBuildRequest, + SearchBuildsRequest, + SearchBuildsResponse, + BatchRequest, + BatchRequest_Request, + BatchResponse, + BatchResponse_Response, + BatchRequest_Request_Request, + BatchResponse_Response_Response, + UpdateBuildRequest, + ScheduleBuildRequest, + ScheduleBuildRequest_ShadowInput, + ScheduleBuildRequest_Swarming, + StartBuildRequest, + StartBuildResponse, + StartBuildTaskRequest, + StartBuildTaskResponse, + CancelBuildRequest, + CreateBuildRequest, + SynthesizeBuildRequest, + BuildMask, + BuildPredicate, + BuildRange, + GetBuildStatusRequest; +export 'src/generated/go.chromium.org/luci/buildbucket/proto/builder_service.pb.dart' + show GetBuilderRequest, ListBuildersRequest, ListBuildersResponse; export 'src/generated/go.chromium.org/luci/buildbucket/proto/task.pb.dart' show Task, TaskID; export 'src/generated/go.chromium.org/luci/buildbucket/proto/builder_common.pb.dart' show BuilderID; export 'src/generated/go.chromium.org/luci/buildbucket/proto/common.pb.dart' - show Status, StatusDetails, StatusDetails_ResourceExhaustion, StatusDetails_Timeout, StringPair; + show + Status, + StatusDetails, + StatusDetails_ResourceExhaustion, + StatusDetails_Timeout, + StringPair, + RequestedDimension, + Trinary, + TimeRange, + Compression, + HealthStatus, + CacheEntry, + GitilesCommit, + GerritChange, + Executable; +export 'src/generated/go.chromium.org/luci/buildbucket/proto/common.pbenum.dart'; export 'src/generated/go.chromium.org/luci/buildbucket/proto/notification.pb.dart' show NotificationConfig, BuildsV2PubSub, PubSubCallBack; diff --git a/packages/buildbucket-dart/lib/src/generated/go.chromium.org/luci/buildbucket/proto/launcher.pb.dart b/packages/buildbucket-dart/lib/src/generated/go.chromium.org/luci/buildbucket/proto/launcher.pb.dart new file mode 100644 index 000000000..5a7b08a77 --- /dev/null +++ b/packages/buildbucket-dart/lib/src/generated/go.chromium.org/luci/buildbucket/proto/launcher.pb.dart @@ -0,0 +1,245 @@ +// +// Generated code. Do not modify. +// source: go.chromium.org/luci/buildbucket/proto/launcher.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types +// ignore_for_file: constant_identifier_names, library_prefixes +// ignore_for_file: non_constant_identifier_names, prefer_final_fields +// ignore_for_file: unnecessary_import, unnecessary_this, unused_import + +import 'dart:core' as $core; + +import 'package:protobuf/protobuf.dart' as $pb; + +import 'build.pb.dart' as $0; + +class BuildSecrets extends $pb.GeneratedMessage { + factory BuildSecrets() => create(); + BuildSecrets._() : super(); + factory BuildSecrets.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory BuildSecrets.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'BuildSecrets', + package: const $pb.PackageName(_omitMessageNames ? '' : 'buildbucket.v2'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'buildToken') + ..aOS(2, _omitFieldNames ? '' : 'resultdbInvocationUpdateToken') + ..aOS(3, _omitFieldNames ? '' : 'startBuildToken') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + BuildSecrets clone() => BuildSecrets()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + BuildSecrets copyWith(void Function(BuildSecrets) updates) => + super.copyWith((message) => updates(message as BuildSecrets)) as BuildSecrets; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static BuildSecrets create() => BuildSecrets._(); + BuildSecrets createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static BuildSecrets getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static BuildSecrets? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get buildToken => $_getSZ(0); + @$pb.TagNumber(1) + set buildToken($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasBuildToken() => $_has(0); + @$pb.TagNumber(1) + void clearBuildToken() => clearField(1); + + @$pb.TagNumber(2) + $core.String get resultdbInvocationUpdateToken => $_getSZ(1); + @$pb.TagNumber(2) + set resultdbInvocationUpdateToken($core.String v) { + $_setString(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasResultdbInvocationUpdateToken() => $_has(1); + @$pb.TagNumber(2) + void clearResultdbInvocationUpdateToken() => clearField(2); + + @$pb.TagNumber(3) + $core.String get startBuildToken => $_getSZ(2); + @$pb.TagNumber(3) + set startBuildToken($core.String v) { + $_setString(2, v); + } + + @$pb.TagNumber(3) + $core.bool hasStartBuildToken() => $_has(2); + @$pb.TagNumber(3) + void clearStartBuildToken() => clearField(3); +} + +class BBAgentArgs extends $pb.GeneratedMessage { + factory BBAgentArgs() => create(); + BBAgentArgs._() : super(); + factory BBAgentArgs.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory BBAgentArgs.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'BBAgentArgs', + package: const $pb.PackageName(_omitMessageNames ? '' : 'buildbucket.v2'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'executablePath') + ..aOS(2, _omitFieldNames ? '' : 'cacheDir') + ..pPS(3, _omitFieldNames ? '' : 'knownPublicGerritHosts') + ..aOM<$0.Build>(4, _omitFieldNames ? '' : 'build', subBuilder: $0.Build.create) + ..aOS(5, _omitFieldNames ? '' : 'payloadPath') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + BBAgentArgs clone() => BBAgentArgs()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + BBAgentArgs copyWith(void Function(BBAgentArgs) updates) => + super.copyWith((message) => updates(message as BBAgentArgs)) as BBAgentArgs; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static BBAgentArgs create() => BBAgentArgs._(); + BBAgentArgs createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static BBAgentArgs getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static BBAgentArgs? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get executablePath => $_getSZ(0); + @$pb.TagNumber(1) + set executablePath($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasExecutablePath() => $_has(0); + @$pb.TagNumber(1) + void clearExecutablePath() => clearField(1); + + @$pb.TagNumber(2) + $core.String get cacheDir => $_getSZ(1); + @$pb.TagNumber(2) + set cacheDir($core.String v) { + $_setString(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasCacheDir() => $_has(1); + @$pb.TagNumber(2) + void clearCacheDir() => clearField(2); + + @$pb.TagNumber(3) + $core.List<$core.String> get knownPublicGerritHosts => $_getList(2); + + @$pb.TagNumber(4) + $0.Build get build => $_getN(3); + @$pb.TagNumber(4) + set build($0.Build v) { + setField(4, v); + } + + @$pb.TagNumber(4) + $core.bool hasBuild() => $_has(3); + @$pb.TagNumber(4) + void clearBuild() => clearField(4); + @$pb.TagNumber(4) + $0.Build ensureBuild() => $_ensure(3); + + @$pb.TagNumber(5) + $core.String get payloadPath => $_getSZ(4); + @$pb.TagNumber(5) + set payloadPath($core.String v) { + $_setString(4, v); + } + + @$pb.TagNumber(5) + $core.bool hasPayloadPath() => $_has(4); + @$pb.TagNumber(5) + void clearPayloadPath() => clearField(5); +} + +class BuildbucketAgentContext extends $pb.GeneratedMessage { + factory BuildbucketAgentContext() => create(); + BuildbucketAgentContext._() : super(); + factory BuildbucketAgentContext.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory BuildbucketAgentContext.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'BuildbucketAgentContext', + package: const $pb.PackageName(_omitMessageNames ? '' : 'buildbucket.v2'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'taskId') + ..aOM(2, _omitFieldNames ? '' : 'secrets', subBuilder: BuildSecrets.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + BuildbucketAgentContext clone() => BuildbucketAgentContext()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + BuildbucketAgentContext copyWith(void Function(BuildbucketAgentContext) updates) => + super.copyWith((message) => updates(message as BuildbucketAgentContext)) as BuildbucketAgentContext; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static BuildbucketAgentContext create() => BuildbucketAgentContext._(); + BuildbucketAgentContext createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static BuildbucketAgentContext getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static BuildbucketAgentContext? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get taskId => $_getSZ(0); + @$pb.TagNumber(1) + set taskId($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasTaskId() => $_has(0); + @$pb.TagNumber(1) + void clearTaskId() => clearField(1); + + @$pb.TagNumber(2) + BuildSecrets get secrets => $_getN(1); + @$pb.TagNumber(2) + set secrets(BuildSecrets v) { + setField(2, v); + } + + @$pb.TagNumber(2) + $core.bool hasSecrets() => $_has(1); + @$pb.TagNumber(2) + void clearSecrets() => clearField(2); + @$pb.TagNumber(2) + BuildSecrets ensureSecrets() => $_ensure(1); +} + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/packages/buildbucket-dart/lib/src/generated/go.chromium.org/luci/buildbucket/proto/launcher.pbenum.dart b/packages/buildbucket-dart/lib/src/generated/go.chromium.org/luci/buildbucket/proto/launcher.pbenum.dart new file mode 100644 index 000000000..8990aa4e6 --- /dev/null +++ b/packages/buildbucket-dart/lib/src/generated/go.chromium.org/luci/buildbucket/proto/launcher.pbenum.dart @@ -0,0 +1,10 @@ +// +// Generated code. Do not modify. +// source: go.chromium.org/luci/buildbucket/proto/launcher.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types +// ignore_for_file: constant_identifier_names, library_prefixes +// ignore_for_file: non_constant_identifier_names, prefer_final_fields +// ignore_for_file: unnecessary_import, unnecessary_this, unused_import diff --git a/packages/buildbucket-dart/lib/src/generated/go.chromium.org/luci/buildbucket/proto/launcher.pbjson.dart b/packages/buildbucket-dart/lib/src/generated/go.chromium.org/luci/buildbucket/proto/launcher.pbjson.dart new file mode 100644 index 000000000..37fa499e3 --- /dev/null +++ b/packages/buildbucket-dart/lib/src/generated/go.chromium.org/luci/buildbucket/proto/launcher.pbjson.dart @@ -0,0 +1,63 @@ +// +// Generated code. Do not modify. +// source: go.chromium.org/luci/buildbucket/proto/launcher.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types +// ignore_for_file: constant_identifier_names, library_prefixes +// ignore_for_file: non_constant_identifier_names, prefer_final_fields +// ignore_for_file: unnecessary_import, unnecessary_this, unused_import + +import 'dart:convert' as $convert; +import 'dart:core' as $core; +import 'dart:typed_data' as $typed_data; + +@$core.Deprecated('Use buildSecretsDescriptor instead') +const BuildSecrets$json = { + '1': 'BuildSecrets', + '2': [ + {'1': 'build_token', '3': 1, '4': 1, '5': 9, '10': 'buildToken'}, + {'1': 'resultdb_invocation_update_token', '3': 2, '4': 1, '5': 9, '10': 'resultdbInvocationUpdateToken'}, + {'1': 'start_build_token', '3': 3, '4': 1, '5': 9, '10': 'startBuildToken'}, + ], +}; + +/// Descriptor for `BuildSecrets`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List buildSecretsDescriptor = + $convert.base64Decode('CgxCdWlsZFNlY3JldHMSHwoLYnVpbGRfdG9rZW4YASABKAlSCmJ1aWxkVG9rZW4SRwogcmVzdW' + 'x0ZGJfaW52b2NhdGlvbl91cGRhdGVfdG9rZW4YAiABKAlSHXJlc3VsdGRiSW52b2NhdGlvblVw' + 'ZGF0ZVRva2VuEioKEXN0YXJ0X2J1aWxkX3Rva2VuGAMgASgJUg9zdGFydEJ1aWxkVG9rZW4='); + +@$core.Deprecated('Use bBAgentArgsDescriptor instead') +const BBAgentArgs$json = { + '1': 'BBAgentArgs', + '2': [ + {'1': 'executable_path', '3': 1, '4': 1, '5': 9, '10': 'executablePath'}, + {'1': 'payload_path', '3': 5, '4': 1, '5': 9, '10': 'payloadPath'}, + {'1': 'cache_dir', '3': 2, '4': 1, '5': 9, '10': 'cacheDir'}, + {'1': 'known_public_gerrit_hosts', '3': 3, '4': 3, '5': 9, '10': 'knownPublicGerritHosts'}, + {'1': 'build', '3': 4, '4': 1, '5': 11, '6': '.buildbucket.v2.Build', '10': 'build'}, + ], +}; + +/// Descriptor for `BBAgentArgs`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List bBAgentArgsDescriptor = + $convert.base64Decode('CgtCQkFnZW50QXJncxInCg9leGVjdXRhYmxlX3BhdGgYASABKAlSDmV4ZWN1dGFibGVQYXRoEi' + 'EKDHBheWxvYWRfcGF0aBgFIAEoCVILcGF5bG9hZFBhdGgSGwoJY2FjaGVfZGlyGAIgASgJUghj' + 'YWNoZURpchI5Chlrbm93bl9wdWJsaWNfZ2Vycml0X2hvc3RzGAMgAygJUhZrbm93blB1YmxpY0' + 'dlcnJpdEhvc3RzEisKBWJ1aWxkGAQgASgLMhUuYnVpbGRidWNrZXQudjIuQnVpbGRSBWJ1aWxk'); + +@$core.Deprecated('Use buildbucketAgentContextDescriptor instead') +const BuildbucketAgentContext$json = { + '1': 'BuildbucketAgentContext', + '2': [ + {'1': 'task_id', '3': 1, '4': 1, '5': 9, '10': 'taskId'}, + {'1': 'secrets', '3': 2, '4': 1, '5': 11, '6': '.buildbucket.v2.BuildSecrets', '10': 'secrets'}, + ], +}; + +/// Descriptor for `BuildbucketAgentContext`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List buildbucketAgentContextDescriptor = + $convert.base64Decode('ChdCdWlsZGJ1Y2tldEFnZW50Q29udGV4dBIXCgd0YXNrX2lkGAEgASgJUgZ0YXNrSWQSNgoHc2' + 'VjcmV0cxgCIAEoCzIcLmJ1aWxkYnVja2V0LnYyLkJ1aWxkU2VjcmV0c1IHc2VjcmV0cw=='); diff --git a/packages/buildbucket-dart/lib/src/generated/go.chromium.org/luci/common/proto/structmask/structmask.pb.dart b/packages/buildbucket-dart/lib/src/generated/go.chromium.org/luci/common/proto/structmask/structmask.pb.dart new file mode 100644 index 000000000..9f018066a --- /dev/null +++ b/packages/buildbucket-dart/lib/src/generated/go.chromium.org/luci/common/proto/structmask/structmask.pb.dart @@ -0,0 +1,54 @@ +// +// Generated code. Do not modify. +// source: go.chromium.org/luci/common/proto/structmask/structmask.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types +// ignore_for_file: constant_identifier_names, library_prefixes +// ignore_for_file: non_constant_identifier_names, prefer_final_fields +// ignore_for_file: unnecessary_import, unnecessary_this, unused_import + +import 'dart:core' as $core; + +import 'package:protobuf/protobuf.dart' as $pb; + +class StructMask extends $pb.GeneratedMessage { + factory StructMask() => create(); + StructMask._() : super(); + factory StructMask.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory StructMask.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'StructMask', + package: const $pb.PackageName(_omitMessageNames ? '' : 'structmask'), createEmptyInstance: create) + ..pPS(1, _omitFieldNames ? '' : 'path') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + StructMask clone() => StructMask()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + StructMask copyWith(void Function(StructMask) updates) => + super.copyWith((message) => updates(message as StructMask)) as StructMask; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static StructMask create() => StructMask._(); + StructMask createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static StructMask getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static StructMask? _defaultInstance; + + @$pb.TagNumber(1) + $core.List<$core.String> get path => $_getList(0); +} + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/packages/buildbucket-dart/lib/src/generated/go.chromium.org/luci/common/proto/structmask/structmask.pbenum.dart b/packages/buildbucket-dart/lib/src/generated/go.chromium.org/luci/common/proto/structmask/structmask.pbenum.dart new file mode 100644 index 000000000..5344c4f10 --- /dev/null +++ b/packages/buildbucket-dart/lib/src/generated/go.chromium.org/luci/common/proto/structmask/structmask.pbenum.dart @@ -0,0 +1,10 @@ +// +// Generated code. Do not modify. +// source: go.chromium.org/luci/common/proto/structmask/structmask.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types +// ignore_for_file: constant_identifier_names, library_prefixes +// ignore_for_file: non_constant_identifier_names, prefer_final_fields +// ignore_for_file: unnecessary_import, unnecessary_this, unused_import diff --git a/packages/buildbucket-dart/lib/src/generated/go.chromium.org/luci/common/proto/structmask/structmask.pbjson.dart b/packages/buildbucket-dart/lib/src/generated/go.chromium.org/luci/common/proto/structmask/structmask.pbjson.dart new file mode 100644 index 000000000..a43f050fd --- /dev/null +++ b/packages/buildbucket-dart/lib/src/generated/go.chromium.org/luci/common/proto/structmask/structmask.pbjson.dart @@ -0,0 +1,26 @@ +// +// Generated code. Do not modify. +// source: go.chromium.org/luci/common/proto/structmask/structmask.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types +// ignore_for_file: constant_identifier_names, library_prefixes +// ignore_for_file: non_constant_identifier_names, prefer_final_fields +// ignore_for_file: unnecessary_import, unnecessary_this, unused_import + +import 'dart:convert' as $convert; +import 'dart:core' as $core; +import 'dart:typed_data' as $typed_data; + +@$core.Deprecated('Use structMaskDescriptor instead') +const StructMask$json = { + '1': 'StructMask', + '2': [ + {'1': 'path', '3': 1, '4': 3, '5': 9, '10': 'path'}, + ], +}; + +/// Descriptor for `StructMask`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List structMaskDescriptor = + $convert.base64Decode('CgpTdHJ1Y3RNYXNrEhIKBHBhdGgYASADKAlSBHBhdGg='); diff --git a/packages/buildbucket-dart/lib/src/generated/google/protobuf/any.pb.dart b/packages/buildbucket-dart/lib/src/generated/google/protobuf/any.pb.dart new file mode 100644 index 000000000..1d8f01fc2 --- /dev/null +++ b/packages/buildbucket-dart/lib/src/generated/google/protobuf/any.pb.dart @@ -0,0 +1,89 @@ +// +// Generated code. Do not modify. +// source: google/protobuf/any.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types +// ignore_for_file: constant_identifier_names, library_prefixes +// ignore_for_file: non_constant_identifier_names, prefer_final_fields +// ignore_for_file: unnecessary_import, unnecessary_this, unused_import + +import 'dart:core' as $core; + +import 'package:protobuf/protobuf.dart' as $pb; +import 'package:protobuf/src/protobuf/mixins/well_known.dart' as $mixin; + +class Any extends $pb.GeneratedMessage with $mixin.AnyMixin { + factory Any() => create(); + Any._() : super(); + factory Any.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory Any.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Any', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create, + toProto3Json: $mixin.AnyMixin.toProto3JsonHelper, + fromProto3Json: $mixin.AnyMixin.fromProto3JsonHelper) + ..aOS(1, _omitFieldNames ? '' : 'typeUrl') + ..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'value', $pb.PbFieldType.OY) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + Any clone() => Any()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Any copyWith(void Function(Any) updates) => super.copyWith((message) => updates(message as Any)) as Any; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static Any create() => Any._(); + Any createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static Any getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Any? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get typeUrl => $_getSZ(0); + @$pb.TagNumber(1) + set typeUrl($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasTypeUrl() => $_has(0); + @$pb.TagNumber(1) + void clearTypeUrl() => clearField(1); + + @$pb.TagNumber(2) + $core.List<$core.int> get value => $_getN(1); + @$pb.TagNumber(2) + set value($core.List<$core.int> v) { + $_setBytes(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasValue() => $_has(1); + @$pb.TagNumber(2) + void clearValue() => clearField(2); + + /// Creates a new [Any] encoding [message]. + /// + /// The [typeUrl] will be [typeUrlPrefix]/`fullName` where `fullName` is + /// the fully qualified name of the type of [message]. + static Any pack($pb.GeneratedMessage message, {$core.String typeUrlPrefix = 'type.googleapis.com'}) { + final result = create(); + $mixin.AnyMixin.packIntoAny(result, message, typeUrlPrefix: typeUrlPrefix); + return result; + } +} + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/packages/buildbucket-dart/lib/src/generated/google/protobuf/any.pbenum.dart b/packages/buildbucket-dart/lib/src/generated/google/protobuf/any.pbenum.dart new file mode 100644 index 000000000..30bca8e14 --- /dev/null +++ b/packages/buildbucket-dart/lib/src/generated/google/protobuf/any.pbenum.dart @@ -0,0 +1,10 @@ +// +// Generated code. Do not modify. +// source: google/protobuf/any.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types +// ignore_for_file: constant_identifier_names, library_prefixes +// ignore_for_file: non_constant_identifier_names, prefer_final_fields +// ignore_for_file: unnecessary_import, unnecessary_this, unused_import diff --git a/packages/buildbucket-dart/lib/src/generated/google/protobuf/any.pbjson.dart b/packages/buildbucket-dart/lib/src/generated/google/protobuf/any.pbjson.dart new file mode 100644 index 000000000..b2cbe7da4 --- /dev/null +++ b/packages/buildbucket-dart/lib/src/generated/google/protobuf/any.pbjson.dart @@ -0,0 +1,27 @@ +// +// Generated code. Do not modify. +// source: google/protobuf/any.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types +// ignore_for_file: constant_identifier_names, library_prefixes +// ignore_for_file: non_constant_identifier_names, prefer_final_fields +// ignore_for_file: unnecessary_import, unnecessary_this, unused_import + +import 'dart:convert' as $convert; +import 'dart:core' as $core; +import 'dart:typed_data' as $typed_data; + +@$core.Deprecated('Use anyDescriptor instead') +const Any$json = { + '1': 'Any', + '2': [ + {'1': 'type_url', '3': 1, '4': 1, '5': 9, '10': 'typeUrl'}, + {'1': 'value', '3': 2, '4': 1, '5': 12, '10': 'value'}, + ], +}; + +/// Descriptor for `Any`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List anyDescriptor = + $convert.base64Decode('CgNBbnkSGQoIdHlwZV91cmwYASABKAlSB3R5cGVVcmwSFAoFdmFsdWUYAiABKAxSBXZhbHVl'); diff --git a/packages/buildbucket-dart/lib/src/generated/google/protobuf/empty.pb.dart b/packages/buildbucket-dart/lib/src/generated/google/protobuf/empty.pb.dart new file mode 100644 index 000000000..6189f68bc --- /dev/null +++ b/packages/buildbucket-dart/lib/src/generated/google/protobuf/empty.pb.dart @@ -0,0 +1,48 @@ +// +// Generated code. Do not modify. +// source: google/protobuf/empty.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types +// ignore_for_file: constant_identifier_names, library_prefixes +// ignore_for_file: non_constant_identifier_names, prefer_final_fields +// ignore_for_file: unnecessary_import, unnecessary_this, unused_import + +import 'dart:core' as $core; + +import 'package:protobuf/protobuf.dart' as $pb; + +class Empty extends $pb.GeneratedMessage { + factory Empty() => create(); + Empty._() : super(); + factory Empty.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory Empty.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Empty', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + Empty clone() => Empty()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Empty copyWith(void Function(Empty) updates) => super.copyWith((message) => updates(message as Empty)) as Empty; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static Empty create() => Empty._(); + Empty createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static Empty getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Empty? _defaultInstance; +} + +const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/packages/buildbucket-dart/lib/src/generated/google/protobuf/empty.pbenum.dart b/packages/buildbucket-dart/lib/src/generated/google/protobuf/empty.pbenum.dart new file mode 100644 index 000000000..443ffb644 --- /dev/null +++ b/packages/buildbucket-dart/lib/src/generated/google/protobuf/empty.pbenum.dart @@ -0,0 +1,10 @@ +// +// Generated code. Do not modify. +// source: google/protobuf/empty.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types +// ignore_for_file: constant_identifier_names, library_prefixes +// ignore_for_file: non_constant_identifier_names, prefer_final_fields +// ignore_for_file: unnecessary_import, unnecessary_this, unused_import diff --git a/packages/buildbucket-dart/lib/src/generated/google/protobuf/empty.pbjson.dart b/packages/buildbucket-dart/lib/src/generated/google/protobuf/empty.pbjson.dart new file mode 100644 index 000000000..b65750499 --- /dev/null +++ b/packages/buildbucket-dart/lib/src/generated/google/protobuf/empty.pbjson.dart @@ -0,0 +1,22 @@ +// +// Generated code. Do not modify. +// source: google/protobuf/empty.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types +// ignore_for_file: constant_identifier_names, library_prefixes +// ignore_for_file: non_constant_identifier_names, prefer_final_fields +// ignore_for_file: unnecessary_import, unnecessary_this, unused_import + +import 'dart:convert' as $convert; +import 'dart:core' as $core; +import 'dart:typed_data' as $typed_data; + +@$core.Deprecated('Use emptyDescriptor instead') +const Empty$json = { + '1': 'Empty', +}; + +/// Descriptor for `Empty`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List emptyDescriptor = $convert.base64Decode('CgVFbXB0eQ=='); diff --git a/packages/buildbucket-dart/lib/src/generated/google/protobuf/field_mask.pb.dart b/packages/buildbucket-dart/lib/src/generated/google/protobuf/field_mask.pb.dart new file mode 100644 index 000000000..9accd73a5 --- /dev/null +++ b/packages/buildbucket-dart/lib/src/generated/google/protobuf/field_mask.pb.dart @@ -0,0 +1,58 @@ +// +// Generated code. Do not modify. +// source: google/protobuf/field_mask.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types +// ignore_for_file: constant_identifier_names, library_prefixes +// ignore_for_file: non_constant_identifier_names, prefer_final_fields +// ignore_for_file: unnecessary_import, unnecessary_this, unused_import + +import 'dart:core' as $core; + +import 'package:protobuf/protobuf.dart' as $pb; +import 'package:protobuf/src/protobuf/mixins/well_known.dart' as $mixin; + +class FieldMask extends $pb.GeneratedMessage with $mixin.FieldMaskMixin { + factory FieldMask() => create(); + FieldMask._() : super(); + factory FieldMask.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory FieldMask.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'FieldMask', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create, + toProto3Json: $mixin.FieldMaskMixin.toProto3JsonHelper, + fromProto3Json: $mixin.FieldMaskMixin.fromProto3JsonHelper) + ..pPS(1, _omitFieldNames ? '' : 'paths') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + FieldMask clone() => FieldMask()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + FieldMask copyWith(void Function(FieldMask) updates) => + super.copyWith((message) => updates(message as FieldMask)) as FieldMask; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static FieldMask create() => FieldMask._(); + FieldMask createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static FieldMask getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static FieldMask? _defaultInstance; + + @$pb.TagNumber(1) + $core.List<$core.String> get paths => $_getList(0); +} + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/packages/buildbucket-dart/lib/src/generated/google/protobuf/field_mask.pbenum.dart b/packages/buildbucket-dart/lib/src/generated/google/protobuf/field_mask.pbenum.dart new file mode 100644 index 000000000..599996e99 --- /dev/null +++ b/packages/buildbucket-dart/lib/src/generated/google/protobuf/field_mask.pbenum.dart @@ -0,0 +1,10 @@ +// +// Generated code. Do not modify. +// source: google/protobuf/field_mask.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types +// ignore_for_file: constant_identifier_names, library_prefixes +// ignore_for_file: non_constant_identifier_names, prefer_final_fields +// ignore_for_file: unnecessary_import, unnecessary_this, unused_import diff --git a/packages/buildbucket-dart/lib/src/generated/google/protobuf/field_mask.pbjson.dart b/packages/buildbucket-dart/lib/src/generated/google/protobuf/field_mask.pbjson.dart new file mode 100644 index 000000000..3f8c538c9 --- /dev/null +++ b/packages/buildbucket-dart/lib/src/generated/google/protobuf/field_mask.pbjson.dart @@ -0,0 +1,25 @@ +// +// Generated code. Do not modify. +// source: google/protobuf/field_mask.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types +// ignore_for_file: constant_identifier_names, library_prefixes +// ignore_for_file: non_constant_identifier_names, prefer_final_fields +// ignore_for_file: unnecessary_import, unnecessary_this, unused_import + +import 'dart:convert' as $convert; +import 'dart:core' as $core; +import 'dart:typed_data' as $typed_data; + +@$core.Deprecated('Use fieldMaskDescriptor instead') +const FieldMask$json = { + '1': 'FieldMask', + '2': [ + {'1': 'paths', '3': 1, '4': 3, '5': 9, '10': 'paths'}, + ], +}; + +/// Descriptor for `FieldMask`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List fieldMaskDescriptor = $convert.base64Decode('CglGaWVsZE1hc2sSFAoFcGF0aHMYASADKAlSBXBhdGhz'); diff --git a/packages/buildbucket-dart/lib/src/generated/google/rpc/status.pb.dart b/packages/buildbucket-dart/lib/src/generated/google/rpc/status.pb.dart new file mode 100644 index 000000000..34a824802 --- /dev/null +++ b/packages/buildbucket-dart/lib/src/generated/google/rpc/status.pb.dart @@ -0,0 +1,81 @@ +// +// Generated code. Do not modify. +// source: google/rpc/status.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types +// ignore_for_file: constant_identifier_names, library_prefixes +// ignore_for_file: non_constant_identifier_names, prefer_final_fields +// ignore_for_file: unnecessary_import, unnecessary_this, unused_import + +import 'dart:core' as $core; + +import 'package:protobuf/protobuf.dart' as $pb; + +import '../protobuf/any.pb.dart' as $0; + +class Status extends $pb.GeneratedMessage { + factory Status() => create(); + Status._() : super(); + factory Status.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory Status.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Status', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.rpc'), createEmptyInstance: create) + ..a<$core.int>(1, _omitFieldNames ? '' : 'code', $pb.PbFieldType.O3) + ..aOS(2, _omitFieldNames ? '' : 'message') + ..pc<$0.Any>(3, _omitFieldNames ? '' : 'details', $pb.PbFieldType.PM, subBuilder: $0.Any.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + Status clone() => Status()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Status copyWith(void Function(Status) updates) => super.copyWith((message) => updates(message as Status)) as Status; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static Status create() => Status._(); + Status createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static Status getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Status? _defaultInstance; + + @$pb.TagNumber(1) + $core.int get code => $_getIZ(0); + @$pb.TagNumber(1) + set code($core.int v) { + $_setSignedInt32(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasCode() => $_has(0); + @$pb.TagNumber(1) + void clearCode() => clearField(1); + + @$pb.TagNumber(2) + $core.String get message => $_getSZ(1); + @$pb.TagNumber(2) + set message($core.String v) { + $_setString(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasMessage() => $_has(1); + @$pb.TagNumber(2) + void clearMessage() => clearField(2); + + @$pb.TagNumber(3) + $core.List<$0.Any> get details => $_getList(2); +} + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/packages/buildbucket-dart/lib/src/generated/google/rpc/status.pbenum.dart b/packages/buildbucket-dart/lib/src/generated/google/rpc/status.pbenum.dart new file mode 100644 index 000000000..f9dfed34e --- /dev/null +++ b/packages/buildbucket-dart/lib/src/generated/google/rpc/status.pbenum.dart @@ -0,0 +1,10 @@ +// +// Generated code. Do not modify. +// source: google/rpc/status.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types +// ignore_for_file: constant_identifier_names, library_prefixes +// ignore_for_file: non_constant_identifier_names, prefer_final_fields +// ignore_for_file: unnecessary_import, unnecessary_this, unused_import diff --git a/packages/buildbucket-dart/lib/src/generated/google/rpc/status.pbjson.dart b/packages/buildbucket-dart/lib/src/generated/google/rpc/status.pbjson.dart new file mode 100644 index 000000000..b5685edcc --- /dev/null +++ b/packages/buildbucket-dart/lib/src/generated/google/rpc/status.pbjson.dart @@ -0,0 +1,29 @@ +// +// Generated code. Do not modify. +// source: google/rpc/status.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types +// ignore_for_file: constant_identifier_names, library_prefixes +// ignore_for_file: non_constant_identifier_names, prefer_final_fields +// ignore_for_file: unnecessary_import, unnecessary_this, unused_import + +import 'dart:convert' as $convert; +import 'dart:core' as $core; +import 'dart:typed_data' as $typed_data; + +@$core.Deprecated('Use statusDescriptor instead') +const Status$json = { + '1': 'Status', + '2': [ + {'1': 'code', '3': 1, '4': 1, '5': 5, '10': 'code'}, + {'1': 'message', '3': 2, '4': 1, '5': 9, '10': 'message'}, + {'1': 'details', '3': 3, '4': 3, '5': 11, '6': '.google.protobuf.Any', '10': 'details'}, + ], +}; + +/// Descriptor for `Status`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List statusDescriptor = + $convert.base64Decode('CgZTdGF0dXMSEgoEY29kZRgBIAEoBVIEY29kZRIYCgdtZXNzYWdlGAIgASgJUgdtZXNzYWdlEi' + '4KB2RldGFpbHMYAyADKAsyFC5nb29nbGUucHJvdG9idWYuQW55UgdkZXRhaWxz'); diff --git a/packages/buildbucket-dart/pubspec.yaml b/packages/buildbucket-dart/pubspec.yaml index c08650346..d1465225d 100644 --- a/packages/buildbucket-dart/pubspec.yaml +++ b/packages/buildbucket-dart/pubspec.yaml @@ -1,6 +1,6 @@ name: buildbucket description: LUCI Buildbucket library. Protos and utilities to communicate with LUCI buildbucket service. -version: 1.0.5 +version: 1.0.6 repository: https://github.com/flutter/cocoon/tree/main/packages/buildbucket-dart environment: diff --git a/packages/buildbucket-dart/tool/regenerate.sh b/packages/buildbucket-dart/tool/regenerate.sh index ab199c726..a6fb85a07 100755 --- a/packages/buildbucket-dart/tool/regenerate.sh +++ b/packages/buildbucket-dart/tool/regenerate.sh @@ -6,13 +6,15 @@ set -ex mkdir -p lib/src/generated - rm -rf buildbucket_tmp mkdir -p buildbucket_tmp + pushd buildbucket_tmp + git clone https://chromium.googlesource.com/infra/luci/luci-go git clone https://github.com/googleapis/googleapis git clone https://github.com/protocolbuffers/protobuf + PROTOC="protoc --plugin=protoc-gen-dart=$HOME/.pub-cache/bin/protoc-gen-dart --dart_out=grpc:lib/src/generated -Ibuildbucket_tmp/protobuf/src -Ibuildbucket_tmp/googleapis -Ibuildbucket_tmp/luci-go -Ibuildbucket_tmp/buildbucket" pushd luci-go find . -name *.proto -exec bash -c 'path={}; d=../buildbucket/go.chromium.org/luci/$(dirname $path); mkdir -p $d ; cp $path $d' \; @@ -23,6 +25,7 @@ $PROTOC go.chromium.org/luci/buildbucket/proto/builder_service.proto $PROTOC go.chromium.org/luci/buildbucket/proto/builds_service.proto $PROTOC go.chromium.org/luci/buildbucket/proto/builder_common.proto $PROTOC go.chromium.org/luci/buildbucket/proto/common.proto +$PROTOC go.chromium.org/luci/buildbucket/proto/launcher.proto $PROTOC go.chromium.org/luci/buildbucket/proto/project_config.proto $PROTOC go.chromium.org/luci/buildbucket/proto/step.proto $PROTOC go.chromium.org/luci/buildbucket/proto/task.proto @@ -30,8 +33,13 @@ $PROTOC go.chromium.org/luci/buildbucket/proto/notification.proto $PROTOC go.chromium.org/luci/resultdb/proto/v1/common.proto $PROTOC go.chromium.org/luci/resultdb/proto/v1/invocation.proto $PROTOC go.chromium.org/luci/resultdb/proto/v1/predicate.proto +$PROTOC go.chromium.org/luci/common/proto/structmask/structmask.proto +$PROTOC google/protobuf/any.proto $PROTOC google/protobuf/duration.proto +$PROTOC google/protobuf/empty.proto $PROTOC google/protobuf/struct.proto $PROTOC google/protobuf/timestamp.proto $PROTOC google/protobuf/wrappers.proto +$PROTOC google/protobuf/field_mask.proto +$PROTOC google/rpc/status.proto