Skip to content

Commit

Permalink
Merge branch 'flutter:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoamador authored Oct 24, 2023
2 parents 32c6d69 + 45f0efb commit 8a1c09f
Show file tree
Hide file tree
Showing 23 changed files with 911 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/scorecards-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions packages/buildbucket-dart/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
71 changes: 69 additions & 2 deletions packages/buildbucket-dart/lib/buildbucket_pb.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Original file line number Diff line number Diff line change
@@ -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<BuildSecrets> createRepeated() => $pb.PbList<BuildSecrets>();
@$core.pragma('dart2js:noInline')
static BuildSecrets getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<BuildSecrets>(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<BBAgentArgs> createRepeated() => $pb.PbList<BBAgentArgs>();
@$core.pragma('dart2js:noInline')
static BBAgentArgs getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<BBAgentArgs>(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<BuildSecrets>(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<BuildbucketAgentContext> createRepeated() => $pb.PbList<BuildbucketAgentContext>();
@$core.pragma('dart2js:noInline')
static BuildbucketAgentContext getDefault() =>
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<BuildbucketAgentContext>(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');
Original file line number Diff line number Diff line change
@@ -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
Loading

0 comments on commit 8a1c09f

Please sign in to comment.